diff options
author | Adam Mathes <adam@trenchant.org> | 2019-06-09 09:50:01 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2019-06-09 09:50:01 -0700 |
commit | 7772cec376efaea096375789dfa193fa6086255a (patch) | |
tree | 299feda74dbd5e89c72ee05896cb8d7f4fdc4013 | |
parent | 97e935a1947291d6b422877906dbb75e22b05e2d (diff) | |
download | snkt-7772cec376efaea096375789dfa193fa6086255a.tar.gz snkt-7772cec376efaea096375789dfa193fa6086255a.tar.bz2 snkt-7772cec376efaea096375789dfa193fa6086255a.zip |
go.mod support, upgrade to use v2 blackfriday
-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 } |