Use CommonMark in HTML / PHP


#1

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

e.g.

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

#2

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