markright v0.5.1 Markright.Presets.Empty

Parses the whole text, producing a single article item.

Examples

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

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

Link to this section Summary

Link to this section Functions

Callback implementation for Markright.Preset.syntax/0.

Link to this function to_ast(input, plume \\ %Markright.Continuation{}, opts \\ [])