Skip to content

Use shiki-twoslash for .svelte code blocks #649

Open
@Rich-Harris

Description

@Rich-Harris

Describe the problem

We just upgraded the docs to use shiki-twoslash, which provides tooltips on js code blocks:

image

It would be cool if svelte blocks got the same treatment.

Describe the proposed solution

Honestly no idea, but @jasonlyu123 got a POC working previously: sveltejs/kit#3324 (comment)

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions