@@ -77,31 +77,32 @@ markdown test suite.
78\begin{center}\rule{3in}{0.4pt}\end{center}
78\begin{center}\rule{3in}{0.4pt}\end{center}
80−\section{Headers}
80+\section{Headers}\label{headers}
82−\subsection{Level 2 with an \href{/url}{embedded link}}
82+\subsection{Level 2 with an \href{/url}{embedded
83+link}}\label{level-2-with-an-embedded-link}
84−\subsubsection{Level 3 with \emph{emphasis}}
85+\subsubsection{Level 3 with \emph{emphasis}}\label{level-3-with-emphasis}
86−\paragraph{Level 4}
87+\paragraph{Level 4}\label{level-4}
88−\subparagraph{Level 5}
89+\subparagraph{Level 5}\label{level-5}
90−\section{Level 1}
91+\section{Level 1}\label{level-1}
92−\subsection{Level 2 with \emph{emphasis}}
93+\subsection{Level 2 with \emph{emphasis}}\label{level-2-with-emphasis}
94−\subsubsection{Level 3}
95+\subsubsection{Level 3}\label{level-3}
96with no blank line
97with no blank line
98−\subsection{Level 2}
99+\subsection{Level 2}\label{level-2}
100with no blank line
101with no blank line
102\begin{center}\rule{3in}{0.4pt}\end{center}
103\begin{center}\rule{3in}{0.4pt}\end{center}
104−\section{Paragraphs}
105+\section{Paragraphs}\label{paragraphs}
106Here's a regular paragraph.
107Here's a regular paragraph.
@@ -115,7 +116,7 @@ There should be a hard line break\\here.
116\begin{center}\rule{3in}{0.4pt}\end{center}
117\begin{center}\rule{3in}{0.4pt}\end{center}
118−\section{Block Quotes}
119+\section{Block Quotes}\label{block-quotes}
120E-mail style:
121E-mail style:
@@ -160,7 +161,7 @@ And a following paragraph.
161\begin{center}\rule{3in}{0.4pt}\end{center}
162\begin{center}\rule{3in}{0.4pt}\end{center}
163−\section{Code Blocks}
164+\section{Code Blocks}\label{code-blocks}
@@ -184,9 +185,9 @@ These should not be escaped: \$ \\ \> \[ \{
185\begin{center}\rule{3in}{0.4pt}\end{center}
186\begin{center}\rule{3in}{0.4pt}\end{center}
187−\section{Lists}
188+\section{Lists}\label{lists}
189−\subsection{Unordered}
190+\subsection{Unordered}\label{unordered}
191Asterisks tight:
192Asterisks tight:
@@ -257,7 +258,7 @@ Minuses loose:
258\end{itemize}
259\end{itemize}
260−\subsection{Ordered}
261+\subsection{Ordered}\label{ordered}
@@ -323,7 +324,7 @@ Multiple paragraphs:
324\end{enumerate}
325\end{enumerate}
326−\subsection{Nested}
327+\subsection{Nested}\label{nested}
328\begin{itemize}
329\begin{itemize}
329\itemsep1pt\parskip0pt\parsep0pt
330\itemsep1pt\parskip0pt\parsep0pt
@@ -388,7 +389,7 @@ Same thing but with paragraphs:
389\end{enumerate}
390\end{enumerate}
391−\subsection{Tabs and spaces}
392+\subsection{Tabs and spaces}\label{tabs-and-spaces}
393\begin{itemize}
394\begin{itemize}
@@ -404,7 +405,7 @@ Same thing but with paragraphs:
404 \end{itemize}
405 \end{itemize}
405\end{itemize}
406\end{itemize}
407−\subsection{Fancy list markers}
408+\subsection{Fancy list markers}\label{fancy-list-markers}
409\begin{enumerate}
410\begin{enumerate}
410\def\labelenumi{(\arabic{enumi})}
411\def\labelenumi{(\arabic{enumi})}
@@ -492,7 +493,7 @@ B. Williams
493\begin{center}\rule{3in}{0.4pt}\end{center}
494\begin{center}\rule{3in}{0.4pt}\end{center}
495−\section{Definition Lists}
496+\section{Definition Lists}\label{definition-lists}
497Tight using spaces:
498Tight using spaces:
@@ -595,7 +596,7 @@ orange fruit
595\end{enumerate}
596\end{enumerate}
596\end{description}
597\end{description}
598−\section{HTML Blocks}
599+\section{HTML Blocks}\label{html-blocks}
600Simple block on one line:
601Simple block on one line:
@@ -657,7 +658,7 @@ Hr's:
658\begin{center}\rule{3in}{0.4pt}\end{center}
659\begin{center}\rule{3in}{0.4pt}\end{center}
660−\section{Inline Markup}
661+\section{Inline Markup}\label{inline-markup}
662This is \emph{emphasized}, and so \emph{is this}.
663This is \emph{emphasized}, and so \emph{is this}.
@@ -689,7 +690,7 @@ spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
690\begin{center}\rule{3in}{0.4pt}\end{center}
691\begin{center}\rule{3in}{0.4pt}\end{center}
692−\section{Smart quotes, ellipses, dashes}
693+\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
694``Hello,'' said the spider. ``\,`Shelob' is my name.''
695``Hello,'' said the spider. ``\,`Shelob' is my name.''
@@ -710,7 +711,7 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
711\begin{center}\rule{3in}{0.4pt}\end{center}
712\begin{center}\rule{3in}{0.4pt}\end{center}
713−\section{LaTeX}
714+\section{LaTeX}\label{latex}
715\begin{itemize}
716\begin{itemize}
716\itemsep1pt\parskip0pt\parsep0pt
717\itemsep1pt\parskip0pt\parsep0pt
@@ -758,7 +759,7 @@ Cat & 1 \\ \hline
759\begin{center}\rule{3in}{0.4pt}\end{center}
760\begin{center}\rule{3in}{0.4pt}\end{center}
761−\section{Special Characters}
762+\section{Special Characters}\label{special-characters}
763Here is some unicode:
764Here is some unicode:
@@ -820,9 +821,9 @@ Minus: -
821\begin{center}\rule{3in}{0.4pt}\end{center}
822\begin{center}\rule{3in}{0.4pt}\end{center}
823−\section{Links}
824+\section{Links}\label{links}
825−\subsection{Explicit}
826+\subsection{Explicit}\label{explicit}
827Just a \href{/url/}{URL}.
828Just a \href{/url/}{URL}.
@@ -842,7 +843,7 @@ Just a \href{/url/}{URL}.
843\href{}{Empty}.
844\href{}{Empty}.
845−\subsection{Reference}
846+\subsection{Reference}\label{reference}
847Foo \href{/url/}{bar}.
848Foo \href{/url/}{bar}.
@@ -870,7 +871,7 @@ Foo \href{/url/}{bar}.
871Foo \href{/url/}{biz}.
872Foo \href{/url/}{biz}.
873−\subsection{With ampersands}
874+\subsection{With ampersands}\label{with-ampersands}
875Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
876Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
@@ -882,7 +883,7 @@ Here's an \href{/script?foo=1\&bar=2}{inline link}.
883Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
884Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
885−\subsection{Autolinks}
886+\subsection{Autolinks}\label{autolinks}
887With an ampersand: \url{http://example.com/?foo=1\&bar=2}
888With an ampersand: \url{http://example.com/?foo=1\&bar=2}
@@ -911,7 +912,7 @@ or here: <http://example.com/>
912\begin{center}\rule{3in}{0.4pt}\end{center}
913\begin{center}\rule{3in}{0.4pt}\end{center}
914−\section{Images}
915+\section{Images}\label{images}
916From ``Voyage dans la Lune'' by Georges Melies (1902):
917From ``Voyage dans la Lune'' by Georges Melies (1902):
@@ -925,7 +926,7 @@ Here is a movie \includegraphics{movie.jpg} icon.
926\begin{center}\rule{3in}{0.4pt}\end{center}
927\begin{center}\rule{3in}{0.4pt}\end{center}
928−\section{Footnotes}
929+\section{Footnotes}\label{footnotes}
930Here is a footnote reference,\footnote{Here is the footnote. It can go
931Here is a footnote reference,\footnote{Here is the footnote. It can go
931 anywhere after the footnote reference. It need not be placed at the end of
932 anywhere after the footnote reference. It need not be placed at the end of