Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 336 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 336 Bytes

Marked

Convert Markdown to HTML.
PHP transpiling of markedjs/marked@1.2.7

<?php
require 'marked.php';

$marked = new Marked\Marked();
$marked->setOptions(['gfm' => true, 'headerIds' => true]);

$text = 'Hello **world**';

$marked($text, function($err, $html) {
    echo $html;
});