aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-07-21 17:55:25 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-07-21 17:55:25 +0200
commit64d9bcc4e567a0f816a0388bf740baa4c01d2323 (patch)
tree24d437e5fb259bc7697fbc2fba68a0146305b1e0
parent239e2cc806be7f0aa24624bf91891223ff469f5f (diff)
downloadcerrado-64d9bcc4e567a0f816a0388bf740baa4c01d2323.tar.gz
cerrado-64d9bcc4e567a0f816a0388bf740baa4c01d2323.tar.bz2
cerrado-64d9bcc4e567a0f816a0388bf740baa4c01d2323.zip
feat: Add anchor to line number
-rw-r--r--pkg/handler/git/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index 9549f0e..2ddc5f1 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -283,6 +283,7 @@ func (g *GitHandler) Blob(w http.ResponseWriter, r *http.Request) error {
style := styles.Get("xcode")
formatter := html.New(
html.WithLineNumbers(true),
+ html.WithLinkableLineNumbers(true, "L"),
)
iterator, err := lexer.Tokenise(nil, string(file))