X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/ffba73263b1fb5291390bb9b2bf313552147f922..6764c57a44362da5ce0bf142f996c45e63b0a581:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index 9334cab..2c18fa9 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -304,3 +304,20 @@ Execute (& and > are not marked as htmlError in lists): AssertEqual SyntaxOf('1.'), 'mkdListItem' AssertNotEqual SyntaxOf('&'), 'htmlError' AssertNotEqual SyntaxOf('>'), 'htmlError' + +# HTML + +Given markdown; +a + +
b
+ +- c + +Execute (HTML tag in text): + AssertEqual SyntaxOf('p'), 'htmlTagName' + AssertEqual SyntaxOf(''), 'htmlTag' + AssertEqual SyntaxOf('
'), 'htmlEndTag' + AssertEqual SyntaxOf('span'), 'htmlTagName' + AssertEqual SyntaxOf(''), 'htmlTag' + AssertEqual SyntaxOf(''), 'htmlEndTag'