View Source Djot (Djot v0.1.1)

Transform a Djot string input to HTML output.

No sanitization is performed, the document comes directly from the Djot transformer.

Summary

Functions

Converts a Djot document into HTML

Converts a Djot document into HTML

Functions

@spec to_html(String.t()) :: {:ok, String.t()} | {:error, :djot_transform}

Converts a Djot document into HTML

Returns a tuple

Examples

iex> Djot.to_html("Hello World!")

@spec to_html!(String.t()) :: String.t()

Converts a Djot document into HTML

Returns the document or throws an error

Examples

iex> Djot.to_html!("Hello World!") "<p>Hello World!</p>\n"