Parse fencedcode in ParseMarkdown. Fixes #1127

This commit is contained in:
Wim
2020-12-06 18:09:05 +01:00
parent 92da8c7044
commit a5c8ab7fba

View File

@@ -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,