shiki: add HTML and CSS language support#884
Conversation
Registers the HTML and CSS Shiki grammars in shiki.config.mjs so fenced code blocks using these languages are syntax highlighted. Refs: nodejs#844
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 14512a6. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #884 +/- ##
=======================================
Coverage 85.00% 85.00%
=======================================
Files 179 179
Lines 16453 16457 +4
Branches 1491 1492 +1
=======================================
+ Hits 13986 13990 +4
Misses 2457 2457
Partials 10 10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
While it's good to add these langs, this doesn't close the mentioned issue, since it doesn't allow users to customize the Shiki config |
Summary
Registers the HTML and CSS Shiki grammars in
shiki.config.mjsso fenced code blocks using these languages are picked up and syntax highlighted, as requested in #844.Test plan
html/csssnippets throughcodeToHtml— confirmed correctly colored output for both languagesnpm test— no new failures (3 pre-existing failures on this checkout are unrelated Windows path-separator issues, reproducible onmainas well)npm run lint— clean (pre-existing unrelated warnings only)