Markright.Parsers.H (markright v0.7.1)

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

Link to this section Functions

Link to this function

to_ast(input, plume \\ %Plume{})

Callback implementation for Markright.Parser.to_ast/2.