MarkdownToHtml()
Transforms Markdown formatted String into HTML.
Introduced: 6.0.0.150
MarkdownToHtml( string=string, safeMode=boolean, encoding=string );
Returns: String
Examples
nl= chr(10);
dNL= nl & nl;
markdownString="" &
"## Heading1" & dNL &
"###### Simple Paragraph" & dNL &
"Some simple paragraph with a simple text" & dNL &
"###### Ordered List" & dNL &
"- First item" & nl &
"- Second item" & nl &
"- Third item" & dNL &
"###### Some Blockquotes" & dNL &
"> This is some blockquoted text" & nl &
">> Blockquoted text with indentation" & dNL;
echo( markdownToHtml( markdownString) );
See also
- Strings
- string.MarkdownToHTML()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)