From a2e6dd0ec7990b24f11e971462f9cdf1f5dc9fef Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 28 May 2024 16:42:08 +0200 Subject: Add support for pandoc-style fences :::{#foo .bar} text ::: becomes
text --- internal/builder/posts.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/builder') diff --git a/internal/builder/posts.go b/internal/builder/posts.go index cfe4e6f..deae3e8 100644 --- a/internal/builder/posts.go +++ b/internal/builder/posts.go @@ -13,6 +13,7 @@ import ( "github.com/adrg/frontmatter" mapset "github.com/deckarep/golang-set/v2" "github.com/pkg/errors" + fences "github.com/stefanfritsch/goldmark-fences" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" htmlrenderer "github.com/yuin/goldmark/renderer/html" @@ -46,6 +47,7 @@ var markdown = goldmark.New( extension.GFM, extension.Footnote, extension.Typographer, + &fences.Extender{}, ), ) -- cgit 1.4.1