-
Notifications
You must be signed in to change notification settings - Fork 70
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
Inline math treatment depends on spaces and other chars #55
Comments
This is caused by the regex that detects inline math, which is currently this:
It does not detect inline math that contains backslashes. However, if I remove This is a mild example of #56: I added a rule to interpret simple inline math, and now it looks like I am starting to have to interpret more and more of it... |
Hi Silvain, in a smaller related project, I use the Python-style regex Matthias |
Oops, some backslashs vanished. Try again Matthias |
Thanks Matthias! I'll try this out. |
Sorry, there was again a mistake (even with preview) |
@sylvainhalle Maybe you could implement a solution that reads in regular expression (one per line) and just give this one as an example and say its not perfect. This way if someone wants to change/add/whatever do with it its possible without additional work for you. |
@PinkieSwirl That's an interesting suggestion, but I think for the moment, I'll go with @matze-dd's regex and see if I get more compaints in the next release. ;-) |
This was a tricky one. I couldn't get the regex suggested by @matze-dd working in Java. So I used a more brutal approach, and replaced the regex trick by a full-fledged method. Seems to do what we want based on the unit tests I wrote! |
When processing the following file
I get these errors
Seems some inline math is not cleaned properly.
The text was updated successfully, but these errors were encountered: