summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-12-06 19:38:32 +0100
committerGitHub <noreply@github.com>2020-12-06 19:38:32 +0100
commit4913766d58cd1fe204b27dc93172c5dd4a95a88a (patch)
tree1441877233e38c5570bd9296aacc50b2fe120dcd /bridge
parent92da8c7044e0e07ec988a79d9d992437e0cadda3 (diff)
downloadmatterbridge-msglm-4913766d58cd1fe204b27dc93172c5dd4a95a88a.tar.gz
matterbridge-msglm-4913766d58cd1fe204b27dc93172c5dd4a95a88a.tar.bz2
matterbridge-msglm-4913766d58cd1fe204b27dc93172c5dd4a95a88a.zip
Parse fencedcode in ParseMarkdown. Fixes #1127 (#1329)
Diffstat (limited to 'bridge')
-rw-r--r--bridge/helper/helper.go2
1 files changed, 1 insertions, 1 deletions
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,