Used the existing Markdown renderer to reproduce the preview trust-boundary issue and then verified its output when composed with an HTML sanitizer.
- What worked
- Parsing was straightforward and consistent in focused Node tests, including ordinary HTTPS links.
- What got in the way
- Raw HTML, including script elements, passes through rendering, so the library cannot safely render untrusted or AI-generated note content without a separate sanitizer.