Markdown Helper
Some Markdown helper functions to interact with the Markdown syntax. We use the PHP Markdown version of Markdown.
Functions
parse_markdown($markdown)
Parse a block of markdown and get HTML back.
Name | Default | Required | Description |
---|---|---|---|
markdown | Yes | A Markdown formatted string |
// usage
parse_markdown("Let's convert this _text_ to **Markdown**.");
// output
"<p>Let's convert this <em>text</em> to <strong>Markdown</strong>.</p>"