Skip to content

a-mt/marked-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
});

About

Markdown to HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published