diff options
-rw-r--r-- | go.mod | 14 | ||||
-rw-r--r-- | post/post.go | 2 |
2 files changed, 15 insertions, 1 deletions
@@ -0,0 +1,14 @@ +module adammathes.com/snkt + +go 1.12 + +require ( + github.com/fsnotify/fsnotify v1.4.7 + github.com/microcosm-cc/bluemonday v1.0.2 + github.com/ogier/pflag v0.0.1 + github.com/russross/blackfriday v2.0.0+incompatible + github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect + golang.org/x/sys v0.0.0-20190609082536-301114b31cce // indirect + gopkg.in/yaml.v2 v2.2.2 +) diff --git a/post/post.go b/post/post.go index 5860eee..b3eee51 100644 --- a/post/post.go +++ b/post/post.go @@ -373,7 +373,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 } |