if (entry_level >= level) {
// This entry is a direct descendant of the parent
temp_char = label_from_header(source, entry);
- print_const("\\item ");
+ print_const("\\item{} ");
mmd_export_token_tree_latex(out, source, entry->child, scratch);
printf("(\\autoref{%s})\n\n", temp_char);
break;
case BLOCK_LIST_ITEM:
pad(out, 2, scratch);
- print_const("\\item ");
+ print_const("\\item{} ");
scratch->padded = 2;
mmd_export_token_tree_latex(out, source, t->child, scratch);
scratch->padded = 0;
break;
case BLOCK_LIST_ITEM_TIGHT:
pad(out, 2, scratch);
- print_const("\\item ");
+ print_const("\\item{} ");
scratch->padded = 2;
mmd_export_token_tree_latex(out, source, t->child, scratch);
scratch->padded = 0;
\label{markdown:syntax}
\begin{itemize}
-\item \autoref{overview}
+\item{} \autoref{overview}
\begin{itemize}
-\item \autoref{philosophy}
+\item{} \autoref{philosophy}
-\item Inline HTML (\autoref{html})
+\item{} Inline HTML (\autoref{html})
-\item Automatic Escaping for Special Characters (\autoref{autoescape})
+\item{} Automatic Escaping for Special Characters (\autoref{autoescape})
\end{itemize}
-\item Block Elements (\autoref{block})
+\item{} Block Elements (\autoref{block})
\begin{itemize}
-\item Paragraphs and Line Breaks (\autoref{p})
+\item{} Paragraphs and Line Breaks (\autoref{p})
-\item Headers (\autoref{header})
+\item{} Headers (\autoref{header})
-\item Blockquotes (\autoref{blockquote})
+\item{} Blockquotes (\autoref{blockquote})
-\item Lists (\autoref{list})
+\item{} Lists (\autoref{list})
-\item Code Blocks (\autoref{precode})
+\item{} Code Blocks (\autoref{precode})
-\item Horizontal Rules (\autoref{hr})
+\item{} Horizontal Rules (\autoref{hr})
\end{itemize}
-\item Span Elements (\autoref{span})
+\item{} Span Elements (\autoref{span})
\begin{itemize}
-\item Links (\autoref{link})
+\item{} Links (\autoref{link})
-\item Emphasis (\autoref{em})
+\item{} Emphasis (\autoref{em})
-\item \autoref{code}
+\item{} \autoref{code}
-\item Images (\autoref{img})
+\item{} Images (\autoref{img})
\end{itemize}
-\item Miscellaneous (\autoref{misc})
+\item{} Miscellaneous (\autoref{misc})
\begin{itemize}
-\item Backslash Escapes (\autoref{backslash})
+\item{} Backslash Escapes (\autoref{backslash})
-\item Automatic Links (\autoref{autolink})
+\item{} Automatic Links (\autoref{autolink})
\end{itemize}
That is:
\begin{itemize}
-\item Square brackets containing the link identifier (optionally
+\item{} Square brackets containing the link identifier (optionally
indented from the left margin using up to three spaces);
-\item followed by a colon;
+\item{} followed by a colon;
-\item followed by one or more spaces (or tabs);
+\item{} followed by one or more spaces (or tabs);
-\item followed by the URL for the link;
+\item{} followed by the URL for the link;
-\item optionally followed by a title attribute for the link, enclosed
+\item{} optionally followed by a title attribute for the link, enclosed
in double or single quotes, or enclosed in parentheses.
\end{itemize}
That is:
\begin{itemize}
-\item An exclamation mark: \texttt{!};
+\item{} An exclamation mark: \texttt{!};
-\item followed by a set of square brackets, containing the \texttt{alt}
+\item{} followed by a set of square brackets, containing the \texttt{alt}
attribute text for the image;
-\item followed by a set of parentheses, containing the URL or path to
+\item{} followed by a set of parentheses, containing the URL or path to
the image, and an optional \texttt{title} attribute enclosed in double
or single quotes.
\begin{itemize}
-\item Second Level (\autoref{secondlevel})
+\item{} Second Level (\autoref{secondlevel})
-\item First Level (\autoref{firstlevel})
+\item{} First Level (\autoref{firstlevel})
\begin{itemize}
-\item Second Level b (\autoref{secondlevelb})
+\item{} Second Level b (\autoref{secondlevelb})
\begin{itemize}
-\item Third Level (\autoref{thirdlevel})
+\item{} Third Level (\autoref{thirdlevel})
\end{itemize}
-\item Second Level c (\autoref{secondlevelc})
+\item{} Second Level c (\autoref{secondlevelc})
\end{itemize}
-\item First Level b (\autoref{firstlevelb})
+\item{} First Level b (\autoref{firstlevelb})
\begin{itemize}
-\item Third Level b (\autoref{thirdlevelb})
+\item{} Third Level b (\autoref{thirdlevelb})
-\item Second level d (\autoref{secondleveld})
+\item{} Second level d (\autoref{secondleveld})
\begin{itemize}
-\item Third level d (\autoref{thirdleveld})
+\item{} Third level d (\autoref{thirdleveld})
\begin{itemize}
-\item Fourth level d (\autoref{fourthleveld})
+\item{} Fourth level d (\autoref{fourthleveld})
\end{itemize}
\end{itemize}
-\item First level (\autoref{firstlevele})
+\item{} First level (\autoref{firstlevele})
\begin{itemize}
-\item Second level (\autoref{secondlevele})
+\item{} Second level (\autoref{secondlevele})
\end{itemize}