mirror of
https://git.mills.io/prologic/zs
synced 2024-11-28 08:16:10 +03:00
Add Markdown extensions to blackfriday
This commit is contained in:
parent
054f525327
commit
40012efba4
5
main.go
5
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user