]> granicus.if.org Git - multimarkdown/commitdiff
UPDATED: '\item{}' no longer needed since square brackets escaped on their own
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 26 Jun 2018 10:27:57 +0000 (06:27 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 26 Jun 2018 10:27:57 +0000 (06:27 -0400)
13 files changed:
Sources/libMultiMarkdown/latex.c
tests/Beamer/What Is MMD.tex
tests/MMD6Tests/Abbreviations.tex
tests/MMD6Tests/Basic Lists.tex
tests/MMD6Tests/Edge Cases.tex
tests/MMD6Tests/Fenced Code Blocks.tex
tests/MMD6Tests/Fuzz.tex
tests/MMD6Tests/Integrated.tex
tests/MMD6Tests/Markdown Syntax.tex
tests/MMD6Tests/Nested Lists.tex
tests/MMD6Tests/Reference Footnotes.tex
tests/MMD6Tests/Smart Quotes.tex
tests/Memoir/Integrated.tex

index a01052d3169da0c3c2ed78b22c4fe742192c5c4d..df657fd304535ed0d390be929369d32239e6987f 100644 (file)
@@ -444,7 +444,7 @@ void mmd_export_toc_entry_latex(DString * out, const char * source, scratch_pad
                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);
 
@@ -766,7 +766,7 @@ void mmd_export_token_latex(DString * out, const char * source, token * t, scrat
 
                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;
@@ -774,7 +774,7 @@ void mmd_export_token_latex(DString * out, const char * source, token * t, scrat
 
                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;
index 4e2983d6ee6057a3d1f97dfe05b9bb22fc58cb97..7728f4ebd51fd9926ec829968b279e29417fb819 100644 (file)
@@ -90,25 +90,25 @@ programmers.
 \label{multimarkdownaddsseveralnewfeatures}
 
 \begin{itemize}
-\item{} footnotes
+\item footnotes
 
-\item{} tables
+\item tables
 
-\item{} citations and bibliography
+\item citations and bibliography
 
-\item{} image attributes
+\item image attributes
 
-\item{} metadata
+\item metadata
 
-\item{} internal cross-references
+\item internal cross-references
 
-\item{} math support
+\item math support
 
-\item{} glossary entries
+\item glossary entries
 
-\item{} definition lists
+\item definition lists
 
-\item{} and more{\ldots}
+\item and more{\ldots}
 
 \end{itemize}
 
@@ -119,16 +119,16 @@ programmers.
 \label{mmdalsoaddssomethingelse...}
 
 \begin{itemize}
-\item{} Outside of the actual syntax, MMD supports multiple output formats,
+\item Outside of the actual syntax, MMD supports multiple output formats,
 including HTML, \href{http://en.wikipedia.org/wiki/LaTeX}{LaTeX}\footnote{\href{http://en.wikipedia.org/wiki/LaTeX}{http:\slash \slash en.wikipedia.org\slash wiki\slash LaTeX}},
 \href{http://en.wikipedia.org/wiki/OpenDocument}{OpenDocument}\footnote{\href{http://en.wikipedia.org/wiki/OpenDocument}{http:\slash \slash en.wikipedia.org\slash wiki\slash OpenDocument}}, and
 \href{http://en.wikipedia.org/wiki/OPML}{OPML}\footnote{\href{http://en.wikipedia.org/wiki/OPML}{http:\slash \slash en.wikipedia.org\slash wiki\slash OPML}}
 
-\item{} This allows you to use the same markup language (MultiMarkdown) to create a
+\item This allows you to use the same markup language (MultiMarkdown) to create a
 high quality pdf (article, book, or presentation like this one) without any
 additional programming.
 
-\item{} Most importantly, you don't have to know how this works, or even what
+\item Most importantly, you don't have to know how this works, or even what
 the LaTeX commands mean --- just have the software installed.
 
 \end{itemize}
@@ -209,11 +209,11 @@ becomes{\ldots}
 \label{supportforabibliographyisalsoincluded}
 
 \begin{itemize}
-\item{} MultiMarkdown has support for \href{http://www.bibtex.org/}{BibTeX}\footnote{\href{http://www.bibtex.org/}{http:\slash \slash www.bibtex.org\slash }}, or
+\item MultiMarkdown has support for \href{http://www.bibtex.org/}{BibTeX}\footnote{\href{http://www.bibtex.org/}{http:\slash \slash www.bibtex.org\slash }}, or
 for just including your own citations, so that you can back up your
 arguments.~\citep[p. 42]{fake}
 
-\item{} The citation above links to the corresponding entry in the bibliography.
+\item The citation above links to the corresponding entry in the bibliography.
 
 \end{itemize}
 
@@ -224,13 +224,13 @@ arguments.~\citep[p. 42]{fake}
 \label{installationiseasy}
 
 \begin{itemize}
-\item{} Download the MultiMarkdown software --- there are installers for Mac OS X
+\item Download the MultiMarkdown software --- there are installers for Mac OS X
 and Windows, and instructions for compiling in Linux.
 
-\item{} If you want to use LaTeX, install a version appropriate for your operating
+\item If you want to use LaTeX, install a version appropriate for your operating
 system.
 
-\item{} OpenDocument output doesn't require any special software, but will require
+\item OpenDocument output doesn't require any special software, but will require
 an application capable of opening the document --- LibreOffice,
 OpenOffice.org (with the proper plug-in installed), etc.
 
@@ -243,12 +243,12 @@ OpenOffice.org (with the proper plug-in installed), etc.
 \label{howdoicreateamultimarkdowndocument}
 
 \begin{itemize}
-\item{} A MultiMarkdown is simply a text document that is written in the
+\item A MultiMarkdown is simply a text document that is written in the
 MultiMarkdown syntax. You can use any text editor or application you like.
 If your editor supports fonts, italics, etc. then be sure to save as a plain
 text file (not a .doc, RTF, or other ``rich'' format).
 
-\item{} Some applications include built-in support for MultiMarkdown in various
+\item Some applications include built-in support for MultiMarkdown in various
 ways. There's a \href{http://fletcher.github.com/markdown.tmbundle/}{bundle}\footnote{\href{http://fletcher.github.com/markdown.tmbundle/}{http:\slash \slash fletcher.github.com\slash markdown.tmbundle\slash }} for \href{http://macromates.com/}{TextMate}\footnote{\href{http://macromates.com/}{http:\slash \slash macromates.com\slash }}, and \href{http://www.literatureandlatte.com/scrivener.html}{Scrivener}\footnote{\href{http://www.literatureandlatte.com/scrivener.html}{http:\slash \slash www.literatureandlatte.com\slash scrivener.html}} includes
 MultiMarkdown support.
 
@@ -277,12 +277,12 @@ documents without learning all of the complicated LaTeX commands and markup.
 If you're using LaTeX, and have the proper software installed it's easy:
 
 \begin{enumerate}
-\item{} Type \texttt{mmd2tex filename.txt}
+\item Type \texttt{mmd2tex filename.txt}
 
-\item{} Use \texttt{pdflatex}, \texttt{xelatex}, or your preferred tool to compile the LaTeX
+\item Use \texttt{pdflatex}, \texttt{xelatex}, or your preferred tool to compile the LaTeX
 file into a pdf.
 
-\item{} There is no step 3
+\item There is no step 3
 
 \end{enumerate}
 
@@ -293,11 +293,11 @@ file into a pdf.
 \label{wheretolearnmore}
 
 \begin{itemize}
-\item{} \href{http://fletcherpenney.net/multimarkdown/}{http:\slash \slash fletcherpenney.net\slash multimarkdown\slash }
+\item \href{http://fletcherpenney.net/multimarkdown/}{http:\slash \slash fletcherpenney.net\slash multimarkdown\slash }
 
-\item{} \href{http://groups.google.com/group/multimarkdown/}{http:\slash \slash groups.google.com\slash group\slash multimarkdown\slash }
+\item \href{http://groups.google.com/group/multimarkdown/}{http:\slash \slash groups.google.com\slash group\slash multimarkdown\slash }
 
-\item{} \href{http://fletcher.github.com/MultiMarkdown-Gallery/}{http:\slash \slash fletcher.github.com\slash MultiMarkdown-Gallery\slash }
+\item \href{http://fletcher.github.com/MultiMarkdown-Gallery/}{http:\slash \slash fletcher.github.com\slash MultiMarkdown-Gallery\slash }
 
 \end{itemize}
 
index b4caeed539a4e206f900eb63bffcc87d035ffd5e..f8fa664e9dc005546c0618a4921d7f235064da95 100644 (file)
@@ -103,11 +103,11 @@ fo'o fo'o
 \footnote{foo and bar}
 
 \begin{itemize}
-\item{} \gls{foo}
+\item \gls{foo}
 
-\item{} \gls{foo}
+\item \gls{foo}
 
-\item{} \gls{foo}
+\item \gls{foo}
 
 \end{itemize}
 
index df458c817df813d857619af20422e377e7901276..68ead9dc79430d33dd8b5efc91b2110bcde8124e 100644 (file)
 \input{mmd6-article-begin}
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
 5
 
 \begin{enumerate}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{enumerate}
 
 bar
 
 \begin{enumerate}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{enumerate}
 
 bar
 
 \begin{enumerate}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{enumerate}
 
 10
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 bar
 
-\item{} foo
+\item foo
 bar
 
-\item{} foo
+\item foo
 bar
 
 \end{itemize}
index dee0eb498816cc5b73e2aa139b755c00e406f7ae..ff9ba137b7042e747c629367bf8b392ba4901b5d 100644 (file)
@@ -3,7 +3,7 @@
 \input{mmd6-article-begin}
 
 \begin{itemize}
-\item{} foo
+\item foo
 bar
 
 \end{itemize}
@@ -11,21 +11,21 @@ bar
 foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
 foo
 
 \begin{enumerate}
-\item{} bar
+\item bar
 
 \end{enumerate}
 
 foo
 
 \begin{enumerate}
-\item{} bar
+\item bar
 
 \end{enumerate}
 
index e4a5a74e68538df5acfbd9094c6305e5d49c57e9..2040c6fd0224caf6a2ee6b57be6c1139b2f30687 100644 (file)
@@ -13,13 +13,13 @@ bar
 \end{verbatim}
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{verbatim}
 *foo*
 \end{verbatim}
 
-\item{} foo
+\item foo
 
 \begin{verbatim}
 *foo*
index 4256a90e7664375e3d9b7a7aabc2f2060f05b9d9..b6ec57fd894640d79888c0932e452a05764b6f79 100644 (file)
@@ -9,9 +9,9 @@ Collection of test cases identified by \href{http://lcamtuf.coredump.cx/afl/}{Am
 &gt;bar~~\}
 
 \begin{itemize}
-\item{} list
+\item list
 
-\item{} tems
+\item tems
 
 \end{itemize}
 
@@ -31,9 +31,9 @@ foo2 (\autoref{bar})
 f \gls{o o} f \gls{o o}
 
 \begin{itemize}
-\item{} foo
+\item foo
 
-\item{} foo
+\item foo
 
 \end{itemize}
 
index 0870db445002e0d0fdf3bad86b96298c6da1b28c..d41ea9b276b7e15bdb48d241fda50948d9506cb1 100644 (file)
@@ -17,9 +17,9 @@ when developing a new output format.
 paragraph
 
 \begin{itemize}
-\item{} list
+\item list
 
-\item{} items
+\item items
 
 \end{itemize}
 
@@ -47,11 +47,11 @@ blockquote
 \label{escaped}
 
 \begin{enumerate}
-\item{} \$
+\item \$
 
-\item{} \#
+\item \#
 
-\item{} [
+\item [
 
 \end{enumerate}
 
index 222c2b749d23b929986c8ca6b75e4a955a7871bd..6dc0436a02c4987dc4722b82c57558a853468a8c 100644 (file)
@@ -2,53 +2,53 @@
 \label{markdown:syntax}
 
 \begin{itemize}
-\item{} Overview (\autoref{overview})
+\item Overview (\autoref{overview})
 
 \begin{itemize}
-\item{} Philosophy (\autoref{philosophy})
+\item Philosophy (\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{} Code (\autoref{code})
+\item Code (\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}
 
@@ -649,16 +649,16 @@ on a line by itself:
 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}
@@ -925,12 +925,12 @@ Inline image syntax looks like this:
 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.
 
index a87f90153a32c8ae8c2924c39eb128e039911c27..3f2ccc41c2779d590bb6e127905eb7f7f78991b2 100644 (file)
@@ -3,24 +3,24 @@
 \input{mmd6-article-begin}
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
@@ -55,24 +55,24 @@ bar
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
@@ -81,24 +81,24 @@ bar
 5
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
@@ -107,24 +107,24 @@ bar
 bar
 
 \begin{itemize}
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
-\item{} foo
+\item foo
 
 \begin{itemize}
-\item{} bar
+\item bar
 
 \end{itemize}
 
index cd4342a014c08cc025b16ea8d24ccb71fadd38ae..0d79c82eba6db1a3d0232cb388810770ba14fa37 100644 (file)
@@ -12,7 +12,7 @@ foo.\footnote{foo
 \emph{bar}
 
 \begin{itemize}
-\item{} bat
+\item bat
 
 \end{itemize}}
 
@@ -21,7 +21,7 @@ foo.\footnote{foo
 \emph{bar}
 
 \begin{itemize}
-\item{} bat
+\item bat
 
 \end{itemize}}
 
index d378c26f04c934a2cf4b0a618a8e0e048f9b3429..177d204b305d0a18f38916aaaac1c3a32adfaae4 100644 (file)
@@ -81,9 +81,9 @@ foo(``bar'')
 foo-bar
 
 \begin{itemize}
-\item{} foo-bar
+\item foo-bar
 
-\item{} foo-bar
+\item foo-bar
 
 \end{itemize}
 
index 262aa1c9d4a4283f52713cf00269bb35da1f65c9..4cfd66fe7e20a2dcf97d0c8b036a3016bbcd86d8 100644 (file)
@@ -17,9 +17,9 @@ when developing a new output format.
 paragraph
 
 \begin{itemize}
-\item{} list
+\item list
 
-\item{} items
+\item items
 
 \end{itemize}
 
@@ -50,11 +50,11 @@ blockquote
 \label{escaped}
 
 \begin{enumerate}
-\item{} \$
+\item \$
 
-\item{} \#
+\item \#
 
-\item{} [
+\item [
 
 \end{enumerate}