diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-06 20:47:00 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-06 20:47:00 +0000 |
commit | 233148f9638f637871391cbed239068aeddb6cca (patch) | |
tree | bda8ced5e165d64c9c69e361718c13282514bf94 /tests | |
parent | 58dcef062556067b753892c8020d7f8c4e0bed0c (diff) | |
download | pandoc-233148f9638f637871391cbed239068aeddb6cca.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite.native | 1 | ||||
-rw-r--r-- | tests/testsuite.txt | 2 | ||||
-rw-r--r-- | tests/writer.docbook | 3 | ||||
-rw-r--r-- | tests/writer.html | 3 | ||||
-rw-r--r-- | tests/writer.latex | 2 | ||||
-rw-r--r-- | tests/writer.markdown | 2 | ||||
-rw-r--r-- | tests/writer.native | 1 | ||||
-rw-r--r-- | tests/writer.rst | 3 | ||||
-rw-r--r-- | tests/writer.rtf | 4 |
9 files changed, 21 insertions, 0 deletions
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 @@ -816,6 +816,9 @@ Cat & 1 \\ \hline <ulink url="/url/">URL and title</ulink> </para> <para> + <ulink url="/url/with_underscore">with_underscore</ulink> + </para> + <para> <email>nobody@nowhere.net</email> </para> <para> diff --git a/tests/writer.html b/tests/writer.html index a14ef60d7..2428d0a12 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -648,6 +648,9 @@ Cat & 1 \\ \hline <a href="/url/" title="title with single quotes">URL and title</a> </p> <p> + <a href="/url/with_underscore">with_underscore</a> +</p> +<p> <script type="text/javascript"> <!-- h='nowhere.net';a='@';n='nobody';e=n+a+h; diff --git a/tests/writer.latex b/tests/writer.latex index 12d673059..021a0a29c 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -492,6 +492,8 @@ Just a \href{/url/}{URL}. \href{/url/}{URL and title} +\href{/url/with_underscore}{with\_underscore} + \href{mailto:nobody@nowhere.net}{Email link} \href{}{Empty}. diff --git a/tests/writer.markdown b/tests/writer.markdown index 7d4d68f22..42bab4664 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -514,6 +514,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.native b/tests/writer.native index cb60c1922..44c133311 100644 --- a/tests/writer.native +++ b/tests/writer.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/writer.rst b/tests/writer.rst index e3eb59612..e276ac647 100644 --- a/tests/writer.rst +++ b/tests/writer.rst @@ -616,6 +616,8 @@ Just a `URL`_. `URL and title`_ +`with\_underscore`_ + `Email link`_ `Empty`_. @@ -739,6 +741,7 @@ indented. .. _quoted link: http://example.com/?foo=1&bar=2 .. _URL: /url/ .. _URL and title: /url/ +.. _with\_underscore: /url/with_underscore .. _Email link: mailto:nobody@nowhere.net .. _Empty: .. _bar: /url/ diff --git a/tests/writer.rtf b/tests/writer.rtf index 8d24e927c..de2cb723e 100644 --- a/tests/writer.rtf +++ b/tests/writer.rtf @@ -271,6 +271,10 @@ URL and title URL and title }}} \par} +{\pard \f0 \sa180 \li0 \fi0 {\field{\*\fldinst{HYPERLINK "/url/with_underscore"}}{\fldrslt{\ul +with_underscore +}}} +\par} {\pard \f0 \sa180 \li0 \fi0 {\field{\*\fldinst{HYPERLINK "mailto:nobody@nowhere.net"}}{\fldrslt{\ul Email link }}} |