Markright.Presets.Article (markright v0.7.1)
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
Functions
Callback implementation for Markright.Preset.syntax/0
.
Link to this section Functions
Link to this function
syntax()
Callback implementation for Markright.Preset.syntax/0
.
Link to this function