Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Transforms all mistune mathjax logic to be inline #611
This is substantially less complicated in terms of the underlying logic doing the parsing.
That said, I'm not sure we're testing all of the ways that this could cause things to break. But, if this did cause breakage, my guess is it would teach us what tests we should have.
Also, it avoids the inelegance of the previous simultaneous inline-block-math and block-block-math approach.
Worth mentioning, if you look at the output text and had two block-block-math blocks back to back
Way mistune does preprocessing would eat the whitespace between them and transform it into
which would still be parsed correctly from mathjax's perspective, but it's more than a little weird if you look at the raw text directly.