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