Repository navigation
fix(parse): preserve braced code block language when not numeric highlights - #640
EnesKartal wants to merge 3 commits into
Conversation
Architecture Data flow No data-flow sequence changed in this PR. Review 1 finding · reviewed
|
|
@EnesKartal is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
comark
@comark/angular
@comark/ansi
@comark/html
@comark/nuxt
@comark/react
@comark/svelte
@comark/vue
commit: |
Merging this PR will not alter performance1 warning
Comparing |
|
Thanks for PR @EnesKartal |
Addresses #525 (case 22)
Summary
parseCodeblockInfoinpackages/comark/src/internal/parse/tree-utils.tsso a leading{...}token that does not parse as numeric line highlights (e.g.```{x}) is preserved aslanguageinstead of being discarded when no prior language was specified.```{1,3-4}) continue to populatehighlights.packages/comark/test/codeblock-braced-lang.test.ts.Verification
npx vitest run test/codeblock-braced-lang.test.ts test/fence.test.tsinpackages/comark(2 test files, 10 tests passed)npx tsc --noEmit(passed)npx oxlint packages/comark/src/internal/parse/tree-utils.ts packages/comark/test/codeblock-braced-lang.test.ts(0 warnings, 0 errors)