From a7634067019867a0c805172cc06c2bac1f5bcd3e Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Fri, 20 Jun 2025 16:57:53 -0700 Subject: [PATCH] Add an index to draft post --- posts/2025-06-20-chroma.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/posts/2025-06-20-chroma.md b/posts/2025-06-20-chroma.md index ea45cb9..2da98bc 100644 --- a/posts/2025-06-20-chroma.md +++ b/posts/2025-06-20-chroma.md @@ -1,11 +1,13 @@ { blurb: "Add a new lexer to chroma" } +$index ## Intro -Chroma doesn't have a MoonScript lexer. It does has a Python script that can -convert Pygments lexers, though, and Pygments has a MoonScript lexer. +Gitea uses Chroma for syntax highlighting. Chroma doesn't have a MoonScript +lexer. It does has a Python script that can convert Pygments lexers, though, +and Pygments has a MoonScript lexer. ## Run MoonScript lexer generation script @@ -180,4 +182,3 @@ lexer markup output. ... ``` -If you wanted to save