@@ -78,32 +78,34 @@ markdown test suite.
79\begin{center}\rule{3in}{0.4pt}\end{center}
79\begin{center}\rule{3in}{0.4pt}\end{center}
81−\section{Headers}\label{headers}
81+\section{\texorpdfstring{Headers}{Headers}}\label{headers}
83−\subsection{Level 2 with an \href{/url}{embedded
83+\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
84−link}}\label{level-2-with-an-embedded-link}
84+link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}
86+\subsubsection{\texorpdfstring{Level 3 with
86−\subsubsection{Level 3 with \emph{emphasis}}\label{level-3-with-emphasis}
87+\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}
88−\paragraph{Level 4}\label{level-4}
89+\paragraph{\texorpdfstring{Level 4}{Level 4}}\label{level-4}
90−\subparagraph{Level 5}\label{level-5}
91+\subparagraph{\texorpdfstring{Level 5}{Level 5}}\label{level-5}
92−\section{Level 1}\label{level-1}
93+\section{\texorpdfstring{Level 1}{Level 1}}\label{level-1}
95+\subsection{\texorpdfstring{Level 2 with
94−\subsection{Level 2 with \emph{emphasis}}\label{level-2-with-emphasis}
96+\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}
96−\subsubsection{Level 3}\label{level-3}
98+\subsubsection{\texorpdfstring{Level 3}{Level 3}}\label{level-3}
98with no blank line
100with no blank line
100−\subsection{Level 2}\label{level-2}
102+\subsection{\texorpdfstring{Level 2}{Level 2}}\label{level-2}
102with no blank line
104with no blank line
104\begin{center}\rule{3in}{0.4pt}\end{center}
106\begin{center}\rule{3in}{0.4pt}\end{center}
106−\section{Paragraphs}\label{paragraphs}
108+\section{\texorpdfstring{Paragraphs}{Paragraphs}}\label{paragraphs}
108Here's a regular paragraph.
110Here's a regular paragraph.
@@ -117,7 +119,7 @@ There should be a hard line break\\here.
118\begin{center}\rule{3in}{0.4pt}\end{center}
120\begin{center}\rule{3in}{0.4pt}\end{center}
120−\section{Block Quotes}\label{block-quotes}
122+\section{\texorpdfstring{Block Quotes}{Block Quotes}}\label{block-quotes}
122E-mail style:
124E-mail style:
@@ -162,7 +164,7 @@ And a following paragraph.
163\begin{center}\rule{3in}{0.4pt}\end{center}
165\begin{center}\rule{3in}{0.4pt}\end{center}
165−\section{Code Blocks}\label{code-blocks}
167+\section{\texorpdfstring{Code Blocks}{Code Blocks}}\label{code-blocks}
@@ -186,9 +188,9 @@ These should not be escaped: \$ \\ \> \[ \{
187\begin{center}\rule{3in}{0.4pt}\end{center}
189\begin{center}\rule{3in}{0.4pt}\end{center}
189−\section{Lists}\label{lists}
191+\section{\texorpdfstring{Lists}{Lists}}\label{lists}
191−\subsection{Unordered}\label{unordered}
193+\subsection{\texorpdfstring{Unordered}{Unordered}}\label{unordered}
193Asterisks tight:
195Asterisks tight:
@@ -259,7 +261,7 @@ Minuses loose:
260\end{itemize}
262\end{itemize}
262−\subsection{Ordered}\label{ordered}
264+\subsection{\texorpdfstring{Ordered}{Ordered}}\label{ordered}
@@ -325,7 +327,7 @@ Multiple paragraphs:
326\end{enumerate}
328\end{enumerate}
328−\subsection{Nested}\label{nested}
330+\subsection{\texorpdfstring{Nested}{Nested}}\label{nested}
330\begin{itemize}
332\begin{itemize}
331\itemsep1pt\parskip0pt\parsep0pt
333\itemsep1pt\parskip0pt\parsep0pt
@@ -390,7 +392,8 @@ Same thing but with paragraphs:
391\end{enumerate}
393\end{enumerate}
395+\subsection{\texorpdfstring{Tabs and
393−\subsection{Tabs and spaces}\label{tabs-and-spaces}
396+spaces}{Tabs and spaces}}\label{tabs-and-spaces}
395\begin{itemize}
398\begin{itemize}
@@ -406,7 +409,8 @@ Same thing but with paragraphs:
406 \end{itemize}
409 \end{itemize}
407\end{itemize}
410\end{itemize}
412+\subsection{\texorpdfstring{Fancy list
409−\subsection{Fancy list markers}\label{fancy-list-markers}
413+markers}{Fancy list markers}}\label{fancy-list-markers}
411\begin{enumerate}
415\begin{enumerate}
412\def\labelenumi{(\arabic{enumi})}
416\def\labelenumi{(\arabic{enumi})}
@@ -494,7 +498,8 @@ B. Williams
495\begin{center}\rule{3in}{0.4pt}\end{center}
499\begin{center}\rule{3in}{0.4pt}\end{center}
501+\section{\texorpdfstring{Definition
497−\section{Definition Lists}\label{definition-lists}
502+Lists}{Definition Lists}}\label{definition-lists}
499Tight using spaces:
504Tight using spaces:
@@ -597,7 +602,7 @@ orange fruit
597\end{enumerate}
602\end{enumerate}
598\end{description}
603\end{description}
600−\section{HTML Blocks}\label{html-blocks}
605+\section{\texorpdfstring{HTML Blocks}{HTML Blocks}}\label{html-blocks}
602Simple block on one line:
607Simple block on one line:
@@ -659,7 +664,7 @@ Hr's:
660\begin{center}\rule{3in}{0.4pt}\end{center}
665\begin{center}\rule{3in}{0.4pt}\end{center}
662−\section{Inline Markup}\label{inline-markup}
667+\section{\texorpdfstring{Inline Markup}{Inline Markup}}\label{inline-markup}
664This is \emph{emphasized}, and so \emph{is this}.
669This is \emph{emphasized}, and so \emph{is this}.
@@ -691,7 +696,8 @@ spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
692\begin{center}\rule{3in}{0.4pt}\end{center}
697\begin{center}\rule{3in}{0.4pt}\end{center}
699+\section{\texorpdfstring{Smart quotes, ellipses,
694−\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
700+dashes}{Smart quotes, ellipses, dashes}}\label{smart-quotes-ellipses-dashes}
696``Hello,'' said the spider. ``\,`Shelob' is my name.''
702``Hello,'' said the spider. ``\,`Shelob' is my name.''
@@ -712,7 +718,7 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
713\begin{center}\rule{3in}{0.4pt}\end{center}
719\begin{center}\rule{3in}{0.4pt}\end{center}
715−\section{LaTeX}\label{latex}
721+\section{\texorpdfstring{LaTeX}{LaTeX}}\label{latex}
717\begin{itemize}
723\begin{itemize}
718\itemsep1pt\parskip0pt\parsep0pt
724\itemsep1pt\parskip0pt\parsep0pt
@@ -760,7 +766,8 @@ Cat & 1 \\ \hline
761\begin{center}\rule{3in}{0.4pt}\end{center}
767\begin{center}\rule{3in}{0.4pt}\end{center}
769+\section{\texorpdfstring{Special
763−\section{Special Characters}\label{special-characters}
770+Characters}{Special Characters}}\label{special-characters}
765Here is some unicode:
772Here is some unicode:
@@ -822,9 +829,9 @@ Minus: -
823\begin{center}\rule{3in}{0.4pt}\end{center}
830\begin{center}\rule{3in}{0.4pt}\end{center}
825−\section{Links}\label{links}
832+\section{\texorpdfstring{Links}{Links}}\label{links}
827−\subsection{Explicit}\label{explicit}
834+\subsection{\texorpdfstring{Explicit}{Explicit}}\label{explicit}
829Just a \href{/url/}{URL}.
836Just a \href{/url/}{URL}.
@@ -844,7 +851,7 @@ Just a \href{/url/}{URL}.
845\href{}{Empty}.
852\href{}{Empty}.
847−\subsection{Reference}\label{reference}
854+\subsection{\texorpdfstring{Reference}{Reference}}\label{reference}
849Foo \href{/url/}{bar}.
856Foo \href{/url/}{bar}.
@@ -872,7 +879,8 @@ Foo \href{/url/}{bar}.
873Foo \href{/url/}{biz}.
880Foo \href{/url/}{biz}.
882+\subsection{\texorpdfstring{With
875−\subsection{With ampersands}\label{with-ampersands}
883+ampersands}{With ampersands}}\label{with-ampersands}
877Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
885Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
@@ -884,7 +892,7 @@ Here's an \href{/script?foo=1\&bar=2}{inline link}.
885Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
893Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
887−\subsection{Autolinks}\label{autolinks}
895+\subsection{\texorpdfstring{Autolinks}{Autolinks}}\label{autolinks}
889With an ampersand: \url{http://example.com/?foo=1\&bar=2}
897With an ampersand: \url{http://example.com/?foo=1\&bar=2}
@@ -913,7 +921,7 @@ or here: <http://example.com/>
914\begin{center}\rule{3in}{0.4pt}\end{center}
922\begin{center}\rule{3in}{0.4pt}\end{center}
916−\section{Images}\label{images}
924+\section{\texorpdfstring{Images}{Images}}\label{images}
918From ``Voyage dans la Lune'' by Georges Melies (1902):
926From ``Voyage dans la Lune'' by Georges Melies (1902):
@@ -927,7 +935,7 @@ Here is a movie \includegraphics{movie.jpg} icon.
928\begin{center}\rule{3in}{0.4pt}\end{center}
936\begin{center}\rule{3in}{0.4pt}\end{center}
930−\section{Footnotes}\label{footnotes}
938+\section{\texorpdfstring{Footnotes}{Footnotes}}\label{footnotes}
932Here is a footnote reference,\footnote{Here is the footnote. It can go
940Here is a footnote reference,\footnote{Here is the footnote. It can go
933 anywhere after the footnote reference. It need not be placed at the end of
941 anywhere after the footnote reference. It need not be placed at the end of