From cc410a71b58de1fa0e508a092b7c1d8ba6d3d3ab Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 15 Feb 2013 22:56:53 -0800 Subject: Allow `&` in emails (for entities). Added tests for entities in titles and links. Closes #723. --- tests/markdown-reader-more.native | 7 ++++++- tests/markdown-reader-more.txt | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index 69b29992c..84d3a71e2 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -124,4 +124,9 @@ [[] ,[]] [[[] - ,[]]]] + ,[]]] +,Header 2 ("entities-in-links-and-titles",[],[]) [Str "Entities",Space,Str "in",Space,Str "links",Space,Str "and",Space,Str "titles"] +,Para [Link [Str "link"] ("/\252rl","\246\246!")] +,Para [Link [Str "http://g\246\246gle.com"] ("http://g\246\246gle.com","")] +,Para [Link [Str "me@ex\228mple.com"] ("mailto:me@ex\228mple.com","")] +,Para [Link [Str "foobar"] ("/\252rl","\246\246!")]] diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt index e471100d2..b0a4ff6e8 100644 --- a/tests/markdown-reader-more.txt +++ b/tests/markdown-reader-more.txt @@ -208,3 +208,14 @@ Empty cells | | | +---+---+ +## Entities in links and titles + +[link](/ürl "öö!") + + + + + +[foobar] + +[foobar]: /ürl "öö!" -- cgit v1.2.3