X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/827e3c42610e36cd78d54ba448438656588543ab..48bf7d82c6e171fe09cfd87647271bf9247b8f0c:/test/syntax.vader?ds=sidebyside diff --git a/test/syntax.vader b/test/syntax.vader index 7096ad7..0adae58 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -422,6 +422,12 @@ Execute (link text with bracket sections): 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;