Skip to content

Markdown Extensions

Author:Anda Toshiki
Updated:3 months ago
Words:181
Reading:1 min

Code Groups

Code Groups and Twoslash multi-file support.

ts
ts
import { name } from './name'
export function hello(name: string) {
console.log(`Hello, ${name}!`)
}
hello(name)
(alias) const name: "twoslash" import name
ts
import { name } from './name'
export function hello(name: string) {
console.log(`Hello, ${name}!`)
}
hello(name)
(alias) const name: "twoslash" import name
ts
ts
export const name = 'twoslash'
ts
export const name = 'twoslash'

Unsupported Extensions

Since VitePress Twoslash uses it's own Shiki highlighter, the following syntax highlighting extensions are not currently compatible.

If you are interested in adding support, please start a new GitHub Discussion.