fix(remark): preserve code display names through raw HTML#879
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview
Adds a regression test in Reviewed by Cursor Bugbot for commit f5311dc. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Bump @lizuju |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #879 +/- ##
==========================================
+ Coverage 84.99% 85.12% +0.12%
==========================================
Files 179 180 +1
Lines 16407 16581 +174
Branches 1483 1512 +29
==========================================
+ Hits 13945 14114 +169
- Misses 2452 2457 +5
Partials 10 10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
04608ab to
f5311dc
Compare
|
I just noticed this too while working on #889 - cheers! |
Summary
rehypeRawin thegetRemarkRecmapipelinedisplayNamereachesCodeTabsFixes #732
Verification
node --test --experimental-test-module-mocks src/utils/__tests__/remark.test.mjsnpm testnpm run lint(passes; existing warnings remain insrc/generators/web/ui/hooks/useOrama.mjs)npm run format:checkgit diff --checknodejs/learn/pages/test-runner/collecting-code-coverage.mdwithnode bin/cli.mjs generate -t web ...; the generatedcollecting-code-coverage.htmlnow renders the first tabs asmain.jsandmain.test.js, and the bundle containsdisplayNames: "main.js|main.test.js".