FUEL CMS User Guide : Version 1.5.2

Markdown Helper

This helper has the markdown function originally developed by John Gruber and modified by Michel Fortin to be used for PHP. It has some similar characteristics to the auto_typography function in the typography helper.

This helper is loaded using the following code:



Converts normal text into html syntax.

$str = '
This is a paragraph.

* list item 1
* list item 2

echo markdown($str);

// echos out
<p>This is a paragraph.<p>

	<li>list item 1</li>
	<li>list item 2</li>

For complete syntax documentation click here.