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
So I think mdbook treat button right opening tag as blockquote.
And I also find that, this issue only appers in button tag, it renders script, style, iframe, footer and div all properly, even these tags have some strange right opening tag positions.
This is okay, which > was separately put under a new line:
So I think this is releated only to button and some other inline tags like span. It won't able to render below custom element properly too:
<span> hello world</span>
Even with mdbook 0.4.36, it cannot pase it properly too.
Though above span example is strange and rarely there got any people would write raw html in markdown, but I think it's important to improve mdbook markdown parsing.
Version
0.4.37
The text was updated successfully, but these errors were encountered:
Thanks for the report! I believe this is working as intended. The parser tries to adhere to commonmark as closely as possible, and the reference implementation agrees here. My guess is that the precedence rules take over here, causing > to be treated as a blockquote (I believe block-structure elements take precedence over inline ones).
With your reference, it makes sense that block-structure elements take precedence over inline ones. But in version 0.4.36, mdboook is able to correctly parse below custom html:
Problem
When I upgrade to 0.4.37, some of my custom tags was broken, and I find that this was releated to mdbook blockqote parsing issue.
It will treat below right opening tag as blockquote while rending:
And turn it into:
Steps
For example, I have below custom button element in my markdown:
And turn it into:
Possible Solution(s)
However if I move button right opening tag
>
upper, it will render properly:Notes
So I think mdbook treat button right opening tag as blockquote.
And I also find that, this issue only appers in button tag, it renders script, style, iframe, footer and div all properly, even these tags have some strange right opening tag positions.
This is okay, which
>
was separately put under a new line:And this is okay too, which
>
has a space with closing tag which is every similar to markdown blockquote syntax:So I think this is releated only to button and some other inline tags like span. It won't able to render below custom element properly too:
Even with mdbook 0.4.36, it cannot pase it properly too.
Though above span example is strange and rarely there got any people would write raw html in markdown, but I think it's important to improve mdbook markdown parsing.
Version
The text was updated successfully, but these errors were encountered: