Open tillahoffmann opened 3 months ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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).
Welcome to the EBP community! :tada:
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 "
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.