Nabo v0.0.2 Nabo.Compilers.Markdown View Source

The default compiler in Nabo, for Nabo.Post format compliant post.

Nabo.Compilers.Markdown uses Earmark as its markdown compiler.

The first element of the returned tuple is the identifier of the post.

Link to this section Summary

Functions

Compiles a raw content that complies with Nabo.Post format into macro

Link to this section Functions

Link to this function compile(content, options \\ []) View Source
compile(content :: String.t, options :: Keyword.t) :: {identifier :: String.t, compiled :: Marco.t}

Compiles a raw content that complies with Nabo.Post format into macro.

Options

  • markdown - (Earmark.Options) options to pass to Earmark markdown parsing function.