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