Skip to content
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

Support Twoslash code organization features #3448

Open
aniravi24 opened this issue Oct 14, 2024 · 1 comment
Open

Support Twoslash code organization features #3448

aniravi24 opened this issue Oct 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@aniravi24
Copy link

Is your feature request related to a problem? Please describe.

When using twoslash code organization features like @include or ---cut---, nothing happens in the rendered Nextra page.

Describe the solution you'd like

I want to be able to use features such as @include and ---cut--- from twoslash in my Nextra pages. Right now, it just prints the directive directly into the output without actually applying it to the twoslash markdown.

Describe alternatives you've considered

Prior to Nextra adding support for twoslash, I tried to add it myself with remark-shiki-twoslash. However, the Nextra twoslash integration looks better than trying to add twoslash and the corresponding styling manually. I would prefer to use twoslash through nextra with no additional configuration.

Additional context Add any other context or screenshots about the feature
request here.

@aniravi24 aniravi24 added the enhancement New feature or request label Oct 14, 2024
@dimaMachina
Copy link
Collaborator

PR welcome

Repository owner deleted a comment Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants