Skip to content

[Feature]: integration with twoslash which display ts info in code blocks #574

@sanyuan0704

Description

@sanyuan0704

What problem does this feature solve?

Dispaly the ts information in code blocks:

image

source: https://shikijs.github.io/twoslash/

See the details in https://github.com/shikijs/twoslash.

What does the proposed API look like?

Now we support shiki highlighter in rspress-plugin-shiki.And we can integrate https://github.com/shikijs/twoslash/tree/main/packages/shiki-twoslash in this plugin so that the ts compiler will be added in the code block.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions