Brought test suite up to date.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@828 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2007-07-28 19:15:30 +00:00
parent 44b136740b
commit de72aea6b4
25 changed files with 64 additions and 41 deletions

View file

@ -314,3 +314,4 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] [] "")
, Para [Str "Caret",Space,Str "characters",Space,Str "are",Space,Str "used",Space,Str "to",Space,Str "indicate",Space,Str "that",Space,Str "the",Space,Str "blocks",Space,Str "all",Space,Str "belong",Space,Str "to",Space,Str "a",Space,Str "single",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "block",Space,Str "quotes)."]
, CodeBlock " { <code> }"
, Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "use",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "every",Space,Str "line,",Space,Str "as",Space,Str "with",Space,Str "blockquotes,",Space,Str "but",Space,Str "all",Space,Str "that",Space,Str "you",Space,Str "need",Space,Str "is",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "the",Space,Str "block",Space,Str "and",Space,Str "any",Space,Str "preceding",Space,Str "blank",Space,Str "lines."] ]

View file

@ -180,3 +180,4 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, Para [Str "From",Space,Str "\"Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune\"",Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902)",Str ":"]
, Plain [Image [Str "image"] ("lalune.jpg","")]
, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."] ]

View file

@ -787,3 +787,4 @@ window.onresize = function(){setTimeout('fontScale()', 50);}</script>
</body
></html
>

View file

@ -1699,3 +1699,4 @@ window.onresize = function(){setTimeout('fontScale()', 50);}</script>
</body
></html
>

View file

@ -12,4 +12,4 @@
><li
>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</li
></ul
>
>

View file

@ -33,3 +33,4 @@ STUFF INSERTED
</body
></html
>

View file

@ -133,3 +133,4 @@ Multiline table without caption:
\HL
\stoptable

View file

@ -284,3 +284,4 @@
</td>
</tr>
</informaltable>

View file

@ -204,4 +204,4 @@
>Here's another one. Note the blank line between rows.</td
></tr
></table
>
>

View file

@ -137,3 +137,4 @@ Second
\end{tabular}
\end{center}

View file

@ -202,4 +202,4 @@ T}@T{
T}@T{
Here\[aq]s another one\. Note the blank line between rows\.
T}
.TE
.TE

View file

@ -57,3 +57,4 @@ Multiline table without caption:
--------------------------------------------------------------

View file

@ -81,3 +81,4 @@ Pandoc (Meta [] [] "")
, [ Plain [Str "row"] ]
, [ Plain [Str "5",Str ".",Str "0"] ]
, [ Plain [Str "Here",Str "'",Str "s",Space,Str "another",Space,Str "one",Str ".",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows",Str "."] ] ] ] ]

View file

@ -69,3 +69,4 @@ Multiline table without caption:
+-------------+------------+--------------+----------------------------+

View file

@ -278,3 +278,4 @@
}
\intbl\row}
{\pard \ql \f0 \sa180 \li0 \fi0 \par}

View file

