@@ -77,31 +77,32 @@ markdown test suite.
7777
7878\begin{center}\rule{3in}{0.4pt}\end{center}
7979
80−\section{Headers}
80+\section{Headers}\label{headers}
8181
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}
8384
84−\subsubsection{Level 3 with \emph{emphasis}}
85+\subsubsection{Level 3 with \emph{emphasis}}\label{level-3-with-emphasis}
8586
86−\paragraph{Level 4}
87+\paragraph{Level 4}\label{level-4}
8788
88−\subparagraph{Level 5}
89+\subparagraph{Level 5}\label{level-5}
8990
90−\section{Level 1}
91+\section{Level 1}\label{level-1}
9192
92−\subsection{Level 2 with \emph{emphasis}}
93+\subsection{Level 2 with \emph{emphasis}}\label{level-2-with-emphasis}
9394
94−\subsubsection{Level 3}
95+\subsubsection{Level 3}\label{level-3}
9596
9697with no blank line
9798
98−\subsection{Level 2}
99+\subsection{Level 2}\label{level-2}
99100
100101with no blank line
101102
102103\begin{center}\rule{3in}{0.4pt}\end{center}
103104
104−\section{Paragraphs}
105+\section{Paragraphs}\label{paragraphs}
105106
106107Here's a regular paragraph.
107108
@@ -115,7 +116,7 @@ There should be a hard line break\\here.
115116
116117\begin{center}\rule{3in}{0.4pt}\end{center}
117118
118−\section{Block Quotes}
119+\section{Block Quotes}\label{block-quotes}
119120
120121E-mail style:
121122
@@ -160,7 +161,7 @@ And a following paragraph.
160161
161162\begin{center}\rule{3in}{0.4pt}\end{center}
162163
163−\section{Code Blocks}
164+\section{Code Blocks}\label{code-blocks}
164165
165166Code:
166167
@@ -184,9 +185,9 @@ These should not be escaped: \$ \\ \> \[ \{
184185
185186\begin{center}\rule{3in}{0.4pt}\end{center}
186187
187−\section{Lists}
188+\section{Lists}\label{lists}
188189
189−\subsection{Unordered}
190+\subsection{Unordered}\label{unordered}
190191
191192Asterisks tight:
192193
@@ -257,7 +258,7 @@ Minuses loose:
257258 Minus 3
258259\end{itemize}
259260
260−\subsection{Ordered}
261+\subsection{Ordered}\label{ordered}
261262
262263Tight:
263264
@@ -323,7 +324,7 @@ Multiple paragraphs:
323324 Item 3.
324325\end{enumerate}
325326
326−\subsection{Nested}
327+\subsection{Nested}\label{nested}
327328
328329\begin{itemize}
329330\itemsep1pt\parskip0pt\parsep0pt
@@ -388,7 +389,7 @@ Same thing but with paragraphs:
388389 Third
389390\end{enumerate}
390391
391−\subsection{Tabs and spaces}
392+\subsection{Tabs and spaces}\label{tabs-and-spaces}
392393
393394\begin{itemize}
394395\item
@@ -404,7 +405,7 @@ Same thing but with paragraphs:
404405 \end{itemize}
405406\end{itemize}
406407
407−\subsection{Fancy list markers}
408+\subsection{Fancy list markers}\label{fancy-list-markers}
408409
409410\begin{enumerate}
410411\def\labelenumi{(\arabic{enumi})}
@@ -492,7 +493,7 @@ B. Williams
492493
493494\begin{center}\rule{3in}{0.4pt}\end{center}
494495
495−\section{Definition Lists}
496+\section{Definition Lists}\label{definition-lists}
496497
497498Tight using spaces:
498499
@@ -595,7 +596,7 @@ orange fruit
595596\end{enumerate}
596597\end{description}
597598
598−\section{HTML Blocks}
599+\section{HTML Blocks}\label{html-blocks}
599600
600601Simple block on one line:
601602
@@ -657,7 +658,7 @@ Hr's:
657658
658659\begin{center}\rule{3in}{0.4pt}\end{center}
659660
660−\section{Inline Markup}
661+\section{Inline Markup}\label{inline-markup}
661662
662663This is \emph{emphasized}, and so \emph{is this}.
663664
@@ -689,7 +690,7 @@ spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
689690
690691\begin{center}\rule{3in}{0.4pt}\end{center}
691692
692−\section{Smart quotes, ellipses, dashes}
693+\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
693694
694695``Hello,'' said the spider. ``\,`Shelob' is my name.''
695696
@@ -710,7 +711,7 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
710711
711712\begin{center}\rule{3in}{0.4pt}\end{center}
712713
713−\section{LaTeX}
714+\section{LaTeX}\label{latex}
714715
715716\begin{itemize}
716717\itemsep1pt\parskip0pt\parsep0pt
@@ -758,7 +759,7 @@ Cat & 1 \\ \hline
758759
759760\begin{center}\rule{3in}{0.4pt}\end{center}
760761
761−\section{Special Characters}
762+\section{Special Characters}\label{special-characters}
762763
763764Here is some unicode:
764765
@@ -820,9 +821,9 @@ Minus: -
820821
821822\begin{center}\rule{3in}{0.4pt}\end{center}
822823
823−\section{Links}
824+\section{Links}\label{links}
824825
825−\subsection{Explicit}
826+\subsection{Explicit}\label{explicit}
826827
827828Just a \href{/url/}{URL}.
828829
@@ -842,7 +843,7 @@ Just a \href{/url/}{URL}.
842843
843844\href{}{Empty}.
844845
845−\subsection{Reference}
846+\subsection{Reference}\label{reference}
846847
847848Foo \href{/url/}{bar}.
848849
@@ -870,7 +871,7 @@ Foo \href{/url/}{bar}.
870871
871872Foo \href{/url/}{biz}.
872873
873−\subsection{With ampersands}
874+\subsection{With ampersands}\label{with-ampersands}
874875
875876Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
876877URL}.
@@ -882,7 +883,7 @@ Here's an \href{/script?foo=1\&bar=2}{inline link}.
882883
883884Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
884885
885−\subsection{Autolinks}
886+\subsection{Autolinks}\label{autolinks}
886887
887888With an ampersand: \url{http://example.com/?foo=1\&bar=2}
888889
@@ -911,7 +912,7 @@ or here: <http://example.com/>
911912
912913\begin{center}\rule{3in}{0.4pt}\end{center}
913914
914−\section{Images}
915+\section{Images}\label{images}
915916
916917From ``Voyage dans la Lune'' by Georges Melies (1902):
917918
@@ -925,7 +926,7 @@ Here is a movie \includegraphics{movie.jpg} icon.
925926
926927\begin{center}\rule{3in}{0.4pt}\end{center}
927928
928−\section{Footnotes}
929+\section{Footnotes}\label{footnotes}
929930
930931Here is a footnote reference,\footnote{Here is the footnote. It can go
931932 anywhere after the footnote reference. It need not be placed at the end of