Remove svg from image handler, remove line numbers from code handler
This commit is contained in:
parent
28bc560098
commit
bc268db233
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "0.84.2"
|
||||
ReleaseVersion string = "0.84.3"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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`,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue