feat: Add anchor to line number
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index 9549f0e414d81baa03f6c1e385ea5c872c0e31f5..2ddc5f17b701a67542417653429da090f58e7b6a 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -283,6 +283,7 @@ lexer := GetLexers(filename) style := styles.Get("xcode") formatter := html.New( html.WithLineNumbers(true), + html.WithLinkableLineNumbers(true, "L"), ) iterator, err := lexer.Tokenise(nil, string(file))