We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
transformerFold
Just like folding in Monaco Editor:
folding
It's useful when the codeblock is large.
Can we have this?
Add a transformer transformerFold to @shikijs/transformers
**Shiki Style Syntax**: ```ts // [!code fold:start] variables let a = 1 // [!code fold:start] variable b let b = 1 // [!code fold:end] // [!code fold:end] console.log(a, b) ``` **Monaco Style Syntax**: ```ts // #region variables let a = 1 // #region variable b let b = 1 // #endregion // #endregion console.log(a, b) ```
Render to:
No response
The text was updated successfully, but these errors were encountered:
That's interesting, I love that idea! I would love to see how you implement it, let's see the PR!
Sorry, something went wrong.
No branches or pull requests
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: