X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2a39beda7de618cd5043f9defbfcd74de0fbc9eb..13c836661996b9c03bbcaf6b56a49d3925ffe925:/test/syntax.vader?ds=inline diff --git a/test/syntax.vader b/test/syntax.vader index 284e60f..0adae58 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -416,12 +416,18 @@ Execute (link text with newline): Given markdown; [a] b [c](d) -Execute (link text with newline): +Execute (link text with bracket sections): AssertNotEqual SyntaxOf('a'), 'mkdLink' AssertNotEqual SyntaxOf('b'), 'mkdLink' AssertEqual SyntaxOf('c'), 'mkdLink' AssertEqual SyntaxOf('d'), 'mkdURL' +Given markdown; +[^a]: b + +Execute (footnote is not link): + AssertNotEqual SyntaxOf('a'), 'mkdLinkDef' + Given markdown; (a) @@ -623,6 +629,14 @@ Execute (link in blockquote): AssertEqual SyntaxOf('a'), 'mkdLink' AssertEqual SyntaxOf('foo'), 'mkdInlineURL' +Given markdown; +[https://domain.tld](https://domain.com) not_a_link + +Execute (link with url title): + AssertEqual SyntaxOf('https://domain.tld'), 'mkdInlineURL' + AssertEqual SyntaxOf('https://domain.com'), 'mkdInlineURL' + AssertNotEqual SyntaxOf('not_a_link'), 'mkdInlineURL' + # Code Blocks Given markdown;