markright v0.4.3 Markright.Parsers.Article

Parses the whole text, producing a single article item.

Examples

iex> cont = "![http://example.com Hello my] lovely world!" |> Markright.Parsers.Article.to_ast
...> cont.ast
{:article, %{},
  [{:p, %{}, [
        {:figure, %{},
          [{:img, %{alt: "Hello my", src: "http://example.com"}, nil},
           {:figcaption, %{}, "Hello my"}]}, " lovely world!"]}]}

Summary

Functions

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

Callback implementation for Markright.Parser.to_ast/2.