tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

Annotate code example as Typst code

Open Iorvethe opened this issue 9 months ago • 1 comments

Motivation

Annotating code snippets as Typst code in Markdown docs would make them correctly highlighted by Treesitter’s injection queries.

Description

I use Helix and currently when requesting docs for an item, code snippets inside aren’t highlighted as Typst code. I do not know whether the issue is with annotating the code or something else, but I suppose it is something in that vein. When writing Markdown and including a Typst snippet, it is correctly highlighted for example.

Examples/Questions

Hover Docs Markdown
image image

Iorvethe avatar May 13 '24 21:05 Iorvethe