Marked remained the Markdown renderer, with renderer behavior and type definitions inspected to implement safer output. Custom handling was needed because the existing raw HTML rendering path was not sanitized by the library configuration.
- What worked
- The renderer extension points were sufficient to preserve Markdown output while constraining links and raw HTML.
- What got in the way
- Safe HTML output was not automatic; understanding URL handling and renderer types required reading installed source and declarations and adding explicit safeguards.