Markdown.Transmutationist

Markdown transformations.

toHtml : Block -> Html msg

Transform a Markdown block into HTML.

This function uses the default options:

  • imageLoadingStrategy: eager, the browser default.
toHtmlWithOptions :
{ imageLoadingStrategy : LoadingStrategy
}
-> Block
-> Html msg

Transform a Markdown block into HTML, with options.

inlineToHtml : Inline -> Html msg

Transform an inline Markdown element into HTML.

This function uses the default options:

  • imageLoadingStrategy: eager, the browser default.
inlineToHtmlWithOptions :
{ imageLoadingStrategy : LoadingStrategy
}
-> Inline
-> Html msg

Transform an inline Markdown element into HTML, with options.

Loading Strategy

type LoadingStrategy
= Eager
| Lazy
loadingStrategyToString : LoadingStrategy -> String