Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 3e3d414669f86704328679c1a195b4f7a8acce72 Author: Wim <wim@42.be> Date: Sun Dec 06 19:38:32 2020 +0000 Parse fencedcode in ParseMarkdown. Fixes #1127 (#1329) diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 2b449e1..cbb319a 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -1837 +1837 @@ 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,