From db3d4113a2c3ef8f36329f08afa02828df79ec75 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 13 Mar 2013 19:18:20 -0700
Subject: Markdown reader:  don't lose parentheses in URLs.

Added tests.  This fixes a regression from 1.10.x.  Closes #786.
---
 tests/markdown-reader-more.native |  6 +++++-
 tests/markdown-reader-more.txt    | 10 ++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

(limited to 'tests')

diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native
index 612358522..021935004 100644
--- a/tests/markdown-reader-more.native
+++ b/tests/markdown-reader-more.native
@@ -130,4 +130,8 @@
 ,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!")]]
+,Para [Link [Str "foobar"] ("/\252rl","\246\246!")]
+,Header 2 ("parentheses-in-urls",[],[]) [Str "Parentheses",Space,Str "in",Space,Str "URLs"]
+,Para [Link [Str "link"] ("/hi(there)","")]
+,Para [Link [Str "link"] ("/hithere)","")]
+,Para [Link [Str "linky"] ("hi_(there_(nested))","")]]
diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt
index cf5e930e1..2e0e66332 100644
--- a/tests/markdown-reader-more.txt
+++ b/tests/markdown-reader-more.txt
@@ -221,3 +221,13 @@ Empty cells
 [foobar]
 
 [foobar]: /&uuml;rl "&ouml;&ouml;!"
+
+## Parentheses in URLs
+
+[link](/hi(there))
+
+[link](/hithere\))
+
+[linky]
+
+[linky]: hi_(there_(nested))
-- 
cgit v1.2.3