diff --git a/tests/testsuite.native b/tests/testsuite.native index 9df680dcf..3fc3cbfd7 100644 --- a/tests/testsuite.native +++ b/tests/testsuite.native @@ -247,6 +247,10 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em",Str "."]]] , Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word",Str "."] , Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ">",Str ",",Space,Code "$",Str ",",Space,Code "\\",Str ",",Space,Code "\\$",Str ",",Space,Code "",Str "."] +, Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]] +, Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello",Str " ",Str "there"],Str "."] +, Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many",Str " ",Str "of",Str " ",Str "them"],Str "O",Str "."] +, Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a",Str "^",Str "b",Space,Str "c",Str "^",Str "d,",Space,Str "a",Str "~",Str "b",Space,Str "c",Str "~",Str "d",Str "."] , HorizontalRule , Header 1 [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"] , Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider",Str ".",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name",Str "."]] diff --git a/tests/testsuite.txt b/tests/testsuite.txt index cbe46cf70..af823ff57 100644 --- a/tests/testsuite.txt +++ b/tests/testsuite.txt @@ -424,6 +424,15 @@ So is ___this___ word. This is code: `>`, `$`, `\`, `\$`, ``. +~~This is *strikeout*.~~ + +Superscripts: a^bc^d a^*hello*^ a^hello\ there^. + +Subscripts: H~2~O, H~23~O, H~many\ of\ them~O. + +These should not be superscripts or subscripts, +because of the unescaped spaces: a^b c^d, a~b c~d. + ----- # Smart quotes, ellipses, dashes diff --git a/tests/writer.context b/tests/writer.context index cfb26cd65..d4e07fb43 100644 --- a/tests/writer.context +++ b/tests/writer.context @@ -503,6 +503,14 @@ So is {\bf {\em this}} word. This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{}. +\overstrikes{This is {\em strikeout}.} + +Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello there}. + +Subscripts: H\low{2}O, H\low{23}O, H\low{many of them}O. + +These should not be superscripts or subscripts, because of the unescaped spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b c\lettertilde{}d. + \thinrule \section{Smart quotes, ellipses, dashes} diff --git a/tests/writer.docbook b/tests/writer.docbook index e9c425197..7d5b72abd 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -725,6 +725,22 @@ These should not be escaped: \$ \\ \> \[ \{ \, \$, <html>. + + This is strikeout. + + + Superscripts: abcd + ahello + ahello there. + + + Subscripts: H2O, + H23O, Hmany of themO. + + + These should not be superscripts or subscripts, because of the + unescaped spaces: a^b c^d, a~b c~d. +
Smart quotes, ellipses, dashes diff --git a/tests/writer.html b/tests/writer.html index 10d1c0c4f..fb501fdbf 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -8,7 +8,9 @@ />

Pandoc Test Suite

, <html>.

This is strikeout.

Superscripts: abcd ahello ahello there.

Subscripts: H2O, H23O, Hmany of themO.

These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.


Smart quotes, ellipses, dashes

!, \verb!$!, \verb!\!, \verb!\$!, \verb!!. +\sout{This is \emph{strikeout}.} + +Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}. + +Subscripts: H\textsubscript{2}O, H\textsubscript{23}O, H\textsubscript{many of them}O. + +These should not be superscripts or subscripts, because of the unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b c\ensuremath{\sim}d. + \begin{center}\rule{3in}{0.4pt}\end{center} \section{Smart quotes, ellipses, dashes} diff --git a/tests/writer.man b/tests/writer.man index ae5a371f0..d314f3025 100644 --- a/tests/writer.man +++ b/tests/writer.man @@ -490,6 +490,15 @@ So is \f[B]\f[I]this\f[]\f[] word\. .PP This is code: \f[B]>\f[], \f[B]$\f[], \f[B]\\\f[], \f[B]\\$\f[], \f[B]\f[]\. +.PP +[STRIKEOUT:This is \f[I]strikeout\f[]\.] +.PP +Superscripts: a^bc^d a^\f[I]hello\f[]^ a^hello there^\. +.PP +Subscripts: H~2~O, H~23~O, H~many of them~O\. +.PP +These should not be superscripts or subscripts, because of the +unescaped spaces: a^b c^d, a~b c~d\. .PP * * * * * .SH Smart quotes, ellipses, dashes diff --git a/tests/writer.markdown b/tests/writer.markdown index 97c0ab229..e66514549 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -435,6 +435,15 @@ So is ***this*** word. This is code: `>`, `$`, `\`, `\$`, ``. +~~This is *strikeout*.~~ + +Superscripts: a^bc^d a^*hello*^ a^hello\ there^. + +Subscripts: H~2~O, H~23~O, H~many\ of\ them~O. + +These should not be superscripts or subscripts, because of the +unescaped spaces: a\^b c\^d, a\~b c\~d. + * * * * * diff --git a/tests/writer.native b/tests/writer.native index 9df680dcf..3fc3cbfd7 100644 --- a/tests/writer.native +++ b/tests/writer.native @@ -247,6 +247,10 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em",Str "."]]] , Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word",Str "."] , Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ">",Str ",",Space,Code "$",Str ",",Space,Code "\\",Str ",",Space,Code "\\$",Str ",",Space,Code "",Str "."] +, Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]] +, Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello",Str " ",Str "there"],Str "."] +, Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many",Str " ",Str "of",Str " ",Str "them"],Str "O",Str "."] +, Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a",Str "^",Str "b",Space,Str "c",Str "^",Str "d,",Space,Str "a",Str "~",Str "b",Space,Str "c",Str "~",Str "d",Str "."] , HorizontalRule , Header 1 [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"] , Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider",Str ".",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name",Str "."]] diff --git a/tests/writer.rst b/tests/writer.rst index db6332047..9d9938eaa 100644 --- a/tests/writer.rst +++ b/tests/writer.rst @@ -534,6 +534,17 @@ So is ***this*** word. This is code: ``>``, ``$``, ``\``, ``\$``, ````. +[STRIKEOUT:This is *strikeout*.] + +Superscripts: a\ :sup:`bc`\ d a\ :sup:`*hello*`\ +a\ :sup:`hello there`\ . + +Subscripts: H\ :sub:`2`\ O, H\ :sub:`23`\ O, +H\ :sub:`many of them`\ O. + +These should not be superscripts or subscripts, because of the +unescaped spaces: a^b c^d, a~b c~d. + -------------- Smart quotes, ellipses, dashes diff --git a/tests/writer.rtf b/tests/writer.rtf index 4b6f184f4..65ca0ce6c 100644 --- a/tests/writer.rtf +++ b/tests/writer.rtf @@ -211,6 +211,10 @@ emphasized link {\pard \ql \f0 \sa180 \li0 \fi0 {\b {\i This is strong and em.} } \par} {\pard \ql \f0 \sa180 \li0 \fi0 So is {\b {\i this} } word.\par} {\pard \ql \f0 \sa180 \li0 \fi0 This is code: {\f1 >} , {\f1 $} , {\f1 \\} , {\f1 \\$} , {\f1 } .\par} +{\pard \ql \f0 \sa180 \li0 \fi0 {\strike This is {\i strikeout} .} \par} +{\pard \ql \f0 \sa180 \li0 \fi0 Superscripts: a{\super bc} d a{\super {\i hello} } a{\super hello there} .\par} +{\pard \ql \f0 \sa180 \li0 \fi0 Subscripts: H{\sub 2} O, H{\sub 23} O, H{\sub many of them} O.\par} +{\pard \ql \f0 \sa180 \li0 \fi0 These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.\par} {\pard \qc \f0 \sa180 \li0 \fi0 \emdash\emdash\emdash\emdash\emdash\par} {\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 Smart quotes, ellipses, dashes\par} {\pard \ql \f0 \sa180 \li0 \fi0 \u8220"Hello,\u8221" said the spider. \u8220"\u8216'Shelob\u8217' is my name.\u8221"\par}