diff options
-rw-r--r-- | go.mod | 22 | ||||
-rw-r--r-- | post/post.go | 3 | ||||
-rw-r--r-- | render/render.go | 1 |
3 files changed, 25 insertions, 1 deletions
@@ -0,0 +1,22 @@ +module adammathes.com/snkt + +go 1.21 + +toolchain go1.22.1 + +require ( + github.com/fsnotify/fsnotify v1.4.7 + github.com/microcosm-cc/bluemonday v1.0.26 + github.com/ogier/pflag v0.0.1 + github.com/russross/blackfriday v2.0.0+incompatible + github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd + gopkg.in/yaml.v2 v2.2.2 +) + +require ( + github.com/aymerick/douceur v0.2.0 // indirect + github.com/gorilla/css v1.0.0 // indirect + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sys v0.13.0 // indirect +) diff --git a/post/post.go b/post/post.go index 5860eee..a09ced1 100644 --- a/post/post.go +++ b/post/post.go @@ -12,6 +12,7 @@ import ( "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday" "github.com/rwcarlsen/goexif/exif" + // "gopkg.in/russross/blackfriday.v2" "io/ioutil" "log" "os" @@ -373,7 +374,7 @@ Filter runs the text through filters defined by render.Filter and markdown, retu */ func (p *Post) Filter(txt []byte) []byte { txt = render.Filter(txt) - txt = blackfriday.MarkdownCommon(txt) + txt = blackfriday.Run(txt) return txt } diff --git a/render/render.go b/render/render.go index 9698ad8..b8892b1 100644 --- a/render/render.go +++ b/render/render.go @@ -80,6 +80,7 @@ func Init() { // running the file system watcher so we silently // ignore any templates that disappeared since we started // since this is usually not a real error condition + log.Println(err) delete(templates, tf) } } |