markdownToHtml
The method $this->markdownToHtml($markdown)
converts Markdown to HTML.
- @param: (string) $markdown. The Markdown to convert.
- @return: (string) Returns the HTML converted from Markdown.
Example Usage
<?php
namespace Plugins\Myplugin;
use \Typemill\Plugin;
class Myplugin extends Plugin
{
...
public function myFunction()
{
$html = $this->markdownToHtml('## My Markdown Headline');
}
}