Namespace: joker.markdown
v1.0Contents
Summary
Renders GitHub Flavored Markdown to HTML.
Index
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
convert-string
Function v1.0(convert-string s)(convert-string s opts)Renders Markdown string s to HTML.
GitHub Flavored Markdown extensions are enabled, along with tables,
definition lists, footnotes, typographer replacements, and automatic heading
IDs.
opts is an optional map of boolean rendering options; all default to true:
:with-hard-wraps? - Render newlines as <br>.
:with-xhtml? - Render as XHTML.
:with-unsafe? - When false, all raw html will be omitted from the output. When true html is passed through unchanged.
Example:
(joker.markdown/convert-string "# Hello")
;; => "<h1 id=\"hello\">Hello</h1>\n"