mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-19 09:07:36 +08:00
A paragraph node with no children causes FirstChild() to return nil, making both the entering and leaving Kind() checks panic. Cache the result once and treat nil the same as a non-RawHTML child (emit <p>). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>