diff --git a/embed/initial/base.html b/embed/initial/base.html index 4afaa2b..2343827 100644 --- a/embed/initial/base.html +++ b/embed/initial/base.html @@ -10,7 +10,12 @@ - {{ .Content }} + +
+ {{ .Content }} +
+ \ No newline at end of file diff --git a/post.go b/post.go index f1dc535..b457b42 100644 --- a/post.go +++ b/post.go @@ -7,6 +7,7 @@ import ( "github.com/yuin/goldmark" meta "github.com/yuin/goldmark-meta" + "github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/parser" ) @@ -43,6 +44,7 @@ func (post Post) MarkdownData() (bytes.Buffer, map[string]interface{}) { markdown := goldmark.New( goldmark.WithExtensions( meta.Meta, + extension.GFM, ), ) var buf bytes.Buffer