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 :
Block
-> { imageLoadingStrategy : LoadingStrategy }
-> 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 :
Inline
-> { imageLoadingStrategy : LoadingStrategy }
-> Html msg

Transform an inline Markdown element into HTML, with options.

Loading Strategy

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