markright v0.2.0 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, %{}, [{:img, %{src: "http://example.com", alt: "Hello my"}, nil}, " lovely world!"]}]}

Summary

Functions

to_ast(input, fun \\ nil, opts \\ %{})

Callback implementation for Markright.Parser.to_ast/3.