# HG changeset patch # User prologic # Date 1634961439 0 # Node ID e054275d09380b97d19a7fc645bc3764a67b3d9e # Parent f7ad715c03ce421bfa42dc0e96abe6060f5d0f45 Add Markdown extensions to blackfriday diff -r f7ad715c03ce -r e054275d0938 main.go --- a/main.go Fri Sep 17 23:45:01 2021 +0000 +++ b/main.go Sat Oct 23 03:57:19 2021 +0000 @@ -182,7 +182,10 @@ if err != nil { return err } - v["content"] = string(blackfriday.Run([]byte(content))) + v["content"] = string(blackfriday.Run( + []byte(content), + blackfriday.WithExtensions(blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs), + )) if w == nil { out, err := os.Create(filepath.Join(PUBDIR, renameExt(path, "", ".html"))) if err != nil {