From 4913766d58cd1fe204b27dc93172c5dd4a95a88a Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 6 Dec 2020 19:38:32 +0100 Subject: [PATCH] Parse fencedcode in ParseMarkdown. Fixes #1127 (#1329) --- bridge/helper/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 2b449e14..cbb319ac 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -183,7 +183,7 @@ func ClipMessage(text string, length int) string { // ParseMarkdown takes in an input string as markdown and parses it to html func ParseMarkdown(input string) string { - extensions := parser.HardLineBreak | parser.NoIntraEmphasis + extensions := parser.HardLineBreak | parser.NoIntraEmphasis | parser.FencedCode markdownParser := parser.NewWithExtensions(extensions) renderer := html.NewRenderer(html.RendererOptions{ Flags: 0,