From a783270b09af3d873c08a01d13f802018b69fb02 Mon Sep 17 00:00:00 2001 From: a73x Date: Sun, 29 Dec 2024 19:13:27 +0000 Subject: new markdown renderer since TOC has a title now and it can compact toc headers, we can use header 2 for everything use the built in goldmark extension for syntax highlighting --- contrib/styles.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 contrib/styles.go (limited to 'contrib/styles.go') diff --git a/contrib/styles.go b/contrib/styles.go deleted file mode 100644 index 2b02b95..0000000 --- a/contrib/styles.go +++ /dev/null @@ -1,20 +0,0 @@ -// style.go: generate chroma css -// go run contrib/style.go > syntax.css -package main - -import ( - "os" - - "github.com/alecthomas/chroma/formatters/html" - "github.com/alecthomas/chroma/styles" -) - -func main() { - style := styles.Get("xcode") // Choose your preferred style - if style == nil { - style = styles.Fallback - } - - formatter := html.New(html.WithClasses(true), html.TabWidth(2)) - formatter.WriteCSS(os.Stdout, style) -} -- cgit v1.2.3