Atom Tweaks v0.1.0+c1f5afa AtomTweaksWeb.MarkdownEngine View Source

Renders Markdown into HTML.

Besides using CommonMark to render Markdown into HTML, it also links at-mentions to user profile pages.

Link to this section Summary

Functions

Renders the given Markdown text into HTML with the default set of options.

Renders the given Markdown text into HTML according to options.

Link to this section Functions

Specs

render(iodata() | nil) :: String.t()

Renders the given Markdown text into HTML with the default set of options.

Specs

render(iodata() | nil, Keyword.t()) :: String.t()

Renders the given Markdown text into HTML according to options.

See: Cmark.to_html/2

Options

Currently, the :safe, :smart, and :validate_utf8 options are hard-coded. All supplied options are ignored.