Skip to content

Commit

Permalink
chore: Remove markdown/highlighting.go and directly use goldmark-high…
Browse files Browse the repository at this point in the history
…lighting (#3461)

Co-authored-by: Guilhem Fanton <[email protected]>
  • Loading branch information
jefft0 and gfanton authored Jan 8, 2025
1 parent 36d6e7c commit c6c0e6e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1,157 deletions.
1 change: 1 addition & 0 deletions contribs/gnodev/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ require (
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
github.com/yuin/goldmark v1.7.2 // indirect
github.com/yuin/goldmark-emoji v1.0.2 // indirect
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
Expand Down
7 changes: 7 additions & 0 deletions contribs/gnodev/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion gno.land/pkg/gnoweb/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
"path"
"strings"

markdown "github.com/yuin/goldmark-highlighting/v2"

"github.com/alecthomas/chroma/v2"
chromahtml "github.com/alecthomas/chroma/v2/formatters/html"
"github.com/alecthomas/chroma/v2/styles"
"github.com/gnolang/gno/gno.land/pkg/gnoweb/components"
"github.com/gnolang/gno/gno.land/pkg/gnoweb/markdown"
"github.com/gnolang/gno/tm2/pkg/bft/rpc/client"
"github.com/yuin/goldmark"
mdhtml "github.com/yuin/goldmark/renderer/html"
Expand Down
Loading

0 comments on commit c6c0e6e

Please sign in to comment.