method markdown2html documentation in bbn\Str

Transforms a markdown string into HTML.

Example

var_dump(\bbn\Str::markdown2html("# foo")); // (string) '

foo

' var_dump(\bbn\Str::markdown2html("**foo**")); // (string) '

foo

' var_dump(\bbn\Str::markdown2html("**foo**", true)); // (string) 'foo'
function(string $st, bool $single_line = false) { if (!self::$_markdownParser) { self::$_markdownParser = new \Parsedown(); } return $single_line ? self::$_markdownParser->line($st) : self::$_markdownParser->text($st); }

Transforms a markdown string into HTML. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.