X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/94f85d78fd274a69694de26836b2fd0e7806e240..7cb6bd72ae0d906395e41e75b193407c76ac3dd5:/test/syntax.vader?ds=sidebyside diff --git a/test/syntax.vader b/test/syntax.vader index b08a9a0..0540155 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -413,6 +413,21 @@ Execute (link text with newline): AssertEqual SyntaxOf('b'), 'mkdLink' AssertEqual SyntaxOf('c'), 'mkdURL' +Given markdown; +[a] b [c](d) + +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)