Drafts Scripting Reference

MultiMarkdown

Drafts includes a full version of the MultiMarkdown 6 engine to render Markdown text to HTML and other supported formats. For details on the meaning of the various options, refer to MultiMarkdown documentation.

Instance Functions

Instance Properties

Class Functions

Examples

var inputString = "# Header\n\nMy **markdown** text";
var mmd = MultiMarkdown.create();

mmd.format = "odt";
mmd.criticMarkup = true;
var outputString = mmd.render(inputString);