@ -341,10 +341,10 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
, Header 2 [Str "Autolinks"]
, Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
, Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Code "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
, BulletList
[ [ Plain [Str "In",Space,Str "a",Space,Str "list?"] ]
, [ Plain [Link [Str "http://example.com/"] ("http://example.com/","")] ]
, [ Plain [Link [Code "http://example.com/"] ("http://example.com/","")] ]
, [ Plain [Str "It",Space,Str "should",Str "."] ] ]
, Para [Str "An",Space,Str "e",Str "-",Str "mail",Space,Str "address:",Space,Link [Code "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
, BlockQuote
@ -367,3 +367,4 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
[ [ Plain [Str "And",Space,Str "in",Space,Str "list",Space,Str "items",Str ".",Note [Para [Str "In",Space,Str "list",Str "."]]] ]
]
, Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented",Str "."] ]

View file

@ -7,7 +7,7 @@
\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in,
height=middle, header=0.75in, footer=0.75in] % page layout
\setuppagenumbering[location={footer,center}] % number pages
\setupbodyfont[12pt] % 12pt font
\setupbodyfont[11pt] % 11pt font
\setupwhitespace[medium] % inter-paragraph spacing
\setuphead[section][style=\tfc]
@ -721,3 +721,4 @@ This paragraph should not be part of the note, as it is not indented.
\stoptext

View file

@ -979,7 +979,7 @@ Cat &amp; 1 \\ \hline
<ulink url="/url/with_underscore">with_underscore</ulink>
</para>
<para>
<email>nobody@nowhere.net</email>
Email link (<email>nobody@nowhere.net</email>)
</para>
<para>
<ulink url="">Empty</ulink>.
@ -1046,7 +1046,7 @@ Cat &amp; 1 \\ \hline
<title>Autolinks</title>
<para>
With an ampersand:
<ulink url="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</ulink>
<ulink url="http://example.com/?foo=1&amp;bar=2"><literal>http://example.com/?foo=1&amp;bar=2</literal></ulink>
</para>
<itemizedlist>
<listitem>
@ -1056,7 +1056,7 @@ Cat &amp; 1 \\ \hline
</listitem>
<listitem>
<para>
<ulink url="http://example.com/">http://example.com/</ulink>
<ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
</para>
</listitem>
<listitem>
@ -1071,7 +1071,7 @@ Cat &amp; 1 \\ \hline
<blockquote>
<para>
Blockquoted:
<ulink url="http://example.com/">http://example.com/</ulink>
<ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
</para>
</blockquote>
<para>
@ -1176,3 +1176,4 @@ or here: &lt;http://example.com/&gt;
</para>
</section>
</article>

View file

@ -913,14 +913,18 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>')
>Autolinks</h2
><p
>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2"
>http://example.com/?foo=1&amp;bar=2</a
><code
>http://example.com/?foo=1&amp;bar=2</code
></a
></p
><ul
><li
>In a list?</li
><li
><a href="http://example.com/"
>http://example.com/</a
><code
>http://example.com/</code
></a
></li
><li
>It should.</li
@ -930,7 +934,7 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>')
>
<!--
h='&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#110;&#x6f;&#98;&#x6f;&#100;&#x79;';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<code>'+e+'</code>'+'<\/'+'a'+'>');
// -->
</script
><noscript
@ -939,7 +943,9 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
><blockquote
><p
>Blockquoted: <a href="http://example.com/"
>http://example.com/</a
><code
>http://example.com/</code
></a
></p
></blockquote
><p
@ -1042,3 +1048,4 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
></body
></html
>

View file

@ -1,7 +1,6 @@
\documentclass{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[Q=yes,verbatimenv=yes,pverb-linebreak=no]{examplep}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
@ -413,7 +412,7 @@ So is \textbf{\emph{this}} word.
So is \textbf{\emph{this}} word.
This is code: \Q{\>}, \Q{\$}, \Q{\\}, \Q{\\\$}, \Q{\<html\>}.
This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.
\sout{This is \emph{strikeout}.}
@ -435,7 +434,7 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
`He said, ``I want to go.''\,' Were you alive in the 70's?
Here is some quoted `\Q{code}' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
Here is some quoted `\verb!code!' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
Some dashes: one---two---three---four---five.
@ -461,9 +460,9 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
These shouldn't be math:
\begin{itemize}
\item To get the famous equation, write \Q{\$e\ \=\ mc\^2\$}.
\item To get the famous equation, write \verb!$e = mc^2$!.
\item \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is emphasized.)
\item Escaped \Q{\$}: \$73 \emph{this should be emphasized} 23\$.
\item Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
\end{itemize}
Here's a LaTeX table:
@ -591,20 +590,20 @@ Here's an \href{/script?foo=1&bar=2}{inline link in pointy braces}.
\subsection{Autolinks}
With an ampersand: \href{http://example.com/?foo=1&bar=2}{http://example.com/?foo=1\&bar=2}
With an ampersand: \href{http://example.com/?foo=1&bar=2}{\texttt{http://example.com/?foo=1\&bar=2}}
\begin{itemize}
\item In a list?
\item \href{http://example.com/}{http://example.com/}
\item \href{http://example.com/}{\texttt{http://example.com/}}
\item It should.
\end{itemize}
An e-mail address: \href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
An e-mail address: \href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
\begin{quote}
Blockquoted: \href{http://example.com/}{http://example.com/}
Blockquoted: \href{http://example.com/}{\texttt{http://example.com/}}
\end{quote}
Auto-links should not occur here: \Q{\<http\:\/\/example\.com\/\>}
Auto-links should not occur here: \verb!<http://example.com/>!
\begin{verbatim}
or here: <http://example.com/>
@ -630,7 +629,7 @@ Subsequent blocks are indented to show that they belong to the footnote (as with
\begin{Verbatim}
{ <code> }
\end{Verbatim}
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \Q{\]} verbatim characters, as well as [bracketed text].}
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb!]! verbatim characters, as well as [bracketed text].}
\begin{quote}
Notes can go in quotes.\footnote{In quote.}
@ -643,3 +642,4 @@ This paragraph should not be part of the note, as it is not indented.
\end{document}

View file

@ -756,4 +756,4 @@ In quote\.
.PP
In list\.
.SH AUTHORS
John MacFarlane, Anonymous
John MacFarlane, Anonymous

View file

@ -683,3 +683,4 @@ indented.
[^5]: In list.

View file

@ -341,14 +341,14 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
, Header 2 [Str "Autolinks"]
, Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
, Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Code "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
, BulletList
[ [ Plain [Str "In",Space,Str "a",Space,Str "list?"] ]
, [ Plain [Link [Str "http://example.com/"] ("http://example.com/","")] ]
, [ Plain [Link [Code "http://example.com/"] ("http://example.com/","")] ]
, [ Plain [Str "It",Space,Str "should",Str "."] ] ]
, Para [Str "An",Space,Str "e",Str "-",Str "mail",Space,Str "address:",Space,Link [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
, Para [Str "An",Space,Str "e",Str "-",Str "mail",Space,Str "address:",Space,Link [Code "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
, BlockQuote
[ Para [Str "Blockquoted:",Space,Link [Str "http://example.com/"] ("http://example.com/","")] ]
[ Para [Str "Blockquoted:",Space,Link [Code "http://example.com/"] ("http://example.com/","")] ]
, Para [Str "Auto",Str "-",Str "links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code "<http://example.com/>"]
, CodeBlock "or here: <http://example.com/>"
@ -367,3 +367,4 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
[ [ Plain [Str "And",Space,Str "in",Space,Str "list",Space,Str "items",Str ".",Note [Para [Str "In",Space,Str "list",Str "."]]] ]
]
, Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented",Str "."] ]

View file

@ -727,17 +727,15 @@ Here's an `inline link in pointy braces </script?foo=1&bar=2>`_.
Autolinks
---------
With an ampersand:
`http://example.com/?foo=1&bar=2 <http://example.com/?foo=1&bar=2>`_
With an ampersand: http://example.com/?foo=1&bar=2
- In a list?
- `http://example.com/ <http://example.com/>`_
- http://example.com/
- It should.
An e-mail address:
`nobody@nowhere.net <mailto:nobody@nowhere.net>`_
An e-mail address: nobody@nowhere.net
Blockquoted: `http://example.com/ <http://example.com/>`_
Blockquoted: http://example.com/
Auto-links should not occur here: ``<http://example.com/>``
@ -802,4 +800,4 @@ indented.
.. |lalune| image:: lalune.jpg
.. |movie| image:: movie.jpg
.. |movie| image:: movie.jpg

View file

@ -379,21 +379,21 @@ inline link in pointy braces
.\par}
{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs32 Autolinks\par}
{\pard \ql \f0 \sa180 \li0 \fi0 With an ampersand: {\field{\*\fldinst{HYPERLINK "http://example.com/?foo=1&bar=2"}}{\fldrslt{\ul
http://example.com/?foo=1&bar=2
{\f1 http://example.com/?foo=1&bar=2}
}}}
\par}
{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab In a list?\par}
{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\field{\*\fldinst{HYPERLINK "http://example.com/"}}{\fldrslt{\ul
http://example.com/
{\f1 http://example.com/}
}}}
\par}
{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab It should.\sa180\par}
{\pard \ql \f0 \sa180 \li0 \fi0 An e-mail address: {\field{\*\fldinst{HYPERLINK "mailto:nobody@nowhere.net"}}{\fldrslt{\ul
nobody@nowhere.net
{\f1 nobody@nowhere.net}
}}}
\par}
{\pard \ql \f0 \sa180 \li720 \fi0 Blockquoted: {\field{\*\fldinst{HYPERLINK "http://example.com/"}}{\fldrslt{\ul
http://example.com/
{\f1 http://example.com/}
}}}
\par}
{\pard \ql \f0 \sa180 \li0 \fi0 Auto-links should not occur here: {\f1 <http://example.com/>} \par}
@ -422,3 +422,4 @@ links
{\pard \ql \f0 \sa180 \li0 \fi0 This paragraph should not be part of the note, as it is not indented.\par}
}