Conversation
|
Thanks for your pull request! Some comments:
|
Done. I have two concerns though:
|
With GFM, we want to be as close as possible to GitHub Flavored Markdown. In particular, GitHub does not replace -- with en-dash, --- with em-dash et cetera, and doing this not only breaks HTML rendering (resulting in, say, –option instead of --option). The above replacement also makes header IDs incompatible with those generated by GitHub, making it way harder to create a document with intralinks that work both on GitHub and kramdown-generated HTML. So, let's introduce another GFM quirk to turn off automatic typographic symbol conversion. NOTE it is off by default, i.e. needs to be explicitly enabled. For more details on the issue and examples, see gettalong#459 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
|
Thanks for the changes! As for your concerns:
|
|
I have cherry-picked your commit - the changes will be in the next release. |
With GFM, we want to be as close as possible to GitHub Flavored Markdown. In particular, GitHub does not replace
--with en-dash,---with em-dash et cetera, and doing this not only breaks HTML rendering (resulting in, say,–optioninstead of--option), but also makes header IDs incompatible with those generated by GitHub. So, let's turn automatic typographic symbol conversion by default, and add an option to enable it back.I have checked that this change makes header IDs the same as they are in GitHub.
For more details on the issue and examples, see #459
Signed-off-by: Kir Kolyshkin kolyshkin@gmail.com