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 (
|
const (
|
||||||
ReleaseVersion string = "0.84.2"
|
ReleaseVersion string = "0.84.3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -25,11 +25,8 @@ func (t Format) Css() string {
|
||||||
var css strings.Builder
|
var css strings.Builder
|
||||||
|
|
||||||
formatter := html.New(
|
formatter := html.New(
|
||||||
html.LineNumbersInTable(true),
|
|
||||||
html.TabWidth(4),
|
html.TabWidth(4),
|
||||||
html.WithClasses(true),
|
html.WithClasses(true),
|
||||||
html.WithLineNumbers(true),
|
|
||||||
html.WithLinkableLineNumbers(true, ""),
|
|
||||||
html.WrapLongLines(true))
|
html.WrapLongLines(true))
|
||||||
|
|
||||||
style := styles.Get("solarized-dark256")
|
style := styles.Get("solarized-dark256")
|
||||||
|
@ -92,11 +89,8 @@ func (t Format) Body(rootUrl, fileUri, filePath, fileName, prefix, mime string)
|
||||||
}
|
}
|
||||||
|
|
||||||
formatter := html.New(
|
formatter := html.New(
|
||||||
html.LineNumbersInTable(true),
|
|
||||||
html.TabWidth(4),
|
html.TabWidth(4),
|
||||||
html.WithClasses(true),
|
html.WithClasses(true),
|
||||||
html.WithLineNumbers(true),
|
|
||||||
html.WithLinkableLineNumbers(true, ""),
|
|
||||||
html.WrapLongLines(true))
|
html.WrapLongLines(true))
|
||||||
|
|
||||||
iterator, err := lexer.Tokenise(nil, contentString)
|
iterator, err := lexer.Tokenise(nil, contentString)
|
||||||
|
|
|
@ -76,7 +76,6 @@ func (t Format) Extensions() map[string]string {
|
||||||
`.pjp`: `image/jpeg`,
|
`.pjp`: `image/jpeg`,
|
||||||
`.pjpeg`: `image/jpeg`,
|
`.pjpeg`: `image/jpeg`,
|
||||||
`.png`: `image/png`,
|
`.png`: `image/png`,
|
||||||
`.svg`: `image/svg+xml`,
|
|
||||||
`.webp`: `image/webp`,
|
`.webp`: `image/webp`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue