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
The behavior is as expected.
The reason we require a blank line is because the unist-util-visit used in this library interprets directives without blank lines in a certain way, which made parsing very difficult. Therefore, it is necessary to revise the parsing process so that it can handle cases without needing a blank line.
::: info
first child
<div>second child</div>
:::
will be converted in (with some simplify):
{ type: "paragraph", value: "::: info" }
{ type: "paragraph", value: "first child" }
{ type: "html": value: "<div>second child</div>:::" } ← this makes hard to parse
input:
output:
input2:
output2 (wrong):
Thanks.
The text was updated successfully, but these errors were encountered: