diff --git a/html.go b/html.go index d20aaab..319bb94 100644 --- a/html.go +++ b/html.go @@ -663,7 +663,7 @@ func isHtmlTag(tag []byte, tagname string) bool { i++ } - j := i + j := 0 for ; i < len(tag); i, j = i+1, j+1 { if j >= len(tagname) { break diff --git a/inline_test.go b/inline_test.go index adc87a6..fbc0eaa 100644 --- a/inline_test.go +++ b/inline_test.go @@ -63,6 +63,14 @@ func doTestsInlineParam(t *testing.T, tests []string, extensions, htmlFlags int) } } +func TestRawHtmlTag(t *testing.T) { + tests := []string{ + "zz \n", + "

zz p {}

\n", + } + doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE) +} + func TestEmphasis(t *testing.T) { var tests = []string{ "nothing inline\n",