markright v0.3.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."}]}

Summary

Functions

to_ast(input, plume \\ %Markright.Continuation{})

Callback implementation for Markright.Parser.to_ast/2.