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 --- go.mod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'go.mod') diff --git a/go.mod b/go.mod index 957ad30..b257e92 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,18 @@ go 1.23 require ( github.com/adrg/frontmatter v0.2.0 github.com/alecthomas/chroma v0.10.0 + github.com/alecthomas/chroma/v2 v2.2.0 github.com/fsnotify/fsnotify v1.8.0 github.com/gomarkdown/markdown v0.0.0-20240730141124-034f12af3bf6 + github.com/yuin/goldmark v1.7.8 + github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc + go.abhg.dev/goldmark/toc v0.10.0 go.uber.org/zap v1.27.0 ) require ( github.com/BurntSushi/toml v1.2.1 // indirect - github.com/dlclark/regexp2 v1.4.0 // indirect + github.com/dlclark/regexp2 v1.7.0 // indirect github.com/stretchr/testify v1.9.0 // indirect go.uber.org/multierr v1.10.0 // indirect golang.org/x/sys v0.13.0 // indirect -- cgit v1.2.3