Add Markdown extensions to blackfriday
このコミットが含まれているのは:
コミット
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 {
|
||||
|
|
読み込み中…
新しいイシューから参照