summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-02-15 22:56:53 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-02-15 23:02:17 -0800
commitcc410a71b58de1fa0e508a092b7c1d8ba6d3d3ab (patch)
tree8787b90c78b7367e46a61833a4bd721e255ab73c /tests
parent59764fa3884e63ee9711cc2d0da2ef3133c641ba (diff)
Allow `&` in emails (for entities).
Added tests for entities in titles and links. Closes #723.
Diffstat (limited to 'tests')
-rw-r--r--tests/markdown-reader-more.native7
-rw-r--r--tests/markdown-reader-more.txt11
2 files changed, 17 insertions, 1 deletions
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](/&uuml;rl "&ouml;&ouml;!")
+
+<http://g&ouml;&ouml;gle.com>
+
+<me@ex&auml;mple.com>
+
+[foobar]
+
+[foobar]: /&uuml;rl "&ouml;&ouml;!"