league/commonmark - symfonylive san francisco 2015 lightning talk
TRANSCRIPT
league/commonmark
Well-written, super-configurable Markdown parser
based on the CommonMark spec
WHAT IS COMMONMARK?
A strongly specified, highly compatible Markdown standard.
Written by people from Github, StackOverflow, Reddit, and others.
WHY IS IT NEEDED?
*foo bar baz*
WHY IS IT NEEDED?
*foo *bar* baz*
WHY IS IT NEEDED?
*foo *bar* baz*
<p><em>foo <em>bar</em> baz</em></p>
*foo *bar* baz*
<p><em>foo </em>bar<em> baz</em></p>
*foo *bar* baz*
<p><em>foo *bar</em> baz*</p>
FEATURES
Supports the full CommonMark standard
Object-oriented, well-abstracted
Highly extensible
Markdown parsed into ASTAST can be manipulated before rendering
to HTML
Full UTF-8 compatibility
INTEGRATES WITH
Symfony
Twig
Sculpin
Laravel 4 & 5
Zend Framework 2
CakePHP 3
Build your own!
https://github.com/thephpleague/commonmark#integrations
CUSTOMIZATION EXAMPLE
http://commonmark.orghttp://commonmark.thephpleague.comhttp://johnmacfarlane.net/babelmark2