markdownToHtml

Converts Markdown to HTML.

markdownToHtml(string [, safeMode] [, encoding]) → returns string

This function requires Lucee 6.0.0.150 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

string string
Required

The Markdown string, or the path to a Markdown file.

safeMode boolean
Default: false

When true, unsafe HTML tags in the Markdown are escaped.

encoding string

The charset of the file. Only used when string is a file path.

Examples
Sample code invoking the markdownToHtml function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub