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 }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
HTML Tags not closing with markdown extension #1598
What's happening is that the Markdown parser isn't yet parsing <b as an HTML tag, whereas it is <div (or <p or any block tag). As such, HTML-specific behavior like the auto-closing isn't firing when a > is typed. This parsing behavior matches the CommonMark spec (compare this and this example), but I agree that the outcome isn't great in this situation.
It seems kind of hard to work around, though. The closing logic is implemented with an input handler, which runs before the > is in the document (and thus in the parse).
Activity
marijnh commentedon Aug 1, 2025
What's happening is that the Markdown parser isn't yet parsing
<bas an HTML tag, whereas it is<div(or<por any block tag). As such, HTML-specific behavior like the auto-closing isn't firing when a>is typed. This parsing behavior matches the CommonMark spec (compare this and this example), but I agree that the outcome isn't great in this situation.It seems kind of hard to work around, though. The closing logic is implemented with an input handler, which runs before the
>is in the document (and thus in the parse).marijnh commentedon Apr 15, 2026
This issue has been moved to issue #1598 on the repository's new home.