From 02dfd9ee72a046cb9ee295bff62a5e739e21625e Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 9 Jun 2019 09:53:23 -0700 Subject: upgrade to blackfriday v2 dependency --- go.mod | 3 ++- models/item/item.go | 2 +- 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 { -- cgit v1.2.3