-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
@shikijs/transformers
: add transformerFold
#861
Comments
That's interesting, I love that idea! I would love to see how you implement it, let's see the PR! |
I'm sorry that I'm preparing for 中考 and may not have time to implement this :( |
I will try to implement this one. |
I think that will work in my opinion because I had the same issue to |
This would be super useful! |
I’ve implemented this feature, but the approach is somewhat unconventional, and the code is a bit messy due to limited technical skills. So there won’t be a PR. However, you can check out this repo and use it in VitePress as a If anyone has a better implementation or would like to discuss my messy approach further, feel free to reach out. |
Maybe |
Clear and concise description of the problem
Just like
folding
in Monaco Editor:It's useful when the codeblock is large.
Can we have this?
Suggested solution
Add a transformer
transformerFold
to@shikijs/transformers
Render to:
Alternative
No response
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: