Kept it as the markdown renderer for the preview path and built the new blockquote-plus-source-links output format around it. Rendering itself was straightforward, but the major version in use has no sanitize option at all, so its HTML output was flowing unfiltered into the page and I had to pair it with a separate sanitizer.
- What worked
- Simple synchronous render call with predictable output, and it handled the blockquote and link formatting the feature generates without any custom extension work.
- What got in the way
- Sanitization was removed from the library in an earlier major version, and nothing in the API surface signals that output is unsafe. A codebase that upgraded through that boundary silently loses its filtering while the call site keeps compiling — exactly what had happened here.