View Source ExDoc.Markdown behaviour (ExDoc v0.35.1)

Adapter behaviour and conveniences for converting Markdown to HTML.

ExDoc is compatible with any markdown processor that implements the functions defined in this module. The markdown processor can be changed via the :markdown_processor option in your mix.exs.

ExDoc supports the following Markdown parsers out of the box:

ExDoc uses EarmarkParser by default.

Summary

Callbacks

Returns true if all dependencies necessary are available.

Converts markdown into HTML.

Functions

Gets the current markdown processor set globally.

Changes the markdown processor globally.

Converts the given markdown document to HTML AST.

Callbacks

available?()

@callback available?() :: boolean()

Returns true if all dependencies necessary are available.

to_ast(t, t)

@callback to_ast(String.t(), Keyword.t()) :: term()

Converts markdown into HTML.

Functions

get_markdown_processor()

Gets the current markdown processor set globally.

put_markdown_processor(processor)

Changes the markdown processor globally.

to_ast(text, opts \\ [])

Converts the given markdown document to HTML AST.