feat(blog,syntax-highlight): use monokai with line numbers theme
This commit is contained in:
6
app.go
6
app.go
@@ -25,6 +25,7 @@ import (
|
||||
"forge.capytal.company/loreddev/x/smalltrip"
|
||||
"forge.capytal.company/loreddev/x/smalltrip/exception"
|
||||
"forge.capytal.company/loreddev/x/smalltrip/middleware"
|
||||
chromahtml "github.com/alecthomas/chroma/v2/formatters/html"
|
||||
links "github.com/fundipper/goldmark-links"
|
||||
"github.com/goodsign/monday"
|
||||
"github.com/yuin/goldmark"
|
||||
@@ -49,7 +50,10 @@ var md = goldmark.New(
|
||||
extension.DefinitionList,
|
||||
extension.Typographer,
|
||||
highlighting.NewHighlighting(
|
||||
highlighting.WithStyle("catppuccin-mocha"),
|
||||
highlighting.WithStyle("monokai"),
|
||||
highlighting.WithFormatOptions(
|
||||
chromahtml.WithLineNumbers(true),
|
||||
),
|
||||
),
|
||||
meta.New(meta.WithStoresInDocument()),
|
||||
&anchor.Extender{},
|
||||
|
||||
6
go.mod
6
go.mod
@@ -4,6 +4,7 @@ go 1.24.1
|
||||
|
||||
require (
|
||||
forge.capytal.company/loreddev/x v0.0.0-20250311222825-ceda7536f16e
|
||||
github.com/alecthomas/chroma/v2 v2.2.0
|
||||
github.com/fundipper/goldmark-links v0.1.0
|
||||
github.com/goodsign/monday v1.0.2
|
||||
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
|
||||
@@ -11,10 +12,7 @@ require (
|
||||
go.abhg.dev/goldmark/anchor v0.2.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/alecthomas/chroma/v2 v2.2.0 // indirect
|
||||
github.com/dlclark/regexp2 v1.7.0 // indirect
|
||||
)
|
||||
require github.com/dlclark/regexp2 v1.7.0 // indirect
|
||||
|
||||
require (
|
||||
forge.capytal.company/loreddev/blogo v0.0.0-20250214135432-71f20192d450
|
||||
|
||||
Reference in New Issue
Block a user