mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-22 13:47:42 +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() {
|
func init() {
|
||||||
md = goldmark.New(goldmark.WithExtensions(extension.Linkify))
|
md = goldmark.New(goldmark.WithExtensions(
|
||||||
|
extension.Linkify,
|
||||||
|
extension.Table,
|
||||||
|
))
|
||||||
templates = make(map[string]*template.Template)
|
templates = make(map[string]*template.Template)
|
||||||
if !*watch {
|
if !*watch {
|
||||||
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html"} {
|
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html"} {
|
||||||
|
|
Loading…
Reference in a new issue