-
Notifications
You must be signed in to change notification settings - Fork 133
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
Unexpected behaviour of components when immediately prepended by GFMD #958
Comments
@ang-zeyu I've looked into this issue and here's what I discovered so far. From my investigation, the problem stems from Using your example, refer to here to see how it is parsed by Due to the way Now, if we were to change And that is because It seems like we will have to patch Just wanted to share my findings with you before I go ahead with a patch, in case you have any ideas / advice. What do you think? :-) |
yup, we might also reference vuepress' solution for this. (though, be careful with |
We have never defined the behavior of our custom components as html tags (whether block-level or inline) in markdown parsing. This causes some undesirable edge cases during markdown parsing, as raised up in #958. Let's adopt the way VuePress define the behaviour for custom components and adapt it to fit our needs.
Tell us about your environment
What did you do? Please include the actual source code causing the issue.
In general, any markdown + html with the following format causes the issue
Only tested with box and panels, since that is likely the only places multiple paragraphs would be used.
Exceptions for the markdown pre text ( as far as I have found, exhaustively tested from this list https://markbind.org/userGuide/formattingContents.html ):
...
)>
does not produce the issue but> some text
does. )Example 1 (boxes):
Example 2 (panels):
What did you expect to happen?
The multiple paragraphs should be chucked into the component itself, like so
Example 2: ( result achieved by leaving an empty line between the pre text and component )

What actually happened? Please include the actual, raw output.
The subsequent paragraphs after the first are appended after the component
Example 1:

Example 2:

The text was updated successfully, but these errors were encountered: