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
Parser panic on link-reference-like list item followed by blank tab line #1095
pulldown-cmark 0.13.3 panics while iterating the parser for this 11-byte Markdown input:
- [n]:Z\r\n\t\t
Minimal Rust reproducer:
use pulldown_cmark::{Options,Parser};fnmain(){let s = "- [n]:Z\r\n\t\t";let parser = Parser::new_ext(s,Options::all());for _ in parser {}}
Observed panic in a fuzz campaign through mdwright:
thread panicked at .../pulldown-cmark-0.13.3/src/parse.rs:2367: called `Option::unwrap()` on a `None` value
The same panic reproduces when collecting events directly from Parser::new_ext(..., Options::all()), so it appears independent of mdwright's formatter/linter logic.
Expected: parsing arbitrary Markdown input should not panic; this input should produce some event stream or be handled internally without unwinding.
Activity
notriddle commentedon May 26, 2026
Fixed by #1096