Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to support CommonMark or support it by default #197

Closed
cirosantilli opened this issue Dec 21, 2014 · 4 comments
Closed

Add an option to support CommonMark or support it by default #197

cirosantilli opened this issue Dec 21, 2014 · 4 comments
Assignees

Comments

@cirosantilli
Copy link

You can check incompatibilities with:

./test/spec_tests.py --program kramdown

The problem is that now their normalization is broken so too many tests fail, so I'll keep a list of actual discrepancies here until the normalization gets fixed:

@gettalong gettalong self-assigned this Dec 25, 2014
@gettalong
Copy link
Owner

kramdown is not commonmark. If you want a Ruby parser for CommonMark, write a parser for the kramdown library or write a standalone library.

@cirosantilli
Copy link
Author

Sure, if I wanted a strict CommonMark parser I wouldn't be using Kramdown.

What I recommend is a gradual move towards CommonMark syntax, starting from the edge cases. Libraries that don't make this move are more likely to die in the long run. E.g.: if GitHub pages started supporting a CommonMark compiler I'd switch to it, which is the reason why I currently use Kramdown.

Of course, maybe it's not worth making that move from where Kramdown stands today given other implementations.

@Tuckie
Copy link

Tuckie commented Dec 31, 2014

At the very least, having a CommonMark flavored markdown option might not be a bad idea...

@ghost
Copy link

ghost commented Dec 12, 2018

For anyone using GitHub Pages, you can simply add this to _config.yml:

markdown: CommonMarkGhPages

you dont even have to declare the plugin in _config.yml as its activated by
default:

http://github.com/github/pages-gem/blob/fb5c3f2/lib/github-pages/plugins.rb#L9

reference:

http://github.com/github/jekyll-commonmark-ghpages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants