-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
fixed bug 6028 #6073
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
fixed bug 6028 #6073
Conversation
Thanks for investigating the issue. I think actually, for the non-math context,
to the top and leave the rest of Also, to be PEP8-compliant, the new keyword argument should be spelled |
@mdboom Hi thank you for your response. I have made changes accordingly :-) |
👍 from me, but I'll leave this up for a little while in case others have comments. |
Looks good to me, even though the code might be clearer if a |
@zblz I've made the changes :-) |
@crazyo Can you open a new PR to add a simple test for this? |
backported to v2.x as ebfbc4a |
yes, will do. |
The problem was that hyphen-minus was converted to minus signs without differentiating those in math expressions and those in texts. I fixed it by adding an optional parameter nonMath so that hyphens in texts won't be converted.