diff options
-rw-r--r-- | go.mod | 3 | ||||
-rw-r--r-- | models/item/item.go | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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 { |