diff options
| author | a73x <[email protected]> | 2024-12-29 19:13:27 +0000 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-12-30 11:00:49 +0000 |
| commit | a783270b09af3d873c08a01d13f802018b69fb02 (patch) | |
| tree | bdac4e38357afa535515dd8dda790d7193f371d0 /contrib | |
| parent | 71513b80ebc21240b5b68d8bbbf8b7ee2f54893e (diff) | |
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
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/styles.go | 20 |
1 files changed, 0 insertions, 20 deletions
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) -} |
