Remove svg from image handler, remove line numbers from code handler

This commit is contained in:
Seednode 2023-09-14 21:09:19 -05:00
parent 28bc560098
commit bc268db233
3 changed files with 1 additions and 8 deletions

View File

@ -11,7 +11,7 @@ import (
)
const (
ReleaseVersion string = "0.84.2"
ReleaseVersion string = "0.84.3"
)
var (

View File

@ -25,11 +25,8 @@ func (t Format) Css() string {
var css strings.Builder
formatter := html.New(
html.LineNumbersInTable(true),
html.TabWidth(4),
html.WithClasses(true),
html.WithLineNumbers(true),
html.WithLinkableLineNumbers(true, ""),
html.WrapLongLines(true))
style := styles.Get("solarized-dark256")
@ -92,11 +89,8 @@ func (t Format) Body(rootUrl, fileUri, filePath, fileName, prefix, mime string)
}
formatter := html.New(
html.LineNumbersInTable(true),
html.TabWidth(4),
html.WithClasses(true),
html.WithLineNumbers(true),
html.WithLinkableLineNumbers(true, ""),
html.WrapLongLines(true))
iterator, err := lexer.Tokenise(nil, contentString)

View File

@ -76,7 +76,6 @@ func (t Format) Extensions() map[string]string {
`.pjp`: `image/jpeg`,
`.pjpeg`: `image/jpeg`,
`.png`: `image/png`,
`.svg`: `image/svg+xml`,
`.webp`: `image/webp`,
}
}