X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/199bfeab2aed677af025283e4e2c0b8784cfa5dd..6764c57a44362da5ce0bf142f996c45e63b0a581:/test/syntax.vader?ds=sidebyside diff --git a/test/syntax.vader b/test/syntax.vader index f3bbf63..2c18fa9 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -292,3 +292,32 @@ ddd Execute (header title starts with #): AssertEqual SyntaxOf('a'), 'htmlH1' AssertEqual SyntaxOf('b'), 'htmlH2' + +# List + +Given markdown; +- a & b +1. c > d + +Execute (& and > are not marked as htmlError in lists): + AssertEqual SyntaxOf('-'), 'mkdListItem' + 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'