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

Consider switching to GitHub-flavoured Markdown parser in Kramdown #56

Open
floehopper opened this issue Jul 23, 2017 · 0 comments
Open

Comments

@floehopper
Copy link
Member

Kramdown supports an non-default parser for GitHub-flavoured Markdown. I think this might be a sensible one to use. I found myself wanting it just now when I wanted to be able to use the "strikethrough" functionality.

It looks as if this is as simple as changing:

Kramdown::Document.new(content).to_html

to:

Kramdown::Document.new(content, input: 'GFM').to_html

However, that change seems to affect the IDs automatically added to headings, so we'd need to fix any links to those anchors.

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

No branches or pull requests

1 participant