-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Smart quotes incorrectly converted before a link #4864
Comments
Thanks, can you report it upstream at Docutils with test file
and
(or without the |
I just did it https://sourceforge.net/p/docutils/bugs/343/ |
As answered on the Docutils bug tracker https://sourceforge.net/p/docutils/bugs/343/#57bf (copied here for convenience of Sphinx users):
|
It is probably best in this case to input the correct literal Unicode character for the language. To disable smartquotes for a specific language, say italian you can use the smartquotes_excludes config value in conf.py. For example
Each entry gives a sufficient condition, so the above excludes smart quotes
Apart from Italian language, the above is already default. |
I find the d) fix more interesting, since it gives you the right "smart" quotes. Just make a file named
where the four charachters are the right/left single/double unicode quotes. |
When converting something like
to HTML you get
where a smart quote takes the place of the single quote (that is the apostrophe, quite common in italian, for example).
This can be avoided if
smartquotes = False
is added to the configuration, in such case the conversion becomesas expected (and correct).
The text was updated successfully, but these errors were encountered: