Tanguv0.35.0
Text & i18n1 exports
Raw Markdown

/text/cmark

CommonMark and GitHub Flavored Markdown compiler (to-html) supporting tables, strikethrough, and task lists.

(use /text/cmark)

Functions & symbols#

to-html#

function
(to-html markdown [options]) -> String

Compiles Markdown (tables, strikethrough, task lists, heading attributes) to HTML (strips raw HTML unless `{:unsafe true}`).

ParameterTypeOptionalDescription
markdownStringrequiredCommonMark / GFM Markdown source string
optionsMapoptionalOptional compiler flags {:unsafe Bool}
Returns:Any
(cmark/to-html "# Hello\n\n**World**")