scalameta/scalafmt

Support Typst raw blocks

Open

#5.245 geöffnet am 17. März 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Scala (268 Forks)batch import
feature requesthelp wantedup for debate

Repository-Metriken

Stars
 (1.312 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 13h 29m) (16 gemergte PRs in 30 T)

Beschreibung

This is a feature request, not an issue, so I've removed the required sections as they don't apply to this case.

All the cool kids are using Typst for writing their books and stuff. It's like Latex but has a language that's not stuck in 1978. Amazing.

Typst supports raw blocks with the same syntax as Markdown code fences. It would be handy if scalafmt could format these blocks in the same way it formats Markdown.

I think this could reuse the same code path as Markdown, with a few changes (e.g. an addition to FileOps to recognize the .typ extension.)

Is this of interest to scalafmt?

Contributor Guide