Lucee Function Reference

markdowntohtml()

Transforms Markdown formatted String into HTML.

Example

markdowntohtml(string string,[boolean safeMode,[string encoding]]):string

Category

string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
string string  Yes   A Markdown formatted string or a path to a file containf a markdown formatted string to convert to HTML  
safeMode boolean  No false If set to true it does escape unsafe HTML tags  
encoding string  No   Charset, only used in case the argument markdown contains a file path