markright v0.1.1 Markright.Parsers.H
Parses the headers.
Examples
iex> input = "## Hello _world_!
...> Other text.
...> "
iex> Markright.Parsers.H.to_ast(input)
%Markright.Continuation{
ast: {:h3, %{}, ["Hello ", {:em, %{}, "world"}, "!"]},
tail: " Other text.\n "}
iex> input = "## Hello _world_!
...> Other text.
...> "
iex> Markright.to_ast(input)
{:article, %{}, [
{:h2, %{}, ["Hello ", {:em, %{}, "world"}, "!"]},
{:p, %{}, " Other text.\n "}]}
Summary
Functions
Callback implementation for Markright.Parser.to_ast/3
Functions
Callback implementation for Markright.Parser.to_ast/3
.