FUEL CMS User Guide : Version 1.3.2


Markdown Helper

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

This helper is loaded using the following code:

$this->load->helper('markdown');

markdown(str)

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>

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

For complete syntax documentation click here.