-
Notifications
You must be signed in to change notification settings - Fork 123
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
Math needs to be around spacing #120
Comments
Other similar constructs that become awkward with this rule: "At the $i$th index..." and "We give each of the The leading space rule doesn't immediately conflict with much I've seen, though. Although maybe if you're going something like "$i$" or ( |
Maybe it is better to remove the constraints altogether to avoid any future problems. It would be pretty frustrating for a user if there’s a case we didn’t consider and is impossible to get around, and we obviously can’t fix it quick enough to help them. And you can always write |
So, we remove the whitespace-around restriction. Any other change needed? |
Only other issue I had was an apparent lack of documentation :P |
Heh. Minimal documentation was planned for v3, but for extensions you can always look at |
I've hit a minor problem with the current implementation. It's not actually a problem, but it can be unintuitive sometimes. If you write:
This won't produce <p>\\\( math \\\)</p> because escapes are not interpreted inside math spans.
|
For the record, there’s another (probably more intuitive) way to get the same output:
Six backslashes produce |
Don't require spacing around math spans (fix #120)
On #114 we imposed that math spans be surrounded by spacing (or nothing). This was made to avoid it being interpreted inside words, like so:
But then @gankro observed that cases like:
wouldn't work because of the dot at the end. So I think that restriction should be left.
The text was updated successfully, but these errors were encountered: