Add Markdown extensions to blackfriday

このコミットが含まれているのは:
James Mills 2021-10-23 13:57:19 +10:00
コミット 40012efba4
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: AC4C014F1440EBD6
1個のファイルの変更4行の追加1行の削除

ファイルの表示

@ -182,7 +182,10 @@ func buildMarkdown(path string, w io.Writer, vars Vars) error {
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 {