aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2019-06-09 09:53:23 -0700
committerAdam Mathes <adam@trenchant.org>2019-06-09 09:53:23 -0700
commit02dfd9ee72a046cb9ee295bff62a5e739e21625e (patch)
treec846956959330544daa48b4a593da30d168b87da
parent9cf78ece35e43838b8d7b496fb471122d91dab13 (diff)
downloadneko-02dfd9ee72a046cb9ee295bff62a5e739e21625e.tar.gz
neko-02dfd9ee72a046cb9ee295bff62a5e739e21625e.tar.bz2
neko-02dfd9ee72a046cb9ee295bff62a5e739e21625e.zip
upgrade to blackfriday v2 dependency
-rw-r--r--go.mod3
-rw-r--r--models/item/item.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/go.mod b/go.mod
index 88a3bcf..fc3ebf9 100644
--- a/go.mod
+++ b/go.mod
@@ -17,7 +17,8 @@ require (
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf // indirect
github.com/ogier/pflag v0.0.1
github.com/olekukonko/tablewriter v0.0.1 // indirect
- github.com/russross/blackfriday v1.5.2
+ github.com/russross/blackfriday v2.0.0+incompatible
+ github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
github.com/stretchr/testify v1.3.0 // indirect
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5
diff --git a/models/item/item.go b/models/item/item.go
index badd566..500fec9 100644
--- a/models/item/item.go
+++ b/models/item/item.go
@@ -102,7 +102,7 @@ func (i *Item) GetFullContent() {
var md, img string
md = ""
img = ""
- md = string(blackfriday.MarkdownCommon([]byte(article.CleanedText)))
+ md = string(blackfriday.Run([]byte(article.CleanedText)))
ht, err := article.TopNode.Html()
if err != nil {