From f416b35dba4505f85dca9cafb984ab7d89e57f96 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Thu, 21 Dec 2017 21:55:04 +0900 Subject: [PATCH] Add a test for link title highlighting #343 --- test/syntax.vader | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/syntax.vader b/test/syntax.vader index 0540155..0adae58 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -629,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; -- 2.39.2