-
-
Notifications
You must be signed in to change notification settings - Fork 518
changes done #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
changes done #1144
Conversation
✅ Deploy Preview for shiki-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for shiki-matsu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@antfu Raised PR Please take a look review and merge it |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1144 +/- ##
==========================================
+ Coverage 94.95% 94.98% +0.02%
==========================================
Files 90 91 +1
Lines 7776 7811 +35
Branches 1632 1645 +13
==========================================
+ Hits 7384 7419 +35
Misses 386 386
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@antfu All chechks have passed |
|
@antfu Please Update if any Changes are required on this this PR |
Title: feat(transformers): add transformerRemoveComments
Description
This PR introduces a new transformer [transformerRemoveComments]
This transformer allows users to automatically remove comments from their code snippets. This is particularly useful for scenarios like presentation slides or minimal examples where comments might be distracting or consume valuable vertical space.
It uses
includeExplanation: trueto identify tokens with comment scopes (e.g.,comment.line,comment.block) and filters them out. It also includes an optionremoveEmptyLines(defaulting totrue) to clean up lines that become empty after comment removal.Type of Change
Checklist