-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
When a math fence immediately follows text, the resulting tokens are multiplied #1023
Comments
I also just did that: The result is identical for both reference parser and this one. So... where's the bug exactly? |
Sorry, Alex, this may just be my own ignorance about how the markdown-it parser is used. Here's the code that's generating the token stream:
The link you shared certainly produces the right html after tokenizing - but I've got a custom renderer consuming the token stream and I'm trying to make sense of the tokens I'm seeing. So I guess this boils down to two related questions:
|
Aha! I see now that it's one of the plugins that seems to be wreaking havoc (probably the |
No problem. Yes, |
I would expect that the following markdown:
To have an HR token, a
heading
containing the "AAA" text, aparagraph
containing the "BBB" text, and agenerated_image
with the$$$
markup and1
content.Instead, I'm seeing the following tokens:
I ran it through Dingus as well, to make sure the reference implementation wasn't also generating multiple images!
The text was updated successfully, but these errors were encountered: