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
Raw HTML in markdown is passed through to the output untouched, and there is no option to escape or strip it.
I could deny input containing HTML in my own validation layer, but that rejects legitimate content such as List<String> written in inline code, so a built-in option would be cleaner.
Proposal
An option controlling how raw HTML is treated, matching the three modes league/commonmark offers. This should not require an HTML sanitizer package or any DOM parsing.
Activity
brendt commentedon Aug 5, 2026
Sounds good, I'd call the enum
EscapeModemaybe? Are you up for sending a PR?peaklabs-dev commentedon Aug 9, 2026
Or maybe we could also just use plain strings instead of an enum.