Markdown Plugin

The Markdown Plugin, contributed by Andre Alves Garzia, contains functions dealing with "Markdown", a software tool written in Perl, that converts plain text (formatted with the Markdown syntax) to structurally valid XHTML (or HTML). Please read about Markdown at Daring Fireball.

Loading this Plugin

This plugin is loaded using the following code:

rigLoadPlugin "markdown"

The functions:


Use this function to check if the Markdown engine ( is available.

if rigMarkdownAvailable() then
	# Code...
end if

This function returns true or false.


This function, you guessed it, returns the version of the installed Markdown engine.

rigMarkdown(pPlainText, pHTML4Flag)

This function is a wrapper for the Markdown engine to convert plain text to structurally valid XHTML (or HTML).
The first parameter is a string formatted with the Markdown syntax. The optional second parameter is a boolean which configures Markdown to produce HTML 4 output. Defaults to FALSE (XHTML).

if rigMarkdownAvailable() then
	put rigMarkdown(tMDstring) into gData["mdOutput"]
end if

This converts Markdown formatted plain text to XHTML.