From 7772cec376efaea096375789dfa193fa6086255a Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 9 Jun 2019 09:50:01 -0700 Subject: go.mod support, upgrade to use v2 blackfriday --- go.mod | 14 ++++++++++++++ post/post.go | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d464523 --- /dev/null +++ b/go.mod @@ -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 } -- cgit v1.2.3