Use CommonMark in HTML / PHP

My simple question here is, how would I easily implement common mark into an HTML / PHP document?

e.g.

echo commonmark->parse('# A header');

There’s a CommonMark parser for PHP that you can use. The project’s site contains installation instructions (it can be installed via Composer).

http://commonmark.thephpleague.com

1 Like