Changeset 52 in code


Ignore:
Timestamp:
Oct 23, 2021, 3:57:19 AM (4 years ago)
Author:
prologic
Message:

Add Markdown extensions to blackfriday

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/main.go

    r48 r52  
    183183                return err
    184184        }
    185         v["content"] = string(blackfriday.Run([]byte(content)))
     185        v["content"] = string(blackfriday.Run(
     186                []byte(content),
     187                blackfriday.WithExtensions(blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs),
     188        ))
    186189        if w == nil {
    187190                out, err := os.Create(filepath.Join(PUBDIR, renameExt(path, "", ".html")))
Note: See TracChangeset for help on using the changeset viewer.