RenderMarkdownToHTML (open)
Renders a parsed MarkDown document tree to HTML
Syntax
LOADLIB "wh::filetypes/markdown.whlib";
STRING FUNCTION RenderMarkdownToHTML(RECORD tree, RECORD options)
Parameters
RECORD tree
Parsed markdown tree
RECORD options
Options
STRING encoding
Either 'default' (follow WebHare html/URL encoding) or 'spec' (use CommonMark reference HTML encoding)
FUNCTION PTR rewritelink
Link rewriter. Signature: STRING FUNCTION RewriteLink(STRING link)
Return value
STRING
Rendered HTML