diff --git a/util/markdown.go b/util/markdown.go index 836cdb82..dbe882e7 100644 --- a/util/markdown.go +++ b/util/markdown.go @@ -37,7 +37,7 @@ var HtmlMdRenderer md.Renderer // MarkdownToHTML : convert markdown to html // TODO: restrict certain types of markdown func MarkdownToHTML(markdown string) template.HTML { - if len(markdown) >= 3 && markdown[:4] == ">" { + if len(markdown) >= 4 && markdown[:4] == ">" { markdown = ">" + markdown[4:] } markdown = strings.Replace(markdown, "\n>", "\n>", -1)