Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Markdown renderer #87
I love your project this is pretty amazing and usefull
BUT the markdown renderer/parser you use doesn't respect markdown syntax at all.
There is a lot of examples with list, quotes, line feed etc ...
You can tests examples of syntax from the original markdown:
That would be great if your replace the renderer you actually use with one implementing all markdown features + Github Flavored Markdown ones.
There is a lot of markdown renderer / parser that won't be a problem.
@noraj1337 The problem with the original Markdown "spec" is that it insufficiently describes all corner cases of Markdown parsing. That's why CommonMark was created as a way to standardize around some kind of community-maintained spec.
@honzajavorek : Yeah you're right, and commonMark is really good initiative but it does support only original markdown. For example array (from GMF) are quite useful and used everywhere but not supported by commonMark.
Here is what GMF add more : https://help.github.com/enterprise/11.10.340/user/articles/github-flavored-markdown/
And here is github parser : https://github.com/github/markup
I don't if it possible to use commonMark + GMF features.
But there is a lot of others additions (https://github.com/jgm/CommonMark/wiki/Markdown-Flavors).
It has already resolved in Marp Next. It has grown durable against a practical use, so we close this issue.
yhatt/marp had already used markdown-it, the 100% CommonMark compliant parser. But I had not used CommonMark option in constructor option. So we had decided to strictly respect CommonMark (0.28) by default in Marpit, the brand-new framework of Marp Next ecosystem (#267).
Additional syntax never breaks CommonMark document. And we will hate extra syntax to require breaking CommonMark. (But power user can extend favorite syntax by markdown-it plugin.)
Our new core based on Marpit has carefully selected extra syntaxes: GFM table, Pandoc style math typesetting, and emoji shorthand.