diff --git a/html.go b/html.go index d20aaab..9cf9b19 100644 --- a/html.go +++ b/html.go @@ -28,6 +28,7 @@ const ( HTML_SKIP_STYLE // skip embedded \n", + "
zz p {}
\n", + + "zz \n", + "zz p {}
\n", + + "\n", + "alert()
\n", + + "zz \n", + "zz alert()
\n", + + "zz \n", + "zz alert()
\n", + + " \n", + "alert()
\n", + + "\n", + "alert()
\n", + + "\n", + "\n", + + "zz \n", + "zz
\n", + + "zz \n", + "zz
\n", + } + doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE|HTML_SKIP_SCRIPT) +} + func TestEmphasis(t *testing.T) { var tests = []string{ "nothing inline\n", diff --git a/markdown.go b/markdown.go index bb2232f..f9e5bf3 100644 --- a/markdown.go +++ b/markdown.go @@ -202,7 +202,7 @@ func MarkdownBasic(input []byte) []byte { // // * Smartypants processing with smart fractions and LaTeX dashes // -// * Intra-word emphasis supression +// * Intra-word emphasis suppression // // * Tables // @@ -220,6 +220,7 @@ func MarkdownCommon(input []byte) []byte { htmlFlags |= HTML_USE_SMARTYPANTS htmlFlags |= HTML_SMARTYPANTS_FRACTIONS htmlFlags |= HTML_SMARTYPANTS_LATEX_DASHES + htmlFlags |= HTML_SKIP_SCRIPT renderer := HtmlRenderer(htmlFlags, "", "") // set up the parser