From 233148f9638f637871391cbed239068aeddb6cca Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 6 Jan 2007 20:47:00 +0000 Subject: Fixed bug in Markdown reader's handling of underscores and other inline formatting markers inside reference labels: for example, in '[A_B]: /url/a_b', the material between underscores was being parsed as emphasized inlines. git-svn-id: https://pandoc.googlecode.com/svn/trunk@442 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/testsuite.native | 1 + tests/testsuite.txt | 2 ++ tests/writer.docbook | 3 +++ tests/writer.html | 3 +++ tests/writer.latex | 2 ++ tests/writer.markdown | 2 ++ tests/writer.native | 1 + tests/writer.rst | 3 +++ tests/writer.rtf | 4 ++++ 9 files changed, 21 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.native b/tests/testsuite.native index cb60c1922..44c133311 100644 --- a/tests/testsuite.native +++ b/tests/testsuite.native @@ -270,6 +270,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , Para [Link [Str "URL",Space,Str "and",Space,Str "title"] (Src "/url/" "title preceded by a tab"),Str "."] , Para [Link [Str "URL",Space,Str "and",Space,Str "title"] (Src "/url/" "title with "quotes" in it")] , Para [Link [Str "URL",Space,Str "and",Space,Str "title"] (Src "/url/" "title with single quotes")] +, Para [Link [Str "with",Str "_",Str "underscore"] (Src "/url/with_underscore" "")] , Para [Link [Str "Email",Space,Str "link"] (Src "mailto:nobody@nowhere.net" "")] , Para [Link [Str "Empty"] (Src "" ""),Str "."] , Header 2 [Str "Reference"] diff --git a/tests/testsuite.txt b/tests/testsuite.txt index f8bf68526..e65e98193 100644 --- a/tests/testsuite.txt +++ b/tests/testsuite.txt @@ -502,6 +502,8 @@ Just a [URL](/url/). [URL and title](/url/ 'title with single quotes') +[with_underscore](/url/with_underscore) + [Email link](mailto:nobody@nowhere.net) [Empty](). diff --git a/tests/writer.docbook b/tests/writer.docbook index c6c99f9bf..616273ea2 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -815,6 +815,9 @@ Cat & 1 \\ \hline URL and title + + with_underscore + nobody@nowhere.net diff --git a/tests/writer.html b/tests/writer.html index a14ef60d7..2428d0a12 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -647,6 +647,9 @@ Cat & 1 \\ \hline

URL and title

+

+ with_underscore +