mirror of
https://github.com/rystaf/mlmym.git
synced 2024-12-30 20:27:09 +00:00
parse markdown tables. fixes #14
This commit is contained in:
parent
7c5ab065d0
commit
f0754e3b20
5
main.go
5
main.go
|
@ -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"} {
|
||||
|
|
Loading…
Reference in a new issue