Merge pull request #183 from hochhaus/master

Use canonical blackfriday v2 import path
This commit is contained in:
Yusuke Inuzuka 2021-01-29 16:52:55 +09:00 committed by GitHub
commit c4b3054802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ import (
"github.com/yuin/goldmark/util"
"gitlab.com/golang-commonmark/markdown"
bf2 "gopkg.in/russross/blackfriday.v2"
"github.com/russross/blackfriday/v2"
"github.com/88250/lute"
)
@ -19,7 +19,7 @@ import (
func BenchmarkMarkdown(b *testing.B) {
b.Run("Blackfriday-v2", func(b *testing.B) {
r := func(src []byte) ([]byte, error) {
out := bf2.Run(src)
out := blackfriday.Run(src)
return out, nil
}
doBenchmark(b, r)