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.