aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--go.mod22
-rw-r--r--post/post.go3
2 files changed, 24 insertions, 1 deletions
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..2bafb97
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,22 @@
+module adammathes.com/snkt
+
+go 1.21
+
+toolchain go1.22.1
+
+require (
+ github.com/fsnotify/fsnotify v1.4.7
+ github.com/microcosm-cc/bluemonday v1.0.26
+ github.com/ogier/pflag v0.0.1
+ github.com/russross/blackfriday v2.0.0+incompatible
+ github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
+ gopkg.in/yaml.v2 v2.2.2
+)
+
+require (
+ github.com/aymerick/douceur v0.2.0 // indirect
+ github.com/gorilla/css v1.0.0 // indirect
+ github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
+ golang.org/x/net v0.17.0 // indirect
+ golang.org/x/sys v0.13.0 // indirect
+)
diff --git a/post/post.go b/post/post.go
index 5860eee..a09ced1 100644
--- a/post/post.go
+++ b/post/post.go
@@ -12,6 +12,7 @@ import (
"github.com/microcosm-cc/bluemonday"
"github.com/russross/blackfriday"
"github.com/rwcarlsen/goexif/exif"
+ // "gopkg.in/russross/blackfriday.v2"
"io/ioutil"
"log"
"os"
@@ -373,7 +374,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
}