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

Feature request: option to disable smart punctuation other than quotes #472

kylebarbour opened this issue Nov 14, 2017 · 3 comments


Copy link

kylebarbour commented Nov 14, 2017

kramdown currently has a simple mechanism to disable smart quotes (double and single):

$ kramdown --smart-quotes apos,apos,quot,quot file.txt

However, kramdown additionally generates ellipses (U+2026, …) from three periods (...). I think a number of folks like me who opt to preserve ASCII quotes would prefer to retain the three periods as well. This could be as simple as a --no-ellipsis option. I currently remove them with sed.

I think this addresses all the "smart" punctuation. The other main ones are en-dashes (U+2013, –) and em-dashes (U+2014, —), but those are easily avoided if desired by just typing a single hyphen, although I think it would be great to have an option to suppress those as well so one can use -- and --- as preferred.

Thanks for considering!

@gettalong gettalong self-assigned this Nov 16, 2017
Copy link

kramdown currently converts ---, --, ..., << and >>. If we create a new option, it should probably be similar to --smart-quotes in that each "smart punctuation" conversion should be switchable.

Something along the lines --typographic-syms "{mdash: ---, ndash: --, hellip: ...}".

Would that make sense to you? And would this solve your problem?

Copy link

That makes sense to me and would solve my problem as well!

ikedas added a commit to ikedas/sympa that referenced this issue Nov 17, 2017
At least with kramdown, a variant of Markdown, alters two hyphens (--) in the
text to an en dash: See <gettalong/kramdown#472>.
To avoid it, use C<...> instead of B<...> etc in POD.
Copy link

Thanks for your contribution - I have implemented this and it will be in the next release.

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

No branches or pull requests

2 participants