parse markdown tables. fixes #14

This commit is contained in:
Ryan Stafford 2023-07-06 12:12:47 -04:00
parent 7c5ab065d0
commit f0754e3b20

View file

@ -48,7 +48,10 @@ func NewAddHeaderTransport(remoteAddr string) *AddHeaderTransport {
}
func init() {
md = goldmark.New(goldmark.WithExtensions(extension.Linkify))
md = goldmark.New(goldmark.WithExtensions(
extension.Linkify,
extension.Table,
))
templates = make(map[string]*template.Template)
if !*watch {
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html"} {