feat: add twoslash js/ts highlight

This commit is contained in:
camera-2018
2024-06-03 22:14:51 +08:00
parent 6b9e972463
commit b5b72ee931
5 changed files with 4011 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
5. 代码块使用 ` ``` ` 包裹,并标注常见的语言标识符,如 ` ```python ` ,其作用是使代码正常高亮。
::: details 代码高亮支持的语言
```ts
```ts twoslash
export type Lang =
| 'abap'
| 'actionscript-3'