Markup.Sigil (Markup v0.1.0)

Copy Markdown View Source

The ~MU sigil, evaluated at compile time.

The modifier is an optional lowercase language id followed by an optional uppercase format:

  • ~MU"..." - a %Markup.Document{} with the parsed nodes
  • ~MU"..."HTML - the rendered HTML string
  • ~MU"..."HEEX - a Phoenix.LiveView.Rendered; requires assigns in scope and {:phoenix_live_view, "~> 1.2"}
  • ~MU"..."XML, MD, TEXT, ANSI, CARVE - :xml, :markdown, :plain_text, :ansi or :carve output, when the language supports it

Without a language id the language comes from use Markup, language: id, then the usual resolution (see Markup.Languages.resolve/2). Options come from use Markup, opts.

~MU"*a*"djotHTML
~MU"# a"markdown
~MU"x"HTML   # with `use Markup, language: :carve`

Summary

Functions

Markup sigil; see the module docs.

Functions

sigil_MU(arg, modifiers)

(macro)

Markup sigil; see the module docs.