Markdown Extensions
Author:Anda Toshiki
Updated:a day ago
Words:181
Reading:1 min
Code Groups
Code Groups and Twoslash multi-file support.
ts
ts
import {name } from './name'export functionhello (name : string) {console .log (`Hello, ${name }!`)}hello (name )
ts
import {name } from './name'export functionhello (name : string) {console .log (`Hello, ${name }!`)}hello (name )
ts
ts
export constname = 'twoslash'
ts
export constname = 'twoslash'
Unsupported Extensions
Since VitePress Twoslash uses it's own Shiki highlighter, the following syntax highlighting extensions are not currently compatible.
- Line Highlighting in Code Blocks
- Focus in Code Blocks
- Colored Diffs in Code Blocks
- Errors and Warnings in Code Blocks
- Line Numbers
- Import Code Snippets
If you are interested in adding support, please start a new GitHub Discussion.