diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite.native | 1 | ||||
-rw-r--r-- | tests/testsuite.txt | 1 | ||||
-rw-r--r-- | tests/writer.docbook | 5 | ||||
-rw-r--r-- | tests/writer.html | 2 | ||||
-rw-r--r-- | tests/writer.latex | 2 | ||||
-rw-r--r-- | tests/writer.man | 2 | ||||
-rw-r--r-- | tests/writer.markdown | 1 | ||||
-rw-r--r-- | tests/writer.native | 1 | ||||
-rw-r--r-- | tests/writer.rst | 1 | ||||
-rw-r--r-- | tests/writer.rtf | 1 | ||||
-rw-r--r-- | tests/writer.texinfo | 2 |
11 files changed, 19 insertions, 0 deletions
diff --git a/tests/testsuite.native b/tests/testsuite.native index 4ecc51438..564faf0d8 100644 --- a/tests/testsuite.native +++ b/tests/testsuite.native @@ -294,6 +294,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , BulletList [ [ Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code "$e = mc^2$",Str "."] ] , [ Plain [Str "$",Str "22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money",Str ".",Space,Str "So",Space,Str "is",Space,Str "$",Str "34,000",Str ".",Space,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized",Str ".",Str ")"] ] + , [ Plain [Str "Shoes",Space,Str "(",Str "$",Str "20)",Space,Str "and",Space,Str "socks",Space,Str "(",Str "$",Str "5)",Str "."] ] , [ Plain [Str "Escaped",Space,Code "$",Str ":",Space,Str "$",Str "73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23",Str "$",Str "."] ] ] , Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"] , Para [TeX "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"] diff --git a/tests/testsuite.txt b/tests/testsuite.txt index dc5340021..d55a93a4e 100644 --- a/tests/testsuite.txt +++ b/tests/testsuite.txt @@ -482,6 +482,7 @@ These shouldn't be math: - To get the famous equation, write `$e = mc^2$`. - $22,000 is a *lot* of money. So is $34,000. (It worked if "lot" is emphasized.) +- Shoes ($20) and socks ($5). - Escaped `$`: $73 *this should be emphasized* 23\$. Here's a LaTeX table: diff --git a/tests/writer.docbook b/tests/writer.docbook index e8f963b58..424141cc9 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -904,6 +904,11 @@ These should not be escaped: \$ \\ \> \[ \{ </listitem> <listitem> <para> + Shoes ($20) and socks ($5). + </para> + </listitem> + <listitem> + <para> Escaped <literal>$</literal>: $73 <emphasis>this should be emphasized</emphasis> 23$. </para> diff --git a/tests/writer.html b/tests/writer.html index 819917c57..38eaf6a2a 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -796,6 +796,8 @@ Blah >lot</em > of money. So is $34,000. (It worked if “lot” is emphasized.)</li ><li + >Shoes ($20) and socks ($5).</li + ><li >Escaped <code >$</code >: $73 <em diff --git a/tests/writer.latex b/tests/writer.latex index 551d6adec..b4547b7db 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -591,6 +591,8 @@ These shouldn't be math: \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is emphasized.) \item + Shoes (\$20) and socks (\$5). +\item Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$. \end{itemize} Here's a LaTeX table: diff --git a/tests/writer.man b/tests/writer.man index 0e3b7608a..d1a8b8a86 100644 --- a/tests/writer.man +++ b/tests/writer.man @@ -570,6 +570,8 @@ To get the famous equation, write \f[B]$e\ =\ mc^2$\f[]\. $22,000 is a \f[I]lot\f[] of money\. So is $34,000\. (It worked if \[lq]lot\[rq] is emphasized\.) .IP \[bu] 2 +Shoes ($20) and socks ($5)\. +.IP \[bu] 2 Escaped \f[B]$\f[]: $73 \f[I]this should be emphasized\f[] 23$\. .PP Here's a LaTeX table: diff --git a/tests/writer.markdown b/tests/writer.markdown index 41a116e9a..fbe3c085f 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -507,6 +507,7 @@ These shouldn't be math: - To get the famous equation, write `$e = mc^2$`. - $22,000 is a *lot* of money. So is $34,000. (It worked if "lot" is emphasized.) +- Shoes ($20) and socks ($5). - Escaped `$`: $73 *this should be emphasized* 23$. Here's a LaTeX table: diff --git a/tests/writer.native b/tests/writer.native index 4ecc51438..564faf0d8 100644 --- a/tests/writer.native +++ b/tests/writer.native @@ -294,6 +294,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , BulletList [ [ Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code "$e = mc^2$",Str "."] ] , [ Plain [Str "$",Str "22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money",Str ".",Space,Str "So",Space,Str "is",Space,Str "$",Str "34,000",Str ".",Space,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized",Str ".",Str ")"] ] + , [ Plain [Str "Shoes",Space,Str "(",Str "$",Str "20)",Space,Str "and",Space,Str "socks",Space,Str "(",Str "$",Str "5)",Str "."] ] , [ Plain [Str "Escaped",Space,Code "$",Str ":",Space,Str "$",Str "73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23",Str "$",Str "."] ] ] , Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"] , Para [TeX "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"] diff --git a/tests/writer.rst b/tests/writer.rst index b9dbc31e0..fc921ea76 100644 --- a/tests/writer.rst +++ b/tests/writer.rst @@ -638,6 +638,7 @@ These shouldn't be math: - To get the famous equation, write ``$e = mc^2$``. - $22,000 is a *lot* of money. So is $34,000. (It worked if "lot" is emphasized.) +- Shoes ($20) and socks ($5). - Escaped ``$``: $73 *this should be emphasized* 23$. Here's a LaTeX table: diff --git a/tests/writer.rtf b/tests/writer.rtf index 367eeba2f..05dd26344 100644 --- a/tests/writer.rtf +++ b/tests/writer.rtf @@ -252,6 +252,7 @@ quoted link {\pard \ql \f0 \sa180 \li0 \fi0 These shouldn\u8217't be math:\par} {\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab To get the famous equation, write {\f1 $e = mc^2$}.\par} {\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab $22,000 is a {\i lot} of money. So is $34,000. (It worked if \u8220"lot\u8221" is emphasized.)\par} +{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Shoes ($20) and socks ($5).\par} {\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Escaped {\f1 $}: $73 {\i this should be emphasized} 23$.\sa180\par} {\pard \ql \f0 \sa180 \li0 \fi0 Here\u8217's a LaTeX table:\par} {\pard \ql \f0 \sa180 \li0 \fi0 \par} diff --git a/tests/writer.texinfo b/tests/writer.texinfo index 224aa2091..3dcb93832 100644 --- a/tests/writer.texinfo +++ b/tests/writer.texinfo @@ -736,6 +736,8 @@ To get the famous equation@comma{} write @code{$e = mc^2$}. @item $22@comma{}000 is a @emph{lot} of money. So is $34@comma{}000. (It worked if ``lot'' is emphasized.) @item +Shoes ($20) and socks ($5). +@item Escaped @code{$}: $73 @emph{this should be emphasized} 23$. @end itemize |