mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
+2
-2
@@ -6,9 +6,9 @@ import (
|
||||
"context"
|
||||
"html/template"
|
||||
|
||||
"github.com/alecthomas/chroma/lexers"
|
||||
"github.com/alecthomas/chroma/styles"
|
||||
htmlfmt "github.com/alecthomas/chroma/v2/formatters/html"
|
||||
"github.com/alecthomas/chroma/v2/lexers"
|
||||
"github.com/alecthomas/chroma/v2/styles"
|
||||
"github.com/carlmjohnson/requests"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ func Serve() {
|
||||
engine := html.New("./views", ".html")
|
||||
|
||||
engine.AddFunc(
|
||||
// add unescape function
|
||||
// Add unescape function. This is needed to render HTML from Markdown.
|
||||
"unescape", func(s string) template.HTML {
|
||||
return template.HTML(s)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user