Skip to content

Conversation

@samuelstroschein
Copy link
Member

@samuelstroschein samuelstroschein commented Jan 7, 2026

Note

Removes automatic CSS injection for syntax highlighting to keep rendered HTML portable and avoid SSR hydration issues.

  • Parser: deletes stylesheet injection logic and the related codeBlockDetector; keeps rehype-highlight for code markup without adding <link> tags
  • Tests: update to assert no stylesheet injection even when code blocks are present
  • Docs: README clarifies styling responsibility, shows how to include a Highlight.js theme or use @opral/markdown-wc/default.css
  • Release: adds a changeset with a minor bump for @opral/markdown-wc

Written by Cursor Bugbot for commit 198b133. This will update automatically on new commits. Configure here.

@samuelstroschein samuelstroschein merged commit 4b262f5 into main Jan 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants