Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rksvc
Copy link
Contributor

@rksvc rksvc commented Nov 16, 2025

When rendering code groups, the default renderer generates something like <input type="radio"><label>npm</label> for switching between tabs, but all JavaScript and CSS are disabled in RSS, and some RSS readers' sanitizers remove input elements, resulting in something like this in Miniflux:

1

This PR converts code groups into HTML tables like this:

2

Some irrelevant changes seem to occur in pnpm-lock.yaml after running pnpm add -D @types/markdown-it @types/markdown-it-container markdown-it-container and I don't know how to avoid them.

I know the implementation is a bit hacky, feel free to close this if it's out of scope.

@netlify
Copy link

netlify bot commented Nov 16, 2025

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit 2f1e612
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/691a6241ba1a580008fd7262
😎 Deploy Preview https://deploy-preview-634--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rksvc rksvc force-pushed the improve-code-group-style branch from e3d0bd2 to 2f1e612 Compare November 16, 2025 23:46
@Boshen Boshen merged commit f5e6971 into oxc-project:main Nov 17, 2025
7 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