Built-in

twoslash

```` ```ts twoslash ```` fences and their annotations.

```ts twoslash fences and their annotations.

import twoslash from 'comark-codemirror/plugins/twoslash'

comark({ plugins: [twoslash()] })

What it adds

  • Completion in fence-meta, fence-body
  • Snippets: TypeScript (twoslash)

For agents

Included in llms():

Twoslash: ```ts twoslash fences show TypeScript types; // ^? queries the type of the symbol above.

Copyright © 2026