Skip to content

KMark

The original Markdown to HTML, with an id and CSS classes on the elements, and the elements of the styles of your choice.

ciPackagistReleaseLicensePHP

Quick start ​

bash
composer require stanislas-poisson/kmark
php
use KMark\Convert;

echo Convert::toHtml("# Title {#top}\n\nSome **bold** text and a [link](https://example.com){.external}.");
html
<h1 id="top">Title</h1>
<p>Some <b>bold</b> text and a <a href="https://example.com" class="external">link</a>.</p>

The guide has the whole syntax and every option, and the reference every class.