bfchroma turned out to be a hassle
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/aya/trunk@68 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/eknkc/amber"
|
||||
"github.com/yosssi/gcss"
|
||||
"github.com/Depado/bfchroma/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -187,7 +186,7 @@ func buildMarkdown(path string, w io.Writer, vars Vars) error {
|
||||
return err
|
||||
}
|
||||
v["content"] = string(blackfriday.Run([]byte(content),
|
||||
blackfriday.WithExtensions(blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs),blackfriday.WithRenderer(bfchroma.NewRenderer()),
|
||||
blackfriday.WithExtensions(blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs),
|
||||
))
|
||||
if w == nil {
|
||||
out, err := os.Create(filepath.Join(PUBDIR, renameExt(path, "", ".html")))
|
||||
|
||||
Reference in New Issue
Block a user