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

--- (3 dashes) should be converted to a single mdash #46

Open
xuhdev opened this issue Aug 19, 2016 · 3 comments
Open

--- (3 dashes) should be converted to a single mdash #46

xuhdev opened this issue Aug 19, 2016 · 3 comments

Comments

@xuhdev
Copy link

xuhdev commented Aug 19, 2016

Currently, the following lines produces an mdash and a dash:

from typogrify.filters import typogrify
print(typogrify("---"))

prints

—-

but it really should print a single mdash---otherwise how to produce an ndash? See the wikipedia to read more details.

@justinmayer
Copy link
Collaborator

I think we could possibly add support for converting --- to an em-dash, but I do not think we will change the -- conversion behavior to produce an en-dash. Using -- as a proxy for an em-dash is too deeply ingrained in traditional text behaviors, as well as mainstream operating systems that automatically replace -- with an em-dash.

When I want an en-dash, I use the en-dash itself in the source content. Seems to work fine.

@xuhdev
Copy link
Author

xuhdev commented Aug 20, 2016

OK, thanks... Maybe we should just support 3 dashes...

@justinmayer
Copy link
Collaborator

For folks using Markdown, the SmartyPants extension in Python-Markdown already handles this.

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

2 participants