From 64d9bcc4e567a0f816a0388bf740baa4c01d2323 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 21 Jul 2024 17:55:25 +0200 Subject: feat: Add anchor to line number --- pkg/handler/git/handler.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/handler/git/handler.go') 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)) -- cgit v1.2.3