From ca246fa02c7dcec755d8cf64669c23f84f2b5a0a Mon Sep 17 00:00:00 2001 From: Timur Makarchuk Date: Sun, 15 Oct 2017 15:04:42 +0500 Subject: [PATCH] Losen HTML checks so unclosed tags won't hide the insides --- pkg/markup/markdown.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/markup/markdown.go b/pkg/markup/markdown.go index 55e40dc37..d8477baa9 100644 --- a/pkg/markup/markdown.go +++ b/pkg/markup/markdown.go @@ -119,6 +119,7 @@ func (options *MarkdownRenderer) ListItem(out *bytes.Buffer, text []byte, flags // RawMarkdown renders content in Markdown syntax to HTML without handling special links. func RawMarkdown(body []byte, urlPrefix string) []byte { htmlFlags := 0 + htmlFlags |= blackfriday.HTML_SKIP_HTML htmlFlags |= blackfriday.HTML_SKIP_STYLE htmlFlags |= blackfriday.HTML_OMIT_CONTENTS @@ -145,6 +146,7 @@ func RawMarkdown(body []byte, urlPrefix string) []byte { // set up the parser extensions := 0 + extensions |= blackfriday.EXTENSION_LAX_HTML_BLOCKS extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS extensions |= blackfriday.EXTENSION_TABLES extensions |= blackfriday.EXTENSION_FENCED_CODE