From 09a084e5faa635e09228502c70a28e498ab70a42 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Wed, 27 Jul 2022 21:26:37 +0200 Subject: [PATCH] a bit more style --- embed/initial/base.html | 7 ++++++- post.go | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) 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