You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Equation labels in dollar math are not identified unless the equation is preceded by a blank line. For example, the following two versions work as expected.
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
This is an interesting Issue. The use of spaces, number of spaces, and blank lines is one aspect of MyST-Parser that I'm trying to understand better and be consistent.
From reading the MyST-Parser documentation on Paragraphs , it says,
Paragraphs are block of text separated by a blank line.
From the above, I would say there's a requirement for a blank line between the paragraph block (First.) and the $$ extension. When there is is no blank line, the MyST-Parser reads everything until a blank as a paragraph block, thus my-eqn is not defined, resulting in the missing reference.
Well, an equation is not a paragraph. We commonly say ", where A is something, and B is something". So, if I put a blank line after the equation, will the incident of "where A is something, and B is something" look strange?
Meanwhile, if I missed a blank line after an equation segment, the next time I use a pair of dollar signs to include an inline equation will not be compiled properly.
I suggest we implement a parser to allow equation environment put inside of a pair of double-dollar to put closely in a paragram with other text content.
What version of
myst-parser
are you using?2.0.0
What version dependencies are you using?
What operating system are you using?
Mac
Describe the Bug
Equation labels in dollar math are not identified unless the equation is preceded by a blank line. For example, the following two versions work as expected.
But this version fails with a missing reference.
My
conf.py
containsExpected Behavior
Equation labels are identified even if no blank line precedes the equation.
To Reproduce
See above.
The text was updated successfully, but these errors were encountered: