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
{{ message }}
Repository navigation
Inline HTML inside a block component loses its content (0.8) #505
Inside a :: block component, inline HTML loses its content. The text between the tags joins the text before it, and the element is left empty. The same line in a paragraph or a blockquote parses correctly. It happens with every inline tag I tried (b, kbd, sub, script).
It started in 0.8.0 with the token processor refactor (#401). In packages/comark/src/internal/parse/tree.ts, paragraph_open passes nestHtml = state.insideMarkdownContainer === 0 to processChildren. Inside a block component that's false, so the inline text isn't delivered into the open HTML element, while the element itself is still created.
Additional context
Found while moving comark-plugins to 0.8.1: inline HTML inside annotate's notes and inside tabs renders wrong.
Activity
test(annotate): expect a blocked script's code to stay as text until …
feat!: require comark 0.8, whose parser keeps Markdown inside HTML bl…