]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Trim single remaining whitespace when exporting headers
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 6 Aug 2018 23:28:46 +0000 (18:28 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 6 Aug 2018 23:28:46 +0000 (18:28 -0500)
74 files changed:
Sources/libMultiMarkdown/beamer.c
Sources/libMultiMarkdown/html.c
Sources/libMultiMarkdown/latex.c
Sources/libMultiMarkdown/opendocument-content.c
Sources/libMultiMarkdown/opml.c
Sources/libMultiMarkdown/opml.h
Sources/libMultiMarkdown/writer.c
Sources/libMultiMarkdown/writer.h
tests/Beamer/Raw Source.tex
tests/Beamer/What Is MMD.tex
tests/MMD6Tests/Abbreviations.fodt
tests/MMD6Tests/Abbreviations.html
tests/MMD6Tests/Abbreviations.htmlc
tests/MMD6Tests/Abbreviations.opml
tests/MMD6Tests/Abbreviations.tex
tests/MMD6Tests/Advanced Headers.fodt
tests/MMD6Tests/Advanced Headers.html
tests/MMD6Tests/Advanced Headers.htmlc
tests/MMD6Tests/Advanced Headers.opml
tests/MMD6Tests/Advanced Headers.tex
tests/MMD6Tests/Basic Blocks.fodt
tests/MMD6Tests/Basic Blocks.html
tests/MMD6Tests/Basic Blocks.htmlc
tests/MMD6Tests/Basic Blocks.opml
tests/MMD6Tests/Basic Blocks.tex
tests/MMD6Tests/Citations.fodt
tests/MMD6Tests/Citations.html
tests/MMD6Tests/Citations.htmlc
tests/MMD6Tests/Citations.opml
tests/MMD6Tests/Citations.tex
tests/MMD6Tests/Cross-References.fodt
tests/MMD6Tests/Cross-References.html
tests/MMD6Tests/Cross-References.htmlc
tests/MMD6Tests/Cross-References.opml
tests/MMD6Tests/Cross-References.tex
tests/MMD6Tests/Fenced Code Blocks.htmlc
tests/MMD6Tests/Fuzz.fodt
tests/MMD6Tests/Fuzz.tex
tests/MMD6Tests/HTML Blocks.fodt
tests/MMD6Tests/HTML Blocks.html
tests/MMD6Tests/HTML Blocks.htmlc
tests/MMD6Tests/HTML Blocks.opml
tests/MMD6Tests/HTML Blocks.tex
tests/MMD6Tests/Headers.fodt
tests/MMD6Tests/Headers.html
tests/MMD6Tests/Headers.htmlc
tests/MMD6Tests/Headers.opml
tests/MMD6Tests/Headers.tex
tests/MMD6Tests/Integrated.fodt
tests/MMD6Tests/Integrated.html
tests/MMD6Tests/Integrated.htmlc
tests/MMD6Tests/Integrated.opml
tests/MMD6Tests/Integrated.tex
tests/MMD6Tests/Link Variations.fodt
tests/MMD6Tests/Link Variations.html
tests/MMD6Tests/Link Variations.htmlc
tests/MMD6Tests/Link Variations.opml
tests/MMD6Tests/Link Variations.tex
tests/MMD6Tests/Markdown Syntax.fodt
tests/MMD6Tests/Markdown Syntax.html
tests/MMD6Tests/Markdown Syntax.htmlc
tests/MMD6Tests/Markdown Syntax.opml
tests/MMD6Tests/Markdown Syntax.tex
tests/MMD6Tests/Metadata.fodt
tests/MMD6Tests/Metadata.html
tests/MMD6Tests/Metadata.htmlc
tests/MMD6Tests/Metadata.opml
tests/MMD6Tests/Metadata.tex
tests/MMD6Tests/Table of Contents.fodt
tests/MMD6Tests/Table of Contents.html
tests/MMD6Tests/Table of Contents.htmlc
tests/MMD6Tests/Table of Contents.opml
tests/MMD6Tests/Table of Contents.tex
tests/Memoir/Integrated.tex

index 7db7d2c845a7ab673a7397b6d6cacb8f111b3aa1..48fd69ff208b7070de23c07760012d1db5b179e6 100644 (file)
@@ -270,6 +270,7 @@ void mmd_export_token_beamer(DString * out, const char * source, token * t, scra
                        }
 
                        mmd_export_token_tree_beamer(out, source, t->child, scratch);
+                       trim_trailing_whitespace_d_string(out);
 
                        if (scratch->extensions & EXT_NO_LABELS) {
                                print_const("}");
index bdac5a4efbf7c4b197c5a7c3ffd6ccb70e9820a7..2220f394783ac276aa51b0800c99b52be69f1236 100644 (file)
@@ -682,6 +682,8 @@ void mmd_export_token_html(DString * out, const char * source, token * t, scratc
                        }
 
                        mmd_export_token_tree_html(out, source, t->child, scratch);
+                       trim_trailing_whitespace_d_string(out);
+
                        printf("</h%1d>", temp_short + scratch->base_header_level - 1);
                        scratch->padded = 0;
                        break;
@@ -2098,7 +2100,7 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
 
                case ESCAPED_CHARACTER:
                        print_const("\\");
-                       
+
                        if (t->next && t->next->type == TEXT_EMPTY && source[t->start + 1] == ' ') {
                        } else {
                                mmd_print_char_html(out, source[t->start + 1], false);
index eebcb2045c4372ae0a3f46bf10285e9139547f66..58f51d21d290995c358fdbd77834a552c6e51d7c 100644 (file)
@@ -687,6 +687,7 @@ void mmd_export_token_latex(DString * out, const char * source, token * t, scrat
                        }
 
                        mmd_export_token_tree_latex(out, source, t->child, scratch);
+                       trim_trailing_whitespace_d_string(out);
 
                        if (scratch->extensions & EXT_NO_LABELS) {
                                print_const("}");
@@ -2176,10 +2177,12 @@ void mmd_export_token_latex_tt(DString * out, const char * source, token * t, sc
 
                case ESCAPED_CHARACTER:
                        print_const("\\textbackslash{}");
+
                        if (t->next && t->next->type == TEXT_EMPTY && source[t->start + 1] == ' ') {
                        } else {
                                mmd_print_char_latex(out, source[t->start + 1]);
                        }
+
                        break;
 
                case HASH1:
index 08ef7b5c36f9d1205d1c7ee010ee83b92934be1b..3702e8a6f1a288797ab836105ea076a8af2b0f4c 100644 (file)
@@ -312,10 +312,12 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
 
                case ESCAPED_CHARACTER:
                        print_const("\\");
+
                        if (t->next && t->next->type == TEXT_EMPTY && source[t->start + 1] == ' ') {
                        } else {
                                mmd_print_char_opendocument(out, source[t->start + 1]);
                        }
+
                        break;
 
                case HTML_COMMENT_START:
@@ -346,25 +348,30 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
                case MARKER_H5:
                case MARKER_H6:
                        temp = (char *) &source[t->start];
+
                        while (temp) {
                                switch (*temp) {
                                        case '#':
                                                print_const("#");
                                                temp++;
                                                break;
+
                                        case ' ':
                                                print_const(" ");
                                                temp++;
                                                break;
+
                                        case '\t':
                                                print_const("<text:tab/>");
                                                temp++;
                                                break;
+
                                        default:
                                                temp = NULL;
                                                break;
                                }
                        }
+
                        break;
 
                case MARKER_LIST_BULLET:
@@ -425,6 +432,7 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
 
                case TEXT_LINEBREAK:
                        print_const("  ");
+
                case TEXT_NL:
                        print_const("<text:line-break/>");
                        break;
@@ -876,6 +884,8 @@ void mmd_export_token_opendocument(DString * out, const char * source, token * t
                                free(temp_char);
                        }
 
+                       trim_trailing_whitespace_d_string(out);
+
                        print_const("</text:h>");
                        scratch->padded = 0;
                        break;
index adaf6aa78e96b927a370e5aeb7f9f292f9d43510..97296e08d3c044dfb15a07c19d178b2117e29b61 100644 (file)
@@ -8,7 +8,7 @@
 
 
        @author Fletcher T. Penney
-       @bug    
+       @bug
 
 **/
 
 
 
        The `MultiMarkdown 6` project is released under the MIT License..
-       
+
        GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:
-       
+
                https://github.com/fletcher/MultiMarkdown-4/
-       
+
        MMD 4 is released under both the MIT License and GPL.
-       
-       
+
+
        CuTest is released under the zlib/libpng license. See CuTest.c for the
        text of the license.
-       
+
        uthash library:
                Copyright (c) 2005-2016, Troy D. Hanson
-       
+
                Licensed under Revised BSD license
-       
+
        miniz library:
                Copyright 2013-2014 RAD Game Tools and Valve Software
                Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
-       
+
                Licensed under the MIT license
-       
+
        argtable3 library:
                Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
                <sheitmann@users.sourceforge.net>
                All rights reserved.
-       
+
                Licensed under the Revised BSD License
-       
-       
+
+
        ## The MIT License ##
-       
+
        Permission is hereby granted, free of charge, to any person obtaining
        a copy of this software and associated documentation files (the
        "Software"), to deal in the Software without restriction, including
        distribute, sublicense, and/or sell copies of the Software, and to
        permit persons to whom the Software is furnished to do so, subject to
        the following conditions:
-       
+
        The above copyright notice and this permission notice shall be
        included in all copies or substantial portions of the Software.
-       
+
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
        CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
        TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
        SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-       
-       
+
+
        ## Revised BSD License ##
-       
+
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are
        met:
@@ -85,7 +85,7 @@
              names of its contributors may be used to endorse or promote
              products derived from this software without specific prior
              written permission.
-       
+
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
        "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -97,7 +97,7 @@
        LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
        NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-       
+
 
 */
 
@@ -129,31 +129,40 @@ void mmd_print_source(DString * out, const char * source, size_t start, size_t l
                        case '&':
                                print_const("&amp;");
                                break;
+
                        case '<':
                                print_const("&lt;");
                                break;
+
                        case '>':
                                print_const("&gt;");
                                break;
+
                        case '"':
                                print_const("&quot;");
                                break;
+
                        case '\'':
                                print_const("&apos;");
                                break;
+
                        case '\n':
                                print_const("&#10;");
                                break;
+
                        case '\r':
                                print_const("&#13;");
                                break;
+
                        case '\t':
                                print_const("&#9;");
                                break;
+
                        default:
                                print_char(*c);
                                break;
                }
+
                c++;
        }
 }
@@ -164,7 +173,7 @@ void mmd_check_preamble_opml(DString * out, token * t, scratch_pad * scratch) {
                token * walker = t->child;
 
                while (walker) {
-                       switch(walker->type) {
+                       switch (walker->type) {
                                case BLOCK_META:
                                        walker = walker->next;
                                        break;
@@ -259,6 +268,7 @@ void mmd_outline_add_opml(DString * out, const char * source, token * current, s
                        case BLOCK_H6:
                                level = 1 + current->type - BLOCK_H1;
                                break;
+
                        default:
                                level = 100;
                                break;
@@ -286,6 +296,7 @@ void mmd_outline_add_opml(DString * out, const char * source, token * current, s
                                        } else {
                                                start = t->start + t->len;
                                        }
+
                                        break;
 
                                case BLOCK_H1:
@@ -466,6 +477,7 @@ void mmd_export_token_opml(DString * out, const char * source, token * t, scratc
 
                        print_const(" text=\"");
                        mmd_export_header_opml(out, source, t, scratch);
+                       trim_trailing_whitespace_d_string(out);
                        print_const("\" _note=\"");
                        break;
 
index 0cddd7e4cd793c10707580f81172e15be28b50cb..196691e4cb562901c5db777497ca9ac9e96a4aaa 100644 (file)
@@ -4,11 +4,11 @@
 
        @file opml.h
 
-       @brief 
+       @brief
 
 
        @author Fletcher T. Penney
-       @bug    
+       @bug
 
 **/
 
 
 
        The `MultiMarkdown 6` project is released under the MIT License..
-       
+
        GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:
-       
+
                https://github.com/fletcher/MultiMarkdown-4/
-       
+
        MMD 4 is released under both the MIT License and GPL.
-       
-       
+
+
        CuTest is released under the zlib/libpng license. See CuTest.c for the
        text of the license.
-       
+
        uthash library:
                Copyright (c) 2005-2016, Troy D. Hanson
-       
+
                Licensed under Revised BSD license
-       
+
        miniz library:
                Copyright 2013-2014 RAD Game Tools and Valve Software
                Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
-       
+
                Licensed under the MIT license
-       
+
        argtable3 library:
                Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
                <sheitmann@users.sourceforge.net>
                All rights reserved.
-       
+
                Licensed under the Revised BSD License
-       
-       
+
+
        ## The MIT License ##
-       
+
        Permission is hereby granted, free of charge, to any person obtaining
        a copy of this software and associated documentation files (the
        "Software"), to deal in the Software without restriction, including
        distribute, sublicense, and/or sell copies of the Software, and to
        permit persons to whom the Software is furnished to do so, subject to
        the following conditions:
-       
+
        The above copyright notice and this permission notice shall be
        included in all copies or substantial portions of the Software.
-       
+
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
        CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
        TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
        SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-       
-       
+
+
        ## Revised BSD License ##
-       
+
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are
        met:
@@ -85,7 +85,7 @@
              names of its contributors may be used to endorse or promote
              products derived from this software without specific prior
              written permission.
-       
+
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
        "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -97,7 +97,7 @@
        LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
        NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-       
+
 
 */
 
index 14442883cc95534d52480af36777f9cf6f87ff58..8dccf8d838ae2ec00c5429cdf0cfea0db1c9b799 100644 (file)
@@ -1081,6 +1081,7 @@ footnote * footnote_new(const char * source, token * label, token * content, boo
                                default:
                                        // Trim trailing newlines
                                        walker = content->tail;
+
                                        while (walker) {
                                                switch (walker->type) {
                                                        case TEXT_NL:
@@ -2492,6 +2493,18 @@ void strip_leading_whitespace(token * chain, const char * source) {
 }
 
 
+void trim_trailing_whitespace_d_string(DString * d) {
+       if (d) {
+               char * c = &(d->str[d->currentStringLength - 1]);
+
+               while (d->currentStringLength && char_is_whitespace(*c)) {
+                       *c-- = 0;
+                       d->currentStringLength--;
+               }
+       }
+}
+
+
 bool table_has_caption(token * t) {
 
        if (t->next && t->next->type == BLOCK_PARA) {
index 7b9e24e11eee6850bd93e14cc3d58f922a9a2efc..6922a9d28331572ad91061b20be12b3717597064 100644 (file)
@@ -245,6 +245,8 @@ void read_table_column_alignments(const char * source, token * table, scratch_pa
 
 void strip_leading_whitespace(token * chain, const char * source);
 
+void trim_trailing_whitespace_d_string(DString * d);
+
 bool table_has_caption(token * table);
 
 char * get_fence_language_specifier(token * fence, const char * source);
index a4e78002050ba289f3e4faf82d681836e5331437..006aea11c79d264c30e27cf0f21a36a996f32d0b 100644 (file)
@@ -3,7 +3,7 @@
 \input{mmd6-beamer-begin}
 
 \begin{frame}[fragile]
-\frametitle{0 }
+\frametitle{0}
 \label{0}
 
 \texttt{*foo*}\{*\}
@@ -19,7 +19,7 @@
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{5 }
+\frametitle{5}
 \label{5}
 
 \begin{lstlisting}[language={*}]
@@ -33,7 +33,7 @@
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{10 }
+\frametitle{10}
 \label{10}
 
 *foo*
index 155a659a1cae36bad16a97892032c6d5916c21de..dfacb8832b479bbc4350a104c5867240648cabb1 100644 (file)
@@ -9,7 +9,7 @@
 \input{mmd6-beamer-begin}
 
 \begin{frame}[fragile]
-\frametitle{MultiMarkdown is a derivative of Markdown }
+\frametitle{MultiMarkdown is a derivative of Markdown}
 \label{multimarkdownisaderivativeofmarkdown}
 
 \href{http://daringfireball.net/projects/markdown/}{Markdown}\footnote{\href{http://daringfireball.net/projects/markdown/}{http:\slash \slash daringfireball.net\slash projects\slash markdown\slash }} is a program and a
@@ -19,7 +19,7 @@ suitable for using on a web page.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{The old way was complicated }
+\frametitle{The old way was complicated}
 \label{theoldwaywascomplicated}
 
 \begin{verbatim}
@@ -41,7 +41,7 @@ creating lists:</p>
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{The new way is easier }
+\frametitle{The new way is easier}
 \label{thenewwayiseasier}
 
 \begin{verbatim}
@@ -61,7 +61,7 @@ syntax. Additionally, for example, creating lists:
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Markdown is designed for people }
+\frametitle{Markdown is designed for people}
 \label{markdownisdesignedforpeople}
 
 The overriding design goal for Markdown's formatting syntax is to make it as
@@ -75,7 +75,7 @@ of inspiration for Markdown's syntax is the format of plain text email.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{But Markdown wasn't complete }
+\frametitle{But Markdown wasn't complete}
 \label{butmarkdownwasntcomplete}
 
 I, and others, loved the spirit and elegance of Markdown, but felt it was
@@ -86,7 +86,7 @@ programmers.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{MultiMarkdown adds several new features }
+\frametitle{MultiMarkdown adds several new features}
 \label{multimarkdownaddsseveralnewfeatures}
 
 \begin{itemize}
@@ -115,7 +115,7 @@ programmers.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{MMD also adds something else{\ldots} }
+\frametitle{MMD also adds something else{\ldots}}
 \label{mmdalsoaddssomethingelse...}
 
 \begin{itemize}
@@ -136,7 +136,7 @@ the LaTeX commands mean --- just have the software installed.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{So, one text file becomes multiple final documents }
+\frametitle{So, one text file becomes multiple final documents}
 \label{soonetextfilebecomesmultiplefinaldocuments}
 
 \begin{figure}[htbp]
@@ -148,7 +148,7 @@ the LaTeX commands mean --- just have the software installed.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{The goal is to separate content from formatting }
+\frametitle{The goal is to separate content from formatting}
 \label{thegoalistoseparatecontentfromformatting}
 
 By focusing on the text content of your document, you can focus on the
@@ -161,7 +161,7 @@ take.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{MultiMarkdown and Mathematics }
+\frametitle{MultiMarkdown and Mathematics}
 \label{multimarkdownandmathematics}
 
 Built into MultiMarkdown is support for mathematical equations. You write
@@ -181,7 +181,7 @@ becomes
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Images are just as easy }
+\frametitle{Images are just as easy}
 \label{imagesarejustaseasy}
 
 \begin{verbatim}
@@ -193,7 +193,7 @@ becomes{\ldots}
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Images are just as easy }
+\frametitle{Images are just as easy}
 \label{imagesarejustaseasy}
 
 \begin{figure}[htbp]
@@ -205,7 +205,7 @@ becomes{\ldots}
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Support for a bibliography is also included }
+\frametitle{Support for a bibliography is also included}
 \label{supportforabibliographyisalsoincluded}
 
 \begin{itemize}
@@ -220,7 +220,7 @@ arguments.~\citep[p. 42]{fake}
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Installation is easy }
+\frametitle{Installation is easy}
 \label{installationiseasy}
 
 \begin{itemize}
@@ -239,7 +239,7 @@ OpenOffice.org (with the proper plug-in installed), etc.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{How do I create a MultiMarkdown document? }
+\frametitle{How do I create a MultiMarkdown document?}
 \label{howdoicreateamultimarkdowndocument}
 
 \begin{itemize}
@@ -257,7 +257,7 @@ MultiMarkdown support.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Why should I mess with this LaTeX stuff? }
+\frametitle{Why should I mess with this LaTeX stuff?}
 \label{whyshouldimesswiththislatexstuff}
 
 MultiMarkdown's support for LaTeX is designed to automatically do the ``right''
@@ -271,7 +271,7 @@ documents without learning all of the complicated LaTeX commands and markup.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{How do I create a fancy PDF? }
+\frametitle{How do I create a fancy PDF?}
 \label{howdoicreateafancypdf}
 
 If you're using LaTeX, and have the proper software installed it's easy:
@@ -289,7 +289,7 @@ file into a pdf.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Where to learn more }
+\frametitle{Where to learn more}
 \label{wheretolearnmore}
 
 \begin{itemize}
@@ -304,7 +304,7 @@ file into a pdf.
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{By the way{\ldots} }
+\frametitle{By the way{\ldots}}
 \label{bytheway...}
 
 This presentation was, of course, written in MultiMarkdown and processed by
index f7f4f4375d160205991dc0d46ab3193f32a31bd6..74564c15e2e40359f252b483d6e71d1a9029d908 100644 (file)
@@ -341,9 +341,9 @@ bar</text:p>
 <text:p><text:bookmark text:name="foobar"/>Table <text:sequence text:name="Table" text:formula="ooow:Table+1" style:num-format="1"> Update Fields to calculate numbers</text:sequence>:foo bar<text:bookmark-end text:name="foobar"/></text:p>
 
 
-<text:h text:outline-level="1"><text:bookmark text:name="foobar"/>foo bar </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foobar"/>foo bar</text:h>
 
-<text:h text:outline-level="3"><text:bookmark text:name="foobar"/>foo bar </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="foobar"/>foo bar</text:h>
 
 <text:h text:outline-level="1"><text:bookmark text:name="foobar"/>foo bar</text:h>
 
index d59159b46ec8034a28bddfd30dc3e67bbc8cafa7..e2431d291776256d048507553dbf32beb44ce059 100644 (file)
@@ -67,9 +67,9 @@
 </tbody>
 </table>
 
-<h1 id="foobar">foo bar </h1>
+<h1 id="foobar">foo bar</h1>
 
-<h3 id="foobar">foo bar </h3>
+<h3 id="foobar">foo bar</h3>
 
 <h1 id="foobar">foo bar</h1>
 
index 22c604733b1bfb85e2173490102d8af4545d1eeb..63fb99a3debf44b1f889859c1c400e841fd10891 100644 (file)
@@ -45,9 +45,9 @@ bar</p>
 | foo | bar |
 [foo bar]</p>
 
-<h1>foo bar </h1>
+<h1>foo bar</h1>
 
-<h3>foo bar </h3>
+<h3>foo bar</h3>
 
 <h1>foo bar</h1>
 
index 992d6dfa6b0d0f09e0c2785628a5e6a51367b546..fe39f32ff3946be7a8372c9f5a7ef46f940713da 100644 (file)
@@ -3,7 +3,7 @@
 <head><title>Abbreviations</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;foo foo&#10;&#10;f.o.o. f.o.o.&#10;&#10;f-o-o f-o-o&#10;&#10;f o o f o o&#10;&#10;fo&apos;o fo&apos;o&#10;&#10;5&#10;&#10;[&gt;bar] [&gt;bar]&#10;&#10;[&gt;b.a.r.] [&gt;b.a.r.]&#10;&#10;[&gt;b-a-r] [&gt;b-a-r]&#10;&#10;[&gt;b a r] [&gt;b a r]&#10;&#10;[&gt;ba&apos;r] [&gt;ba&apos;r]&#10;&#10;10&#10;&#10;foo bar&#10;&#10;foo&#10;bar&#10;&#10;foo  bar&#10;&#10;[&gt;(baz) BAZ]&#10;&#10;&gt; foo bar&#10;&#10;15&#10;&#10;| foo | bar |&#10;| --- | --- |&#10;| foo | bar |&#10;[foo bar]&#10;&#10;"></outline>
-<outline text="foo bar " _note="&#10;"><outline text="foo bar " _note="&#10;"></outline>
+<outline text="foo bar" _note="&#10;"><outline text="foo bar" _note="&#10;"></outline>
 </outline>
 <outline text="foo bar" _note="&#10;![foo bar](http://foobar.net/)&#10;&#10;20&#10;&#10;[^foo and bar]&#10;&#10;[^note]&#10;&#10;* foo&#10;* foo&#10;* foo&#10;&#10;&#10;[&gt;foo]: FOO&#10;[&gt;f.o.o.]: F.O.O.&#10;[&gt;f-o-o]: F-O-O&#10;[&gt;f o o]: F O O&#10;[&gt;fo&apos;o]: FO&apos;O&#10;&#10;[&gt;bar]: BAR&#10;[&gt;b.a.r.]: B.A.R.&#10;[&gt;b-a-r]: B-A-R&#10;[&gt;b a r]: B A R&#10;[&gt;ba&apos;r]: BA&apos;R&#10;&#10;[&gt;foo bar]: FOO BAR&#10;&#10;[^note]: foo and bar&#10;"></outline>
 <outline text="Metadata">
index f8fa664e9dc005546c0618a4921d7f235064da95..6be7739e0582a9fab7cc7eba1e4dfd5c84b123c6 100644 (file)
@@ -81,10 +81,10 @@ fo'o fo'o
 \end{minipage}
 \end{table}
 
-\part{foo bar }
+\part{foo bar}
 \label{foobar}
 
-\section{foo bar }
+\section{foo bar}
 \label{foobar}
 
 \part{foo bar}
index 74ab6bc7eb3979b1701580ed8a7227c95ca99fef..dcdc0b74546536d40f142ccb6a83ef918ec708bd 100644 (file)
@@ -278,21 +278,21 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="1"><text:bookmark text:name="bar"/>foo  </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="bar"/>foo</text:h>
 
 <text:h text:outline-level="1"><text:bookmark text:name="bar"/>foo</text:h>
 
 <text:h text:outline-level="1"><text:bookmark text:name="foobarbat"/>foo <text:a xlink:type="simple" xlink:href="#bat">bar</text:a></text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="bat"/>foo <text:a xlink:type="simple" xlink:href="#bar">bar</text:a> </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="bat"/>foo <text:a xlink:type="simple" xlink:href="#bar">bar</text:a></text:h>
 
 <text:h text:outline-level="1"><text:bookmark text:name="baz"/>foo <text:a xlink:type="simple" xlink:href="#bat">bar</text:a></text:h>
 
 <text:p text:style-name="Standard">5</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="bar"/>foo </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="bar"/>foo</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="foobar"/><text:span text:style-name="MMD-Italic">foo</text:span> bar </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foobar"/><text:span text:style-name="MMD-Italic">foo</text:span> bar</text:h>
 
 <text:h text:outline-level="1"><text:bookmark text:name="foobar"/><text:span text:style-name="MMD-Italic">foo
 bar</text:span></text:h>
index 3e0dc7a8224538b9fcf21b2879c90331e4154f21..fec207babdfde69ac8eac0ea2cc830388e63bd59 100644 (file)
@@ -6,13 +6,13 @@
 </head>
 <body>
 
-<h1 id="bar">foo  </h1>
+<h1 id="bar">foo</h1>
 
 <h1 id="bar">foo</h1>
 
 <h1 id="foobarbat">foo <a href="#bat">bar</a></h1>
 
-<h1 id="bat">foo <a href="#bar">bar</a> </h1>
+<h1 id="bat">foo <a href="#bar">bar</a></h1>
 
 <h1 id="baz">foo <a href="#bat">bar</a></h1>
 
@@ -20,7 +20,7 @@
 
 <h1 id="bar">foo </h1>
 
-<h1 id="foobar"><em>foo</em> bar </h1>
+<h1 id="foobar"><em>foo</em> bar</h1>
 
 <h1 id="foobar"><em>foo
 bar</em></h1>
index 9d3b17a2b017a397530763c43e4b85fa9c708dd9..723f3682113658f11b010a8fd46812e8dadc206a 100644 (file)
@@ -1,7 +1,7 @@
 <p>Title:      Advanced Headers
 latex config:  article</p>
 
-<h1>foo [bar] </h1>
+<h1>foo [bar]</h1>
 
 <h1>foo[bar]</h1>
 
@@ -15,7 +15,7 @@ latex config: article</p>
 
 <h1>foo [bar]</h1>
 
-<h1><em>foo</em> bar </h1>
+<h1><em>foo</em> bar</h1>
 
 <h1><em>foo
 bar</em></h1>
index d0db7183bde9f93653f6a71cfd1d7ea16d1b96e2..b7898ad75597da5970aa12354e02f39cf9b3e115 100644 (file)
@@ -3,13 +3,13 @@
 <head><title>Advanced Headers</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;"></outline>
-<outline text="foo [bar] " _note="&#10;"></outline>
+<outline text="foo [bar]" _note="&#10;"></outline>
 <outline text="foo[bar]" _note="&#10;"></outline>
 <outline text="foo [bar][bat]" _note="&#10;"></outline>
 <outline text="foo [bar] [bat]" _note="&#10;"></outline>
 <outline text="foo [bar][bat][baz]" _note="&#10;5&#10;&#10;"></outline>
 <outline text="foo [bar]" _note="&#10;"></outline>
-<outline text="*foo* bar " _note="&#10;"></outline>
+<outline text="*foo* bar" _note="&#10;"></outline>
 <outline text="*foo&#10;bar*" _note="&#10;[bar]&#10;&#10;[foo][bar]&#10;"></outline>
 <outline text="Metadata">
 <outline text="title" _note="Advanced Headers"/>
index 73a48512359cc558b203bbb9de7acac48ba7d63d..6672ccfd0f1638977bd486e32f939c223218eaf7 100644 (file)
@@ -2,7 +2,7 @@
 \def\mytitle{Advanced Headers}
 \input{mmd6-article-begin}
 
-\part{foo  }
+\part{foo}
 \label{bar}
 
 \part{foo}
@@ -11,7 +11,7 @@
 \part{foo bar (\autoref{bat})}
 \label{foobarbat}
 
-\part{foo bar (\autoref{bar}) }
+\part{foo bar (\autoref{bar})}
 \label{bat}
 
 \part{foo bar (\autoref{bat})}
 
 5
 
-\part{foo }
+\part{foo}
 \label{bar}
 
-\part{\emph{foo} bar }
+\part{\emph{foo} bar}
 \label{foobar}
 
 \part{\emph{foo
index a366b792edb0f7e0986dc0ad209d79d7a5f20ae6..5278123d3fd62e40b113ac57e5a9f3def5177ff8 100644 (file)
@@ -280,9 +280,9 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 <office:text>
 <text:p text:style-name="Standard">foo</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="headingfoo"/>Heading <text:span text:style-name="MMD-Italic">foo</text:span> </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="headingfoo"/>Heading <text:span text:style-name="MMD-Italic">foo</text:span></text:h>
 
-<text:h text:outline-level="2"><text:bookmark text:name="heading"/>Heading </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="heading"/>Heading</text:h>
 
 <text:p text:style-name="Standard">foo
 bar</text:p>
index d8fa6c4da7717962fa65639c4c35e598384e7949..1952b510c951b9d2f66b721d09d1b14e3f48b0e0 100644 (file)
@@ -8,9 +8,9 @@
 
 <p>foo</p>
 
-<h1 id="headingfoo">Heading <em>foo</em> </h1>
+<h1 id="headingfoo">Heading <em>foo</em></h1>
 
-<h2 id="heading">Heading </h2>
+<h2 id="heading">Heading</h2>
 
 <p>foo
 bar</p>
index 1f79fa78eadf8ab358043dc1fd6c84438646b9b2..0bd05119a951abac89e842d86c553d22871d6457 100644 (file)
@@ -3,9 +3,9 @@ latex config:   article</p>
 
 <p>foo</p>
 
-<h1>Heading <em>foo</em> </h1>
+<h1>Heading <em>foo</em></h1>
 
-<h2>Heading </h2>
+<h2>Heading</h2>
 
 <p>foo
 bar</p>
index e1264fdd81768452927fa8fee7a6334098916804..b2a58fe8a6f0efa53d0e5f76087b8fd564c4beb9 100644 (file)
@@ -3,7 +3,7 @@
 <head><title>Basic Blocks</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;foo&#10;&#10;"></outline>
-<outline text="Heading *foo* " _note="&#10;"><outline text="Heading " _note="&#10;foo&#10;bar&#10;&#10;5&#10;&#10;foo&#10;&#9;bar&#10;&#10;foo&#10;&#9;&#9;bar&#10;&#10;"></outline>
+<outline text="Heading *foo*" _note="&#10;"><outline text="Heading" _note="&#10;foo&#10;bar&#10;&#10;5&#10;&#10;foo&#10;&#9;bar&#10;&#10;foo&#10;&#9;&#9;bar&#10;&#10;"></outline>
 </outline>
 <outline text="Metadata">
 <outline text="title" _note="Basic Blocks"/>
index 0f4068c93b25dcd5d061143ae8a6797ae20d9e45..6c3646891f6a88c8ac473ba6f01b3987cf2c7f71 100644 (file)
@@ -4,10 +4,10 @@
 
 foo
 
-\part{Heading \emph{foo} }
+\part{Heading \emph{foo}}
 \label{headingfoo}
 
-\chapter{Heading }
+\chapter{Heading}
 \label{heading}
 
 foo
index 620170d4c0c4400e9499f8dd97789b43016ab10a..4051b2251cd0f3185b947f23b0e181393361a158 100644 (file)
@@ -278,7 +278,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="1"><text:bookmark text:name="citep"/>citep </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="citep"/>citep</text:h>
 
 <text:p text:style-name="Standard"><text:note text:id="cite1" text:note-class="endnote"><text:note-body><text:p text:style-name="Footnote">John Doe. <text:span text:style-name="MMD-Italic">A Totally Fake Book 1</text:span>. Vanity Press, 2006.</text:p></text:note-body></text:note></text:p>
 
@@ -292,7 +292,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 
 <text:p text:style-name="Standard"><text:span text:style-name="Footnote_20_anchor"><text:note-ref text:note-class="endnote" text:reference-format="text" text:ref-name="cite1">1</text:note-ref></text:span><text:note text:id="cite2" text:note-class="endnote"><text:note-body><text:p text:style-name="Footnote">John Doe. <text:span text:style-name="MMD-Italic">A Totally Fake Book 2</text:span>. Vanity Press, 2006.</text:p></text:note-body></text:note></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="citet"/>citet </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="citet"/>citet</text:h>
 
 <text:p text:style-name="Standard"><text:span text:style-name="Footnote_20_anchor"><text:note-ref text:note-class="endnote" text:reference-format="text" text:ref-name="cite1">1</text:note-ref></text:span></text:p>
 
index 597471468446532e1d07f1b050e9b542ee7d7dbe..2dcd7c79d3a8388b9211e52107736af101085bc5 100644 (file)
@@ -6,7 +6,7 @@
 </head>
 <body>
 
-<h1 id="citep">citep </h1>
+<h1 id="citep">citep</h1>
 
 <p><a href="#cn:1" id="cnref:1" title="see citation" class="citation">(1)</a></p>
 
@@ -20,7 +20,7 @@
 
 <p><a href="#cn:1" title="see citation" class="citation">(1)</a><a href="#cn:2" id="cnref:2" title="see citation" class="citation">(2)</a></p>
 
-<h1 id="citet">citet </h1>
+<h1 id="citet">citet</h1>
 
 <p><a href="#cn:1" title="see citation" class="citation">(1)</a></p>
 
index c7ad0c72a7564781bbb87c28fc03bf7fdf49f11e..8cfa7bd9d59e075a9763c5f68b24f862cd333207 100644 (file)
@@ -1,7 +1,7 @@
 <p>Title:      Citations
 latex config:  article</p>
 
-<h1>citep </h1>
+<h1>citep</h1>
 
 <p>[#foo1]</p>
 
@@ -15,7 +15,7 @@ latex config: article</p>
 
 <p>[#foo1][#foo2]</p>
 
-<h1>citet </h1>
+<h1>citet</h1>
 
 <p>[#foo1;]</p>
 
index d5c482d4da21f650158479fa6bfb69cb0d3e63ab..bf64c4d67ef170bf8477d13acdaeebc8f2f2d27c 100644 (file)
@@ -3,8 +3,8 @@
 <head><title>Citations</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;"></outline>
-<outline text="citep " _note="&#10;[#foo1]&#10;&#10;[#foo1][]&#10;&#10;[p. 123][#foo1]&#10;&#10;[][#foo1]&#10;&#10;[foo\]\[bar][#foo1]&#10;&#10;[#foo1][#foo2]&#10;&#10;&#10;"></outline>
-<outline text="citet " _note="&#10;[#foo1;]&#10;&#10;[#foo1;][]&#10;&#10;[p. 123][#foo1;]&#10;&#10;[][#foo1;]&#10;&#10;[foo\]\[bar][#foo1;]&#10;&#10;[#foo1;][#foo2;]&#10;&#10;&#10;[Not Cited][#foo3]&#10;&#10;&#10;[#foo1]: John Doe. *A Totally Fake Book 1*.  Vanity Press, 2006.&#10;&#10;[#foo2]: John Doe. *A Totally Fake Book 2*.  Vanity Press, 2006.&#10;&#10;[#foo3]: John Doe. *A Totally Fake Book 3*.  Vanity Press, 2006.&#10;"></outline>
+<outline text="citep" _note="&#10;[#foo1]&#10;&#10;[#foo1][]&#10;&#10;[p. 123][#foo1]&#10;&#10;[][#foo1]&#10;&#10;[foo\]\[bar][#foo1]&#10;&#10;[#foo1][#foo2]&#10;&#10;&#10;"></outline>
+<outline text="citet" _note="&#10;[#foo1;]&#10;&#10;[#foo1;][]&#10;&#10;[p. 123][#foo1;]&#10;&#10;[][#foo1;]&#10;&#10;[foo\]\[bar][#foo1;]&#10;&#10;[#foo1;][#foo2;]&#10;&#10;&#10;[Not Cited][#foo3]&#10;&#10;&#10;[#foo1]: John Doe. *A Totally Fake Book 1*.  Vanity Press, 2006.&#10;&#10;[#foo2]: John Doe. *A Totally Fake Book 2*.  Vanity Press, 2006.&#10;&#10;[#foo3]: John Doe. *A Totally Fake Book 3*.  Vanity Press, 2006.&#10;"></outline>
 <outline text="Metadata">
 <outline text="title" _note="Citations"/>
 <outline text="latexconfig" _note="article"/>
index 14a5b4b7b33c1b7dcc7c8a0fb1d534ec49ec087e..010ce821459758ea412855a2321e01069950bb65 100644 (file)
@@ -2,7 +2,7 @@
 \def\mytitle{Citations}
 \input{mmd6-article-begin}
 
-\part{citep }
+\part{citep}
 \label{citep}
 
 ~\citep{foo1}
@@ -17,7 +17,7 @@
 
 ~\citep{foo1}~\citep{foo2}
 
-\part{citet }
+\part{citet}
 \label{citet}
 
 \citet{foo1}
index f8c12e236ebbf12160d83a55519517caba0fc51c..8423327816ab0210bcccc7cc5af0cb1c4aaf9c54 100644 (file)
@@ -278,25 +278,25 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="1"><text:bookmark text:name="asection"/>A Section </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="asection"/>A Section</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="109canstartwithdigit"/>109&amp;*&amp;#()^ Can Start With Digit </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="109canstartwithdigit"/>109&amp;*&amp;#()^ Can Start With Digit</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="stripoutcharacters"/>Strip out &amp;%^ characters &amp;*^ </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="stripoutcharacters"/>Strip out &amp;%^ characters &amp;*^</text:h>
 
 <text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="#asection">A Section</text:a>.</text:p>
 
-<text:h text:outline-level="2"><text:bookmark text:name="1cross-references:specialcharacters"/>1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^ </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="1cross-references:specialcharacters"/>1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^</text:h>
 
 <text:p text:style-name="Standard">5</text:p>
 
 <text:p text:style-name="Standard">And now, link to <text:a xlink:type="simple" xlink:href="#1cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^</text:a></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="Заголовокпо-русски"/>Заголовок по-русски </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="Заголовокпо-русски"/>Заголовок по-русски</text:h>
 
 <text:p text:style-name="Standard">И ссылка на <text:a xlink:type="simple" xlink:href="#Заголовокпо-русски">Заголовок по-русски</text:a>.</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="test的multibyte"/>Test 的 Multibyte </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="test的multibyte"/>Test 的 Multibyte</text:h>
 
 <text:p text:style-name="Standard">10</text:p>
 </office:text>
index ab8e1e59e1d7c413de0e2ae94d3127f4167179a5..27b42499489bb92761d72197b6d7b32b90eef3fd 100644 (file)
@@ -6,25 +6,25 @@
 </head>
 <body>
 
-<h1 id="asection">A Section </h1>
+<h1 id="asection">A Section</h1>
 
-<h1 id="109canstartwithdigit">109&amp;*&amp;#()^ Can Start With Digit </h1>
+<h1 id="109canstartwithdigit">109&amp;*&amp;#()^ Can Start With Digit</h1>
 
-<h1 id="stripoutcharacters">Strip out &amp;%^ characters &amp;*^ </h1>
+<h1 id="stripoutcharacters">Strip out &amp;%^ characters &amp;*^</h1>
 
 <p><a href="#asection">A Section</a>.</p>
 
-<h2 id="1cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^ </h2>
+<h2 id="1cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^</h2>
 
 <p>5</p>
 
 <p>And now, link to <a href="#1cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^</a></p>
 
-<h1 id="Заголовокпо-русски">Заголовок по-русски </h1>
+<h1 id="Заголовокпо-русски">Заголовок по-русски</h1>
 
 <p>И ссылка на <a href="#Заголовокпо-русски">Заголовок по-русски</a>.</p>
 
-<h1 id="test的multibyte">Test 的 Multibyte </h1>
+<h1 id="test的multibyte">Test 的 Multibyte</h1>
 
 <p>10</p>
 
index ccf5fb95f819b985cd3b85c98ba7c2d07ffc6093..32c59aa702d12f105d3b49e429a837ea2d313a8c 100644 (file)
@@ -1,24 +1,24 @@
 <p>Title:      Cross-References
 latex config:  article</p>
 
-<h1>A Section </h1>
+<h1>A Section</h1>
 
-<h1>109&amp;*&amp;#()^ Can Start With Digit </h1>
+<h1>109&amp;*&amp;#()^ Can Start With Digit</h1>
 
-<h1>Strip out &amp;%^ characters &amp;*^ </h1>
+<h1>Strip out &amp;%^ characters &amp;*^</h1>
 
 <p>[A Section].</p>
 
-<h2>1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^ </h2>
+<h2>1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^</h2>
 
 <p>5</p>
 
 <p>And now, link to [1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^][]</p>
 
-<h1>Заголовок по-русски </h1>
+<h1>Заголовок по-русски</h1>
 
 <p>И ссылка на [Заголовок по-русски].</p>
 
-<h1>Test 的 Multibyte </h1>
+<h1>Test 的 Multibyte</h1>
 
 <p>10</p>
index b432b3f158dccf52032c35477817b47c9a4d8cee..9f786319f1230e1a11d44e9b2c1d604b4d195e68 100644 (file)
@@ -3,12 +3,12 @@
 <head><title>Cross-References</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;"></outline>
-<outline text="A Section " _note="&#10;"></outline>
-<outline text="109&amp;*&amp;#()^ Can Start With Digit " _note="&#10;"></outline>
-<outline text="Strip out &amp;%^ characters &amp;*^ " _note="&#10;[A Section].&#10;&#10;"><outline text="1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^ " _note="&#10;5&#10;&#10;And now, link to [1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^][]&#10;&#10;"></outline>
+<outline text="A Section" _note="&#10;"></outline>
+<outline text="109&amp;*&amp;#()^ Can Start With Digit" _note="&#10;"></outline>
+<outline text="Strip out &amp;%^ characters &amp;*^" _note="&#10;[A Section].&#10;&#10;"><outline text="1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^" _note="&#10;5&#10;&#10;And now, link to [1 Cross-References: Special Characters!@#$%&amp;*()&lt;&gt;^][]&#10;&#10;"></outline>
 </outline>
-<outline text="Заголовок по-русски " _note="&#10;И ссылка на [Заголовок по-русски].&#10;&#10;"></outline>
-<outline text="Test 的 Multibyte " _note="&#10;10&#10;"></outline>
+<outline text="Заголовок по-русски" _note="&#10;И ссылка на [Заголовок по-русски].&#10;&#10;"></outline>
+<outline text="Test 的 Multibyte" _note="&#10;10&#10;"></outline>
 <outline text="Metadata">
 <outline text="title" _note="Cross-References"/>
 <outline text="latexconfig" _note="article"/>
index ebc28b43b1efeb131316282dc207e283a3288a6b..b58a8aa0d4eca4a1e8a27b707b7b4d372b4d3041 100644 (file)
@@ -2,30 +2,30 @@
 \def\mytitle{Cross-References}
 \input{mmd6-article-begin}
 
-\part{A Section }
+\part{A Section}
 \label{asection}
 
-\part{109\&*\&\#()\^{} Can Start With Digit }
+\part{109\&*\&\#()\^{} Can Start With Digit}
 \label{109canstartwithdigit}
 
-\part{Strip out \&\%\^{} characters \&*\^{} }
+\part{Strip out \&\%\^{} characters \&*\^{}}
 \label{stripoutcharacters}
 
 A Section (\autoref{asection}).
 
-\chapter{1 Cross-References: Special Characters!@\#\$\%\&*()<>\^{} }
+\chapter{1 Cross-References: Special Characters!@\#\$\%\&*()<>\^{}}
 \label{1cross-references:specialcharacters}
 
 5
 
 And now, link to 1 Cross-References: Special Characters!@\#\$\%\&*()<>\^{} (\autoref{1cross-references:specialcharacters})
 
-\part{Заголовок по-русски }
+\part{Заголовок по-русски}
 \label{Заголовокпо-русски}
 
 И ссылка на Заголовок по-русски (\autoref{Заголовокпо-русски}).
 
-\part{Test 的 Multibyte }
+\part{Test 的 Multibyte}
 \label{test的multibyte}
 
 10
index ff18e4a5ea0de9f4020c7331880f506a393c5159..1b7fa476629fe3a586d8d0d9ca5cb2b4d770feaa 100644 (file)
@@ -71,11 +71,11 @@ foo</p>
 
 <h2>bar</h2>
 
-<h3>baz </h3>
+<h3>baz</h3>
 
 <h4>foo        ##</h4>
 
-<h5>bar                ##      </h5>
+<h5>bar                ##</h5>
 
 <h6>baz</h6>
 
index 2c6c307b8cc25602a1a616ca040b0fa9dfc2ca35..37acf0741a3dbb1c0a76f672f5613ffb1ae880ff 100644 (file)
@@ -292,7 +292,7 @@ list</text:p></text:list-item>
 
 </text:list>
 
-<text:h text:outline-level="2"><text:bookmark text:name="escaped"/>:Escapes </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="escaped"/>:Escapes</text:h>
 
 <text:p text:style-name="Standard">[>MM]: MultiMarkdown</text:p>
 
index b6ec57fd894640d79888c0932e452a05764b6f79..6e11797a8fa7df34c5b049ad990540296e5cefb2 100644 (file)
@@ -15,7 +15,7 @@ Collection of test cases identified by \href{http://lcamtuf.coredump.cx/afl/}{Am
 
 \end{itemize}
 
-\chapter{:Escapes }
+\chapter{:Escapes}
 \label{escaped}
 
 [>MM]: MultiMarkdown
index 3531076744706bee455e5f098dc0e94d6637a1f8..7b552f3c359cef0f867b7758bbb3295ff7b85900 100644 (file)
@@ -295,7 +295,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 
 <text:p text:style-name="Standard">10</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="foo2"/>foo2 </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foo2"/>foo2</text:h>
 
 <text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="#foo2">foo</text:a></text:p>
 
index 2cc61958b60a3812a4988f6015244818f99e9906..d6cf2d66b0bd6f35c61ed876332104b593b60559 100644 (file)
@@ -62,7 +62,7 @@
 
 <div>
 
-<h1 id="foo2">foo2 </h1>
+<h1 id="foo2">foo2</h1>
 
 <p><a href="#foo2">foo</a></p>
 
index 38cb03fd548cc13be9768daba96d21202969b18f..b92dcd91cd5e2bbd52032e49878b65d49751a221 100644 (file)
@@ -57,7 +57,7 @@ latex config: article</p>
 
 <div>
 
-<h1>foo2 </h1>
+<h1>foo2</h1>
 
 <p>[foo][foo2]</p>
 
index 4d7e2d99d0a255fb5ba4839c8c2d0dae1bc6c667..eb00cb7812de2fd20dc0cd3538ddbeeb6a197896 100644 (file)
@@ -3,7 +3,7 @@
 <head><title>HTML Blocks</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;&lt;del&gt;*bar1*&lt;/del&gt;&#10;&#10;&lt;del&gt;&#10;*bar2*&#10;&lt;/del&gt;&#10;&#10;foo&#10;&lt;del&gt;&#10;*bar3*&#10;&lt;/del&gt;&#10;&#10;&lt;del&gt;&#10;*bar4*&#10;&#10;&lt;/del&gt;&#10;&#10;&#10;&lt;del&gt;&#10;&#10;*bar5*&#10;&#10;&lt;/del&gt;&#10;&#10;5&#10;&#10;&lt;div&gt;*bar1*&lt;/div&gt;&#10;&#10;&lt;div&gt;&#10;*bar2*&#10;&lt;/div&gt;&#10;&#10;foo&#10;&lt;div&gt;&#10;*bar3*&#10;&lt;/div&gt;&#10;&#10;&lt;div&gt;&#10;*bar4*&#10;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;*bar5*&#10;&#10;&lt;/div&gt;&#10;&#10;10&#10;&#10;&lt;div&gt;&#10;# foo1 #&#10;[foo][foo1]&#10;&lt;/div&gt;&#10;&#10;&lt;div&gt;&#10;&#10;"></outline>
-<outline text="foo2 " _note="&#10;[foo][foo2]&#10;&#10;&lt;/div&gt;&#10;&#10;&lt;!-- This is a *comment* --&gt;&#10;&#10;&lt;!-- This is a&#10;longer&#10; *comment* --&gt;&#10;&#10;&lt;!--&#10;This&#10;&#10;is&#10;&#10;a comment&#10;--&gt;&#10;&#10;15&#10;&#10;&lt;!-- This is not a&#10;&#10;*comment* --&gt;&#10;&#10;&lt;div&gt;&#10;&lt;div&gt;&#10;**foo1**&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;**foo2**&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;&#10;**foo3**&#10;&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;**foo4**&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;20&#10;&#10;&lt;div&gt;&#10;&lt;div&gt;&#10;&#10;**foo5**&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;"></outline>
+<outline text="foo2" _note="&#10;[foo][foo2]&#10;&#10;&lt;/div&gt;&#10;&#10;&lt;!-- This is a *comment* --&gt;&#10;&#10;&lt;!-- This is a&#10;longer&#10; *comment* --&gt;&#10;&#10;&lt;!--&#10;This&#10;&#10;is&#10;&#10;a comment&#10;--&gt;&#10;&#10;15&#10;&#10;&lt;!-- This is not a&#10;&#10;*comment* --&gt;&#10;&#10;&lt;div&gt;&#10;&lt;div&gt;&#10;**foo1**&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;**foo2**&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;&#10;**foo3**&#10;&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;div&gt;&#10;&#10;&lt;div&gt;&#10;**foo4**&#10;&lt;/div&gt;&#10;&#10;&lt;/div&gt;&#10;&#10;20&#10;&#10;&lt;div&gt;&#10;&lt;div&gt;&#10;&#10;**foo5**&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;"></outline>
 <outline text="Metadata">
 <outline text="title" _note="HTML Blocks"/>
 <outline text="latexconfig" _note="article"/>
index b4f6a298f2b5c96b723da9cbec3be6e9bdf95f0a..3b2b9db47b016f05123b082c1aa986dd3047ceb3 100644 (file)
@@ -19,7 +19,7 @@ foo
 
 10
 
-\part{foo2 }
+\part{foo2}
 \label{foo2}
 
 foo (\autoref{foo2})
index cc329da70fd95fdaf782436c037e06fca30a1c96..cdfd4809e5f63afecc416f163e6381ba5660bff6 100644 (file)
@@ -278,13 +278,13 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="foo"/>foo</text:h>
 
 <text:p text:style-name="Preformatted Text"># foo #<text:line-break/></text:p>
 
@@ -298,23 +298,23 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 
 <text:p text:style-name="Standard"># foo #</text:p>
 
-<text:h text:outline-level="2"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="foo"/>foo</text:h>
 
 <text:p text:style-name="Standard">10</text:p>
 
-<text:h text:outline-level="3"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="4"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="4"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="5"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="5"><text:bookmark text:name="foo"/>foo</text:h>
 
-<text:h text:outline-level="6"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="6"><text:bookmark text:name="foo"/>foo</text:h>
 
 <text:p text:style-name="Standard">####### foo #######</text:p>
 
 <text:p text:style-name="Standard">15</text:p>
 
-<text:h text:outline-level="6"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="6"><text:bookmark text:name="foo"/>foo</text:h>
 </office:text>
 </office:body>
 </office:document>
index c2ae6359b7bad37721b4f3ee8c1f7213f358f1cf..60794212b46366c654562911875d4f1eaff45e84 100644 (file)
@@ -6,13 +6,13 @@
 </head>
 <body>
 
-<h1 id="foo">foo </h1>
+<h1 id="foo">foo</h1>
 
-<h1 id="foo">foo </h1>
+<h1 id="foo">foo</h1>
 
-<h1 id="foo">foo </h1>
+<h1 id="foo">foo</h1>
 
-<h1 id="foo">foo </h1>
+<h1 id="foo">foo</h1>
 
 <pre><code># foo #
 </code></pre>
 
 <p># foo #</p>
 
-<h2 id="foo">foo </h2>
+<h2 id="foo">foo</h2>
 
 <p>10</p>
 
-<h3 id="foo">foo </h3>
+<h3 id="foo">foo</h3>
 
-<h4 id="foo">foo </h4>
+<h4 id="foo">foo</h4>
 
-<h5 id="foo">foo </h5>
+<h5 id="foo">foo</h5>
 
-<h6 id="foo">foo </h6>
+<h6 id="foo">foo</h6>
 
 <p>####### foo #######</p>
 
 <p>15</p>
 
-<h6 id="foo">foo </h6>
+<h6 id="foo">foo</h6>
 
 </body>
 </html>
index 6959dfaaa524b4e0311fd5910fa76778910d4273..99f850f6086354115b881131af26e1a644b8cb9d 100644 (file)
@@ -1,13 +1,13 @@
 <p>Title:      Headers
 latex config:  article</p>
 
-<h1>foo </h1>
+<h1>foo</h1>
 
-<h1>foo </h1>
+<h1>foo</h1>
 
-<h1>foo </h1>
+<h1>foo</h1>
 
-<h1>foo </h1>
+<h1>foo</h1>
 
 <pre><code># foo #
 </code></pre>
@@ -22,20 +22,20 @@ latex config:       article</p>
 
 <p># foo #</p>
 
-<h2>foo </h2>
+<h2>foo</h2>
 
 <p>10</p>
 
-<h3>foo </h3>
+<h3>foo</h3>
 
-<h4>foo </h4>
+<h4>foo</h4>
 
-<h5>foo </h5>
+<h5>foo</h5>
 
-<h6>foo </h6>
+<h6>foo</h6>
 
 <p>####### foo #######</p>
 
 <p>15</p>
 
-<h6>foo </h6>
+<h6>foo</h6>
index 536424abf8c53b9baca9c6388883c55275b317f5..02d97b12852f134a1f8117be228cb3c6ee299c5a 100644 (file)
@@ -3,12 +3,12 @@
 <head><title>Headers</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;"></outline>
-<outline text="foo " _note="&#10;"></outline>
-<outline text="foo " _note="&#10;"></outline>
-<outline text="foo " _note="&#10;"></outline>
-<outline text="foo " _note="&#10;    # foo #&#10;&#10;5&#10;&#10;#foo#&#10;&#10;#foo #&#10;&#10;"></outline>
-<outline text="foo # bar" _note="&#10;\# foo #&#10;&#10;"><outline text="foo " _note="&#10;10&#10;&#10;"><outline text="foo " _note="&#10;"><outline text="foo " _note="&#10;"><outline text="foo " _note="&#10;"><outline text="foo " _note="&#10;####### foo #######&#10;&#10;15&#10;&#10;"></outline>
-<outline text="foo " _note=""></outline>
+<outline text="foo" _note="&#10;"></outline>
+<outline text="foo" _note="&#10;"></outline>
+<outline text="foo" _note="&#10;"></outline>
+<outline text="foo" _note="&#10;    # foo #&#10;&#10;5&#10;&#10;#foo#&#10;&#10;#foo #&#10;&#10;"></outline>
+<outline text="foo # bar" _note="&#10;\# foo #&#10;&#10;"><outline text="foo" _note="&#10;10&#10;&#10;"><outline text="foo" _note="&#10;"><outline text="foo" _note="&#10;"><outline text="foo" _note="&#10;"><outline text="foo" _note="&#10;####### foo #######&#10;&#10;15&#10;&#10;"></outline>
+<outline text="foo" _note=""></outline>
 </outline>
 </outline>
 </outline>
index 3b192fdb70ed20f2945fc735648f9acdad57d306..c5f157069a8502bfab59fed7488e952ada9f2f58 100644 (file)
@@ -2,16 +2,16 @@
 \def\mytitle{Headers}
 \input{mmd6-article-begin}
 
-\part{foo }
+\part{foo}
 \label{foo}
 
-\part{foo }
+\part{foo}
 \label{foo}
 
-\part{foo }
+\part{foo}
 \label{foo}
 
-\part{foo }
+\part{foo}
 \label{foo}
 
 \begin{verbatim}
 
 \# foo \#
 
-\chapter{foo }
+\chapter{foo}
 \label{foo}
 
 10
 
-\section{foo }
+\section{foo}
 \label{foo}
 
-\subsection{foo }
+\subsection{foo}
 \label{foo}
 
-\subsubsection{foo }
+\subsubsection{foo}
 \label{foo}
 
-\paragraph{foo }
+\paragraph{foo}
 \label{foo}
 
 \#\#\#\#\#\#\# foo \#\#\#\#\#\#\#
 
 15
 
-\paragraph{foo }
+\paragraph{foo}
 \label{foo}
 
 \input{mmd6-article-footer}
index 3485b51ec8653fd87b0fa4cfb5dd44144c3ac30a..3ee9d3740b4c24b293517cc8b2fe60dfe5d05fc1 100644 (file)
@@ -283,7 +283,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 identify common structures that are not supported yet &#8211; particularly useful
 when developing a new output format.</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="basicblocks"/>Basic Blocks </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="basicblocks"/>Basic Blocks</text:h>
 
 <text:p text:style-name="Standard">paragraph</text:p>
 
@@ -309,7 +309,7 @@ list</text:p></text:list-item>
 
 <text:p text:style-name="Standard"><text:span text:style-name="MMD-Italic">emph</text:span> and <text:span text:style-name="MMD-Bold">strong</text:span> and <text:span text:style-name="MMD-Bold"><text:span text:style-name="MMD-Italic">both</text:span></text:span></text:p>
 
-<text:h text:outline-level="2"><text:bookmark text:name="escaped"/>Escapes </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="escaped"/>Escapes</text:h>
 
 <text:list text:style-name="L2">
 <text:list-item>
@@ -323,7 +323,7 @@ list</text:p></text:list-item>
 
 </text:list>
 
-<text:h text:outline-level="1"><text:bookmark text:name="footnotes"/>Footnotes </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="footnotes"/>Footnotes</text:h>
 
 <text:p text:style-name="Standard">Foo.<text:note text:id="fn1" text:note-class="footnote"><text:note-body><text:p text:style-name="Footnote">This is an inline footnote</text:p></text:note-body></text:note></text:p>
 
@@ -333,7 +333,7 @@ list</text:p></text:list-item>
 
 <text:p text:style-name="Standard">Cite.<text:note text:id="cite2" text:note-class="endnote"><text:note-body><text:p text:style-name="Footnote">bar</text:p></text:note-body></text:note></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="linksandimages"/>Links and Images </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="linksandimages"/>Links and Images</text:h>
 
 <text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://foo.net/">link</text:a> and <text:a xlink:type="simple" xlink:href="http://bar.net" office:name="title">link</text:a></text:p>
 
@@ -354,7 +354,7 @@ draw:z-index="0" draw:style-name="fr1" svg:width="40pt">
 
 <text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="#bar">bar</text:a></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="math"/>Math </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="math"/>Math</text:h>
 
 <text:p text:style-name="Standard">foo <text:span text:style-name="math">\({e}^{i\pi }+1=0\)</text:span> bar</text:p>
 
@@ -366,11 +366,11 @@ draw:z-index="0" draw:style-name="fr1" svg:width="40pt">
 
 <text:p text:style-name="Standard"><text:span text:style-name="math">$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$</text:span></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="smartquotes"/>Smart Quotes </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="smartquotes"/>Smart Quotes</text:h>
 
 <text:p text:style-name="Standard">&#8220;foo&#8221; and &#8216;bar&#8217; &#8211; with &#8212; dashes&#8230;</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="criticmarkup"/>CriticMarkup </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="criticmarkup"/>CriticMarkup</text:h>
 
 <text:p text:style-name="Standard"><text:span text:style-name="Underline">foo</text:span></text:p>
 
@@ -382,7 +382,7 @@ draw:z-index="0" draw:style-name="fr1" svg:width="40pt">
 
 <text:p text:style-name="Standard"><text:span text:style-name="Highlight">bar</text:span></text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="definitionlists"/>Definition Lists </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="definitionlists"/>Definition Lists</text:h>
 
 <text:p><text:span text:style-name="MMD-Bold">foo</text:span></text:p>
 <text:p><text:span text:style-name="MMD-Bold">bar</text:span></text:p>
@@ -390,11 +390,11 @@ draw:z-index="0" draw:style-name="fr1" svg:width="40pt">
 
 <text:p text:style-name="Quotations">baz bat*</text:p>
 
-<text:h text:outline-level="1"><text:bookmark text:name="horizontalrules"/>Horizontal Rules </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="horizontalrules"/>Horizontal Rules</text:h>
 
 <text:p text:style-name="Horizontal_20_Line"/>
 
-<text:h text:outline-level="1"><text:bookmark text:name="glossary"/>Glossary </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="glossary"/>Glossary</text:h>
 
 <text:p text:style-name="Standard">term<text:note text:id="gn1" text:note-class="glossary"><text:note-body><text:p text:style-name="Footnote">A term to be defined.</text:p></text:note-body></text:note></text:p>
 
index 30487ab2da6c79991f8e20fb3bb2b99052fd9a88..4e36bc82bd0b446309eafe7c5ff23f2e1a5644c7 100644 (file)
@@ -11,7 +11,7 @@
 identify common structures that are not supported yet &#8211; particularly useful
 when developing a new output format.</p>
 
-<h1 id="basicblocks">Basic Blocks </h1>
+<h1 id="basicblocks">Basic Blocks</h1>
 
 <p>paragraph</p>
 
@@ -46,7 +46,7 @@ code
 <li><p>[</p></li>
 </ol>
 
-<h1 id="footnotes">Footnotes </h1>
+<h1 id="footnotes">Footnotes</h1>
 
 <p>Foo.<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote"><sup>1</sup></a></p>
 
@@ -56,7 +56,7 @@ code
 
 <p>Cite.<a href="#cn:2" id="cnref:2" title="see citation" class="citation">(2)</a></p>
 
-<h1 id="linksandimages">Links and Images </h1>
+<h1 id="linksandimages">Links and Images</h1>
 
 <p><a href="http://foo.net/">link</a> and <a href="http://bar.net" title="title" class="custom">link</a></p>
 
@@ -73,7 +73,7 @@ code
 
 <p><a href="#bar">bar</a></p>
 
-<h1 id="math">Math </h1>
+<h1 id="math">Math</h1>
 
 <p>foo <span class="math">\({e}^{i\pi }+1=0\)</span> bar</p>
 
@@ -85,11 +85,11 @@ code
 
 <p><span class="math">\[{x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}\]</span></p>
 
-<h1 id="smartquotes">Smart Quotes </h1>
+<h1 id="smartquotes">Smart Quotes</h1>
 
 <p>&#8220;foo&#8221; and &#8216;bar&#8217; &#8211; with &#8212; dashes&#8230;</p>
 
-<h1 id="criticmarkup">CriticMarkup </h1>
+<h1 id="criticmarkup">CriticMarkup</h1>
 
 <p><ins>foo</ins></p>
 
@@ -101,7 +101,7 @@ code
 
 <p><mark>bar</mark></p>
 
-<h1 id="definitionlists">Definition Lists </h1>
+<h1 id="definitionlists">Definition Lists</h1>
 
 <dl>
 <dt>foo</dt>
@@ -111,11 +111,11 @@ code
 <dd>baz bat*</dd>
 </dl>
 
-<h1 id="horizontalrules">Horizontal Rules </h1>
+<h1 id="horizontalrules">Horizontal Rules</h1>
 
 <hr />
 
-<h1 id="glossary">Glossary </h1>
+<h1 id="glossary">Glossary</h1>
 
 <p><a href="#gn:1" id="gnref:1" title="see glossary" class="glossary">term</a></p>
 
index 90a2915dafe746242c2787c664af642cad566ca2..537c9d1bfae44cf3badeb615e3c9ab83e8355596 100644 (file)
@@ -6,7 +6,7 @@ latex config:   article</p>
 identify common structures that are not supported yet -- particularly useful
 when developing a new output format.</p>
 
-<h1>Basic Blocks </h1>
+<h1>Basic Blocks</h1>
 
 <p>paragraph</p>
 
@@ -40,7 +40,7 @@ code
 <li><p>[</p></li>
 </ol>
 
-<h1>Footnotes </h1>
+<h1>Footnotes</h1>
 
 <p>Foo.[^This is an inline footnote]</p>
 
@@ -52,7 +52,7 @@ code
 
 <p>Cite.<a href="bar">#foo</a></p>
 
-<h1>Links and Images </h1>
+<h1>Links and Images</h1>
 
 <p><a href="http://foo.net/">link</a> and [link]</p>
 
@@ -68,7 +68,7 @@ code
 
 <p><a href="#bar">bar</a></p>
 
-<h1>Math </h1>
+<h1>Math</h1>
 
 <p>foo \({e}^{i\pi }+1=0\) bar</p>
 
@@ -80,11 +80,11 @@ code
 
 <p>$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$</p>
 
-<h1>Smart Quotes </h1>
+<h1>Smart Quotes</h1>
 
 <p>&quot;foo&quot; and 'bar' -- with --- dashes...</p>
 
-<h1>CriticMarkup </h1>
+<h1>CriticMarkup</h1>
 
 <p>{++foo++}</p>
 
@@ -96,18 +96,18 @@ code
 
 <p>{==bar==}</p>
 
-<h1>Definition Lists </h1>
+<h1>Definition Lists</h1>
 
 <p>foo
 bar
 :      <em>foo bar
 :      baz bat</em></p>
 
-<h1>Horizontal Rules </h1>
+<h1>Horizontal Rules</h1>
 
 <hr />
 
-<h1>Glossary </h1>
+<h1>Glossary</h1>
 
 <p>[?term]</p>
 
index b9ae80cb77610bf730b5b1f041659f5b47d98d27..22e5f0a8876c6ddbdbcc070eff343a1dd60e2187 100644 (file)
@@ -3,16 +3,16 @@
 <head><title>Integrated</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;This file is a designed as a single test that incorporates most of the&#10;*commonly* used MultiMarkdown features. This allows a single test file to&#10;identify common structures that are not supported yet -- particularly useful&#10;when developing a new output format.&#10;"></outline>
-<outline text="Basic Blocks " _note="&#10;paragraph&#10;&#10;* list&#10;* items&#10;&#10;```&#10;fenced&#10;code&#10;```&#10;&#10;&#9;indented&#10;&#9;code&#10;&#10;&gt; blockquote&#10;&#10;`code span`&#10;&#10;&#10;*emph* and **strong** and ***both***&#10;&#10;_emph_ and __strong__ and ___both___&#10;&#10;&#10;"><outline text="Escapes [escaped]" _note="&#10;1. \$&#10;&#10;2. \#&#10;&#10;3. \[&#10;&#10;&#10;"></outline>
+<outline text="Basic Blocks" _note="&#10;paragraph&#10;&#10;* list&#10;* items&#10;&#10;```&#10;fenced&#10;code&#10;```&#10;&#10;&#9;indented&#10;&#9;code&#10;&#10;&gt; blockquote&#10;&#10;`code span`&#10;&#10;&#10;*emph* and **strong** and ***both***&#10;&#10;_emph_ and __strong__ and ___both___&#10;&#10;&#10;"><outline text="Escapes [escaped]" _note="&#10;1. \$&#10;&#10;2. \#&#10;&#10;3. \[&#10;&#10;&#10;"></outline>
 </outline>
-<outline text="Footnotes " _note="&#10;Foo.[^This is an inline footnote]&#10;&#10;Bar.[^foot]&#10;&#10;[^foot]: And a reference footnote.&#10;&#10;Cite.[#Inline Citation]&#10;&#10;Cite.[#foo]&#10;&#10;[#foo]: bar&#10;&#10;&#10;"></outline>
-<outline text="Links and Images " _note="&#10;[link](http://foo.net/) and [link]&#10;&#10;[link]: http://bar.net &quot;title&quot; class=&quot;custom&quot;&#10;&#10;![test](http://foo.bar/ &quot;title&quot; width=&quot;40px&quot; height=400px)&#10;&#10;[Math]&#10;&#10;[foo][math]&#10;&#10;[bar][foo1]&#10;&#10;[bar][foo2]&#10;&#10;[foo1]:  #bar&#10;[foo2]: #bar&#10;&#10;&#10;"></outline>
-<outline text="Math " _note="&#10;foo \\({e}^{i\pi }+1=0\\) bar&#10;&#10;\\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]&#10;&#10;foo ${e}^{i\pi }+1=0$ bar&#10;&#10;foo ${e}^{i\pi }+1=0$, bar&#10;&#10;$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$&#10;&#10;&#10;"></outline>
-<outline text="Smart Quotes " _note="&#10;&quot;foo&quot; and &apos;bar&apos; -- with --- dashes...&#10;&#10;&#10;"></outline>
-<outline text="CriticMarkup " _note="&#10;{++foo++}&#10;&#10;{--bar--}&#10;&#10;{~~foo~&gt;bar~~}&#10;&#10;{&gt;&gt;foo&lt;&lt;}&#10;&#10;{==bar==}&#10;&#10;&#10;"></outline>
-<outline text="Definition Lists " _note="&#10;foo&#10;bar&#10;:&#9;*foo bar&#10;:&#9;baz bat*&#10;&#10;&#10;"></outline>
-<outline text="Horizontal Rules " _note="&#10;----&#10;&#10;&#10;"></outline>
-<outline text="Glossary " _note="&#10;[?term]&#10;&#10;[?term]: A term to be defined.&#10;&#10;"></outline>
+<outline text="Footnotes" _note="&#10;Foo.[^This is an inline footnote]&#10;&#10;Bar.[^foot]&#10;&#10;[^foot]: And a reference footnote.&#10;&#10;Cite.[#Inline Citation]&#10;&#10;Cite.[#foo]&#10;&#10;[#foo]: bar&#10;&#10;&#10;"></outline>
+<outline text="Links and Images" _note="&#10;[link](http://foo.net/) and [link]&#10;&#10;[link]: http://bar.net &quot;title&quot; class=&quot;custom&quot;&#10;&#10;![test](http://foo.bar/ &quot;title&quot; width=&quot;40px&quot; height=400px)&#10;&#10;[Math]&#10;&#10;[foo][math]&#10;&#10;[bar][foo1]&#10;&#10;[bar][foo2]&#10;&#10;[foo1]:  #bar&#10;[foo2]: #bar&#10;&#10;&#10;"></outline>
+<outline text="Math" _note="&#10;foo \\({e}^{i\pi }+1=0\\) bar&#10;&#10;\\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]&#10;&#10;foo ${e}^{i\pi }+1=0$ bar&#10;&#10;foo ${e}^{i\pi }+1=0$, bar&#10;&#10;$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$&#10;&#10;&#10;"></outline>
+<outline text="Smart Quotes" _note="&#10;&quot;foo&quot; and &apos;bar&apos; -- with --- dashes...&#10;&#10;&#10;"></outline>
+<outline text="CriticMarkup" _note="&#10;{++foo++}&#10;&#10;{--bar--}&#10;&#10;{~~foo~&gt;bar~~}&#10;&#10;{&gt;&gt;foo&lt;&lt;}&#10;&#10;{==bar==}&#10;&#10;&#10;"></outline>
+<outline text="Definition Lists" _note="&#10;foo&#10;bar&#10;:&#9;*foo bar&#10;:&#9;baz bat*&#10;&#10;&#10;"></outline>
+<outline text="Horizontal Rules" _note="&#10;----&#10;&#10;&#10;"></outline>
+<outline text="Glossary" _note="&#10;[?term]&#10;&#10;[?term]: A term to be defined.&#10;&#10;"></outline>
 <outline text="Abbreviations" _note="&#10;[&gt;MMD]&#10;&#10;[&gt;MMD]: MultiMarkdown&#10;&#10;"></outline>
 <outline text="Metadata">
 <outline text="title" _note="Integrated"/>
index 28b181a2904d99d7a41fbad1b06bdff4d41e5113..f7c01e3df8f5a4121617fb6fbd79f7e5c2e5c627 100644 (file)
@@ -11,7 +11,7 @@ This file is a designed as a single test that incorporates most of the
 identify common structures that are not supported yet -- particularly useful
 when developing a new output format.
 
-\part{Basic Blocks }
+\part{Basic Blocks}
 \label{basicblocks}
 
 paragraph
@@ -43,7 +43,7 @@ blockquote
 
 \emph{emph} and \textbf{strong} and \textbf{\emph{both}}
 
-\chapter{Escapes }
+\chapter{Escapes}
 \label{escaped}
 
 \begin{enumerate}
@@ -55,7 +55,7 @@ blockquote
 
 \end{enumerate}
 
-\part{Footnotes }
+\part{Footnotes}
 \label{footnotes}
 
 Foo.\footnote{This is an inline footnote}
@@ -66,7 +66,7 @@ Cite.~\citep{inlinecitation}
 
 Cite.~\citep{foo}
 
-\part{Links and Images }
+\part{Links and Images}
 \label{linksandimages}
 
 \href{http://foo.net/}{link}\footnote{\href{http://foo.net/}{http:\slash \slash foo.net\slash }} and \href{http://bar.net}{link}\footnote{\href{http://bar.net}{http:\slash \slash bar.net}}
@@ -85,7 +85,7 @@ bar (\autoref{bar})
 
 bar (\autoref{bar})
 
-\part{Math }
+\part{Math}
 \label{math}
 
 foo \({e}^{i\pi }+1=0\) bar
@@ -98,12 +98,12 @@ foo ${e}^{i\pi }+1=0$, bar
 
 $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 
-\part{Smart Quotes }
+\part{Smart Quotes}
 \label{smartquotes}
 
 ``foo'' and `bar' -- with --- dashes{\ldots}
 
-\part{CriticMarkup }
+\part{CriticMarkup}
 \label{criticmarkup}
 
 \underline{foo}
@@ -116,7 +116,7 @@ $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 
 \hl{bar}
 
-\part{Definition Lists }
+\part{Definition Lists}
 \label{definitionlists}
 
 \begin{description}
@@ -129,12 +129,12 @@ $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 baz bat*
 \end{description}
 
-\part{Horizontal Rules }
+\part{Horizontal Rules}
 \label{horizontalrules}
 
 \begin{center}\rule{3in}{0.4pt}\end{center}
 
-\part{Glossary }
+\part{Glossary}
 \label{glossary}
 
 \gls{term}
index e0b23bc589bd9deb53f207dd7d5f18f6ff168186..b4e8b5d95bfabede98a8240f75c7fe8ddac72144 100644 (file)
@@ -278,7 +278,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="2"><text:bookmark text:name="foobar"/>Foo Bar </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="foobar"/>Foo Bar</text:h>
 
 <text:p text:style-name="Standard">Link to <text:a xlink:type="simple" xlink:href="#foobar">Foo Bar</text:a>.</text:p>
 
index e3b2ce7450c29dfe11e1c44b381ab5975e1534a9..e1e637c294ea7319e48d5b9dd3420c2630bb2cb0 100644 (file)
@@ -6,7 +6,7 @@
 </head>
 <body>
 
-<h2 id="foobar">Foo Bar </h2>
+<h2 id="foobar">Foo Bar</h2>
 
 <p>Link to <a href="#foobar">Foo Bar</a>.</p>
 
index e99423f7674466dc270e21a3ef7ebd7fb4921ba8..952674fc6b83de1fb0efe49bcf69b2eb8bfe9889 100644 (file)
@@ -1,7 +1,7 @@
 <p>Title:      Link Variations
 latex config:  article</p>
 
-<h2>Foo Bar </h2>
+<h2>Foo Bar</h2>
 
 <p>Link to [Foo Bar].</p>
 
index a138f139aa90c82c78dad0a5801ba7847700daf8..5649446e4a0e7282f422f50aa58a79e97b3694f1 100644 (file)
@@ -3,7 +3,7 @@
 <head><title>Link Variations</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;"></outline>
-<outline text="Foo Bar " _note="&#10;Link to [Foo Bar].&#10;&#10;Link to [foo bar].&#10;&#10;Link to [foobar].&#10;&#10;Link to [Foo Bar](#foobar).&#10;&#10;Link to [](#foobar).&#10;&#10;5&#10;&#10;Link to [Foo][Foo Bar].&#10;&#10;[&amp; link](http://example.com/?bar=foo&amp;foo=bar)&#10;&#10;[&apos;%&apos; Link](http://example.com/%25%20link)&#10;&#10;[&apos;#&apos; link](http://example.com/#foo)&#10;&#10;10&#10;&#10;[_ link](http://example.com/_foo)&#10;&#10;[~ link](http://example.com/~foo)"></outline>
+<outline text="Foo Bar" _note="&#10;Link to [Foo Bar].&#10;&#10;Link to [foo bar].&#10;&#10;Link to [foobar].&#10;&#10;Link to [Foo Bar](#foobar).&#10;&#10;Link to [](#foobar).&#10;&#10;5&#10;&#10;Link to [Foo][Foo Bar].&#10;&#10;[&amp; link](http://example.com/?bar=foo&amp;foo=bar)&#10;&#10;[&apos;%&apos; Link](http://example.com/%25%20link)&#10;&#10;[&apos;#&apos; link](http://example.com/#foo)&#10;&#10;10&#10;&#10;[_ link](http://example.com/_foo)&#10;&#10;[~ link](http://example.com/~foo)"></outline>
 <outline text="Metadata">
 <outline text="title" _note="Link Variations"/>
 <outline text="latexconfig" _note="article"/>
index ed6266adc8ae81d0e2390f069efb90e2bbbae7eb..89951d6d5e439925ce5335c603cda3856e5f8389 100644 (file)
@@ -2,7 +2,7 @@
 \def\mytitle{Link Variations}
 \input{mmd6-article-begin}
 
-\chapter{Foo Bar }
+\chapter{Foo Bar}
 \label{foobar}
 
 Link to Foo Bar (\autoref{foobar}).
index d81be5fe116d97aa6c706545e40242d01b28ebfe..a1328995ddb68ad82d0817276ff91ac12a68043f 100644 (file)
@@ -277,7 +277,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </office:meta>
 <office:body>
 <office:text>
-<text:h text:outline-level="1"><text:bookmark text:name="markdown:syntax"/>Markdown: Syntax </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="markdown:syntax"/>Markdown: Syntax</text:h>
 
 <text:list text:style-name="L1">
 <text:list-item>
index 3ed1e49844fbe995b617af449955a266f15d498f..860891bff3080d688520a3fae5904ebc8092cb8c 100644 (file)
@@ -1,4 +1,4 @@
-<h1 id="markdown:syntax">Markdown: Syntax </h1>
+<h1 id="markdown:syntax">Markdown: Syntax</h1>
 
 <ul id="ProjectSubmenu">
     <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
index be89b345a7dc85878df5ed22cdbc9f1361484b9e..a083129cc48116252103a8bc3d324c92a39ddb31 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Markdown: Syntax </h1>
+<h1>Markdown: Syntax</h1>
 
 <ul id="ProjectSubmenu">
     <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
index 6eca48f9096e25b10cc9835b0a60728f1aac9bcd..d87c657783d79bf0fb49317e00ebbfaa362ebcd8 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <opml version="1.0">
 <body>
-<outline text="Markdown: Syntax " _note="&#10;&lt;ul id=&quot;ProjectSubmenu&quot;&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/&quot; title=&quot;Markdown Project Page&quot;&gt;Main&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/basics&quot; title=&quot;Markdown Basics&quot;&gt;Basics&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a class=&quot;selected&quot; title=&quot;Markdown Syntax Documentation&quot;&gt;Syntax&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/license&quot; title=&quot;Pricing and License Information&quot;&gt;License&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/dingus&quot; title=&quot;Online Markdown Web Form&quot;&gt;Dingus&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&#10;*   [Overview](#overview)&#10;    *   [Philosophy](#philosophy)&#10;    *   [Inline HTML](#html)&#10;    *   [Automatic Escaping for Special Characters](#autoescape)&#10;*   [Block Elements](#block)&#10;    *   [Paragraphs and Line Breaks](#p)&#10;    *   [Headers](#header)&#10;    *   [Blockquotes](#blockquote)&#10;    *   [Lists](#list)&#10;    *   [Code Blocks](#precode)&#10;    *   [Horizontal Rules](#hr)&#10;*   [Span Elements](#span)&#10;    *   [Links](#link)&#10;    *   [Emphasis](#em)&#10;    *   [Code](#code)&#10;    *   [Images](#img)&#10;*   [Miscellaneous](#misc)&#10;    *   [Backslash Escapes](#backslash)&#10;    *   [Automatic Links](#autolink)&#10;&#10;&#10;**Note:** This document is itself written using Markdown; you&#10;can [see the source for it by adding &apos;.text&apos; to the URL][src].&#10;&#10;  [src]: /projects/markdown/syntax.text&#10;&#10;* * *&#10;&#10;&lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;philosophy&quot;&gt;Philosophy&lt;/h3&gt;&#10;&#10;Markdown is intended to be as easy-to-read and easy-to-write as is feasible.&#10;&#10;Readability, however, is emphasized above all else. A Markdown-formatted&#10;document should be publishable as-is, as plain text, without looking&#10;like it&apos;s been marked up with tags or formatting instructions. While&#10;Markdown&apos;s syntax has been influenced by several existing text-to-HTML&#10;filters -- including [Setext][1], [atx][2], [Textile][3], [reStructuredText][4],&#10;[Grutatext][5], and [EtText][6] -- the single biggest source of&#10;inspiration for Markdown&apos;s syntax is the format of plain text email.&#10;&#10;  [1]: http://docutils.sourceforge.net/mirror/setext.html&#10;  [2]: http://www.aaronsw.com/2002/atx/&#10;  [3]: http://textism.com/tools/textile/&#10;  [4]: http://docutils.sourceforge.net/rst.html&#10;  [5]: http://www.triptico.com/software/grutatxt.html&#10;  [6]: http://ettext.taint.org/doc/&#10;&#10;To this end, Markdown&apos;s syntax is comprised entirely of punctuation&#10;characters, which punctuation characters have been carefully chosen so&#10;as to look like what they mean. E.g., asterisks around a word actually&#10;look like \*emphasis\*. Markdown lists look like, well, lists. Even&#10;blockquotes look like quoted passages of text, assuming you&apos;ve ever&#10;used email.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;html&quot;&gt;Inline HTML&lt;/h3&gt;&#10;&#10;Markdown&apos;s syntax is intended for one purpose: to be used as a&#10;format for *writing* for the web.&#10;&#10;Markdown is not a replacement for HTML, or even close to it. Its&#10;syntax is very small, corresponding only to a very small subset of&#10;HTML tags. The idea is *not* to create a syntax that makes it easier&#10;to insert HTML tags. In my opinion, HTML tags are already easy to&#10;insert. The idea for Markdown is to make it easy to read, write, and&#10;edit prose. HTML is a *publishing* format; Markdown is a *writing*&#10;format. Thus, Markdown&apos;s formatting syntax only addresses issues that&#10;can be conveyed in plain text.&#10;&#10;For any markup that is not covered by Markdown&apos;s syntax, you simply&#10;use HTML itself. There&apos;s no need to preface it or delimit it to&#10;indicate that you&apos;re switching from Markdown to HTML; you just use&#10;the tags.&#10;&#10;The only restrictions are that block-level HTML elements -- e.g. `&lt;div&gt;`,&#10;`&lt;table&gt;`, `&lt;pre&gt;`, `&lt;p&gt;`, etc. -- must be separated from surrounding&#10;content by blank lines, and the start and end tags of the block should&#10;not be indented with tabs or spaces. Markdown is smart enough not&#10;to add extra (unwanted) `&lt;p&gt;` tags around HTML block-level tags.&#10;&#10;For example, to add an HTML table to a Markdown article:&#10;&#10;    This is a regular paragraph.&#10;&#10;    &lt;table&gt;&#10;        &lt;tr&gt;&#10;            &lt;td&gt;Foo&lt;/td&gt;&#10;        &lt;/tr&gt;&#10;    &lt;/table&gt;&#10;&#10;    This is another regular paragraph.&#10;&#10;Note that Markdown formatting syntax is not processed within block-level&#10;HTML tags. E.g., you can&apos;t use Markdown-style `*emphasis*` inside an&#10;HTML block.&#10;&#10;Span-level HTML tags -- e.g. `&lt;span&gt;`, `&lt;cite&gt;`, or `&lt;del&gt;` -- can be&#10;used anywhere in a Markdown paragraph, list item, or header. If you&#10;want, you can even use HTML tags instead of Markdown formatting; e.g. if&#10;you&apos;d prefer to use HTML `&lt;a&gt;` or `&lt;img&gt;` tags instead of Markdown&apos;s&#10;link or image syntax, go right ahead.&#10;&#10;Unlike block-level HTML tags, Markdown syntax *is* processed within&#10;span-level tags.&#10;&#10;&#10;&lt;h3 id=&quot;autoescape&quot;&gt;Automatic Escaping for Special Characters&lt;/h3&gt;&#10;&#10;In HTML, there are two characters that demand special treatment: `&lt;`&#10;and `&amp;`. Left angle brackets are used to start tags; ampersands are&#10;used to denote HTML entities. If you want to use them as literal&#10;characters, you must escape them as entities, e.g. `&amp;lt;`, and&#10;`&amp;amp;`.&#10;&#10;Ampersands in particular are bedeviling for web writers. If you want to&#10;write about &apos;AT&amp;T&apos;, you need to write &apos;`AT&amp;amp;T`&apos;. You even need to&#10;escape ampersands within URLs. Thus, if you want to link to:&#10;&#10;    http://images.google.com/images?num=30&amp;q=larry+bird&#10;&#10;you need to encode the URL as:&#10;&#10;    http://images.google.com/images?num=30&amp;amp;q=larry+bird&#10;&#10;in your anchor tag `href` attribute. Needless to say, this is easy to&#10;forget, and is probably the single most common source of HTML validation&#10;errors in otherwise well-marked-up web sites.&#10;&#10;Markdown allows you to use these characters naturally, taking care of&#10;all the necessary escaping for you. If you use an ampersand as part of&#10;an HTML entity, it remains unchanged; otherwise it will be translated&#10;into `&amp;amp;`.&#10;&#10;So, if you want to include a copyright symbol in your article, you can write:&#10;&#10;    &amp;copy;&#10;&#10;and Markdown will leave it alone. But if you write:&#10;&#10;    AT&amp;T&#10;&#10;Markdown will translate it to:&#10;&#10;    AT&amp;amp;T&#10;&#10;Similarly, because Markdown supports [inline HTML](#html), if you use&#10;angle brackets as delimiters for HTML tags, Markdown will treat them as&#10;such. But if you write:&#10;&#10;    4 &lt; 5&#10;&#10;Markdown will translate it to:&#10;&#10;    4 &amp;lt; 5&#10;&#10;However, inside Markdown code spans and blocks, angle brackets and&#10;ampersands are *always* encoded automatically. This makes it easy to use&#10;Markdown to write about HTML code. (As opposed to raw HTML, which is a&#10;terrible format for writing about HTML syntax, because every single `&lt;`&#10;and `&amp;` in your example code needs to be escaped.)&#10;&#10;&#10;* * *&#10;&#10;&#10;&lt;h2 id=&quot;block&quot;&gt;Block Elements&lt;/h2&gt;&#10;&#10;&#10;&lt;h3 id=&quot;p&quot;&gt;Paragraphs and Line Breaks&lt;/h3&gt;&#10;&#10;A paragraph is simply one or more consecutive lines of text, separated&#10;by one or more blank lines. (A blank line is any line that looks like a&#10;blank line -- a line containing nothing but spaces or tabs is considered&#10;blank.) Normal paragraphs should not be indented with spaces or tabs.&#10;&#10;The implication of the &quot;one or more consecutive lines of text&quot; rule is&#10;that Markdown supports &quot;hard-wrapped&quot; text paragraphs. This differs&#10;significantly from most other text-to-HTML formatters (including Movable&#10;Type&apos;s &quot;Convert Line Breaks&quot; option) which translate every line break&#10;character in a paragraph into a `&lt;br /&gt;` tag.&#10;&#10;When you *do* want to insert a `&lt;br /&gt;` break tag using Markdown, you&#10;end a line with two or more spaces, then type return.&#10;&#10;Yes, this takes a tad more effort to create a `&lt;br /&gt;`, but a simplistic&#10;&quot;every line break is a `&lt;br /&gt;`&quot; rule wouldn&apos;t work for Markdown.&#10;Markdown&apos;s email-style [blockquoting][bq] and multi-paragraph [list items][l]&#10;work best -- and look better -- when you format them with hard breaks.&#10;&#10;  [bq]: #blockquote&#10;  [l]:  #list&#10;&#10;&#10;&#10;&lt;h3 id=&quot;header&quot;&gt;Headers&lt;/h3&gt;&#10;&#10;Markdown supports two styles of headers, [Setext][1] and [atx][2].&#10;&#10;Setext-style headers are &quot;underlined&quot; using equal signs (for first-level&#10;headers) and dashes (for second-level headers). For example:&#10;&#10;    This is an H1&#10;    =============&#10;&#10;    This is an H2&#10;    -------------&#10;&#10;Any number of underlining `=`&apos;s or `-`&apos;s will work.&#10;&#10;Atx-style headers use 1-6 hash characters at the start of the line,&#10;corresponding to header levels 1-6. For example:&#10;&#10;    # This is an H1&#10;&#10;    ## This is an H2&#10;&#10;    ###### This is an H6&#10;&#10;Optionally, you may &quot;close&quot; atx-style headers. This is purely&#10;cosmetic -- you can use this if you think it looks better. The&#10;closing hashes don&apos;t even need to match the number of hashes&#10;used to open the header. (The number of opening hashes&#10;determines the header level.) :&#10;&#10;    # This is an H1 #&#10;&#10;    ## This is an H2 ##&#10;&#10;    ### This is an H3 ######&#10;&#10;&#10;&lt;h3 id=&quot;blockquote&quot;&gt;Blockquotes&lt;/h3&gt;&#10;&#10;Markdown uses email-style `&gt;` characters for blockquoting. If you&apos;re&#10;familiar with quoting passages of text in an email message, then you&#10;know how to create a blockquote in Markdown. It looks best if you hard&#10;wrap the text and put a `&gt;` before every line:&#10;&#10;    &gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&#10;    &gt; consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&#10;    &gt; Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&#10;    &gt; &#10;    &gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&#10;    &gt; id sem consectetuer libero luctus adipiscing.&#10;&#10;Markdown allows you to be lazy and only put the `&gt;` before the first&#10;line of a hard-wrapped paragraph:&#10;&#10;    &gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&#10;    consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&#10;    Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&#10;&#10;    &gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&#10;    id sem consectetuer libero luctus adipiscing.&#10;&#10;Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by&#10;adding additional levels of `&gt;`:&#10;&#10;    &gt; This is the first level of quoting.&#10;    &gt;&#10;    &gt; &gt; This is nested blockquote.&#10;    &gt;&#10;    &gt; Back to the first level.&#10;&#10;Blockquotes can contain other Markdown elements, including headers, lists,&#10;and code blocks:&#10;&#10;&#9;&gt; ## This is a header.&#10;&#9;&gt; &#10;&#9;&gt; 1.   This is the first list item.&#10;&#9;&gt; 2.   This is the second list item.&#10;&#9;&gt; &#10;&#9;&gt; Here&apos;s some example code:&#10;&#9;&gt; &#10;&#9;&gt;     return shell_exec(&quot;echo $input | $markdown_script&quot;);&#10;&#10;Any decent text editor should make email-style quoting easy. For&#10;example, with BBEdit, you can make a selection and choose Increase&#10;Quote Level from the Text menu.&#10;&#10;&#10;&lt;h3 id=&quot;list&quot;&gt;Lists&lt;/h3&gt;&#10;&#10;Markdown supports ordered (numbered) and unordered (bulleted) lists.&#10;&#10;Unordered lists use asterisks, pluses, and hyphens -- interchangably&#10;-- as list markers:&#10;&#10;    *   Red&#10;    *   Green&#10;    *   Blue&#10;&#10;is equivalent to:&#10;&#10;    +   Red&#10;    +   Green&#10;    +   Blue&#10;&#10;and:&#10;&#10;    -   Red&#10;    -   Green&#10;    -   Blue&#10;&#10;Ordered lists use numbers followed by periods:&#10;&#10;    1.  Bird&#10;    2.  McHale&#10;    3.  Parish&#10;&#10;It&apos;s important to note that the actual numbers you use to mark the&#10;list have no effect on the HTML output Markdown produces. The HTML&#10;Markdown produces from the above list is:&#10;&#10;    &lt;ol&gt;&#10;    &lt;li&gt;Bird&lt;/li&gt;&#10;    &lt;li&gt;McHale&lt;/li&gt;&#10;    &lt;li&gt;Parish&lt;/li&gt;&#10;    &lt;/ol&gt;&#10;&#10;If you instead wrote the list in Markdown like this:&#10;&#10;    1.  Bird&#10;    1.  McHale&#10;    1.  Parish&#10;&#10;or even:&#10;&#10;    3. Bird&#10;    1. McHale&#10;    8. Parish&#10;&#10;you&apos;d get the exact same HTML output. The point is, if you want to,&#10;you can use ordinal numbers in your ordered Markdown lists, so that&#10;the numbers in your source match the numbers in your published HTML.&#10;But if you want to be lazy, you don&apos;t have to.&#10;&#10;If you do use lazy list numbering, however, you should still start the&#10;list with the number 1. At some point in the future, Markdown may support&#10;starting ordered lists at an arbitrary number.&#10;&#10;List markers typically start at the left margin, but may be indented by&#10;up to three spaces. List markers must be followed by one or more spaces&#10;or a tab.&#10;&#10;To make lists look nice, you can wrap items with hanging indents:&#10;&#10;    *   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&#10;        Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,&#10;        viverra nec, fringilla in, laoreet vitae, risus.&#10;    *   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.&#10;        Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;But if you want to be lazy, you don&apos;t have to:&#10;&#10;    *   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&#10;    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,&#10;    viverra nec, fringilla in, laoreet vitae, risus.&#10;    *   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.&#10;    Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;If list items are separated by blank lines, Markdown will wrap the&#10;items in `&lt;p&gt;` tags in the HTML output. For example, this input:&#10;&#10;    *   Bird&#10;    *   Magic&#10;&#10;will turn into:&#10;&#10;    &lt;ul&gt;&#10;    &lt;li&gt;Bird&lt;/li&gt;&#10;    &lt;li&gt;Magic&lt;/li&gt;&#10;    &lt;/ul&gt;&#10;&#10;But this:&#10;&#10;    *   Bird&#10;&#10;    *   Magic&#10;&#10;will turn into:&#10;&#10;    &lt;ul&gt;&#10;    &lt;li&gt;&lt;p&gt;Bird&lt;/p&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;p&gt;Magic&lt;/p&gt;&lt;/li&gt;&#10;    &lt;/ul&gt;&#10;&#10;List items may consist of multiple paragraphs. Each subsequent&#10;paragraph in a list item must be indented by either 4 spaces&#10;or one tab:&#10;&#10;    1.  This is a list item with two paragraphs. Lorem ipsum dolor&#10;        sit amet, consectetuer adipiscing elit. Aliquam hendrerit&#10;        mi posuere lectus.&#10;&#10;        Vestibulum enim wisi, viverra nec, fringilla in, laoreet&#10;        vitae, risus. Donec sit amet nisl. Aliquam semper ipsum&#10;        sit amet velit.&#10;&#10;    2.  Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;It looks nice if you indent every line of the subsequent&#10;paragraphs, but here again, Markdown will allow you to be&#10;lazy:&#10;&#10;    *   This is a list item with two paragraphs.&#10;&#10;        This is the second paragraph in the list item. You&apos;re&#10;    only required to indent the first line. Lorem ipsum dolor&#10;    sit amet, consectetuer adipiscing elit.&#10;&#10;    *   Another item in the same list.&#10;&#10;To put a blockquote within a list item, the blockquote&apos;s `&gt;`&#10;delimiters need to be indented:&#10;&#10;    *   A list item with a blockquote:&#10;&#10;        &gt; This is a blockquote&#10;        &gt; inside a list item.&#10;&#10;To put a code block within a list item, the code block needs&#10;to be indented *twice* -- 8 spaces or two tabs:&#10;&#10;    *   A list item with a code block:&#10;&#10;            &lt;code goes here&gt;&#10;&#10;&#10;It&apos;s worth noting that it&apos;s possible to trigger an ordered list by&#10;accident, by writing something like this:&#10;&#10;    1986. What a great season.&#10;&#10;In other words, a *number-period-space* sequence at the beginning of a&#10;line. To avoid this, you can backslash-escape the period:&#10;&#10;    1986\. What a great season.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;precode&quot;&gt;Code Blocks&lt;/h3&gt;&#10;&#10;Pre-formatted code blocks are used for writing about programming or&#10;markup source code. Rather than forming normal paragraphs, the lines&#10;of a code block are interpreted literally. Markdown wraps a code block&#10;in both `&lt;pre&gt;` and `&lt;code&gt;` tags.&#10;&#10;To produce a code block in Markdown, simply indent every line of the&#10;block by at least 4 spaces or 1 tab. For example, given this input:&#10;&#10;    This is a normal paragraph:&#10;&#10;        This is a code block.&#10;&#10;Markdown will generate:&#10;&#10;    &lt;p&gt;This is a normal paragraph:&lt;/p&gt;&#10;&#10;    &lt;pre&gt;&lt;code&gt;This is a code block.&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;One level of indentation -- 4 spaces or 1 tab -- is removed from each&#10;line of the code block. For example, this:&#10;&#10;    Here is an example of AppleScript:&#10;&#10;        tell application &quot;Foo&quot;&#10;            beep&#10;        end tell&#10;&#10;will turn into:&#10;&#10;    &lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;&#10;&#10;    &lt;pre&gt;&lt;code&gt;tell application &quot;Foo&quot;&#10;        beep&#10;    end tell&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;A code block continues until it reaches a line that is not indented&#10;(or the end of the article).&#10;&#10;Within a code block, ampersands (`&amp;`) and angle brackets (`&lt;` and `&gt;`)&#10;are automatically converted into HTML entities. This makes it very&#10;easy to include example HTML source code using Markdown -- just paste&#10;it and indent it, and Markdown will handle the hassle of encoding the&#10;ampersands and angle brackets. For example, this:&#10;&#10;        &lt;div class=&quot;footer&quot;&gt;&#10;            &amp;copy; 2004 Foo Corporation&#10;        &lt;/div&gt;&#10;&#10;will turn into:&#10;&#10;    &lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;footer&quot;&amp;gt;&#10;        &amp;amp;copy; 2004 Foo Corporation&#10;    &amp;lt;/div&amp;gt;&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;Regular Markdown syntax is not processed within code blocks. E.g.,&#10;asterisks are just literal asterisks within a code block. This means&#10;it&apos;s also easy to use Markdown to write about Markdown&apos;s own syntax.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;hr&quot;&gt;Horizontal Rules&lt;/h3&gt;&#10;&#10;You can produce a horizontal rule tag (`&lt;hr /&gt;`) by placing three or&#10;more hyphens, asterisks, or underscores on a line by themselves. If you&#10;wish, you may use spaces between the hyphens or asterisks. Each of the&#10;following lines will produce a horizontal rule:&#10;&#10;    * * *&#10;&#10;    ***&#10;&#10;    *****&#10;&#10;    - - -&#10;&#10;    ---------------------------------------&#10;&#10;&#10;* * *&#10;&#10;&lt;h2 id=&quot;span&quot;&gt;Span Elements&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;link&quot;&gt;Links&lt;/h3&gt;&#10;&#10;Markdown supports two style of links: *inline* and *reference*.&#10;&#10;In both styles, the link text is delimited by [square brackets].&#10;&#10;To create an inline link, use a set of regular parentheses immediately&#10;after the link text&apos;s closing square bracket. Inside the parentheses,&#10;put the URL where you want the link to point, along with an *optional*&#10;title for the link, surrounded in quotes. For example:&#10;&#10;    This is [an example](http://example.com/ &quot;Title&quot;) inline link.&#10;&#10;    [This link](http://example.net/) has no title attribute.&#10;&#10;Will produce:&#10;&#10;    &lt;p&gt;This is &lt;a href=&quot;http://example.com/&quot; title=&quot;Title&quot;&gt;&#10;    an example&lt;/a&gt; inline link.&lt;/p&gt;&#10;&#10;    &lt;p&gt;&lt;a href=&quot;http://example.net/&quot;&gt;This link&lt;/a&gt; has no&#10;    title attribute.&lt;/p&gt;&#10;&#10;If you&apos;re referring to a local resource on the same server, you can&#10;use relative paths:&#10;&#10;    See my [About](/about/) page for details.   &#10;&#10;Reference-style links use a second set of square brackets, inside&#10;which you place a label of your choosing to identify the link:&#10;&#10;    This is [an example][id] reference-style link.&#10;&#10;You can optionally use a space to separate the sets of brackets:&#10;&#10;    This is [an example] [id] reference-style link.&#10;&#10;Then, anywhere in the document, you define your link label like this,&#10;on a line by itself:&#10;&#10;    [id]: http://example.com/  &quot;Optional Title Here&quot;&#10;&#10;That is:&#10;&#10;*   Square brackets containing the link identifier (optionally&#10;    indented from the left margin using up to three spaces);&#10;*   followed by a colon;&#10;*   followed by one or more spaces (or tabs);&#10;*   followed by the URL for the link;&#10;*   optionally followed by a title attribute for the link, enclosed&#10;    in double or single quotes, or enclosed in parentheses.&#10;&#10;The following three link definitions are equivalent:&#10;&#10;&#9;[foo]: http://example.com/  &quot;Optional Title Here&quot;&#10;&#9;[foo]: http://example.com/  &apos;Optional Title Here&apos;&#10;&#9;[foo]: http://example.com/  (Optional Title Here)&#10;&#10;**Note:** There is a known bug in Markdown.pl 1.0.1 which prevents&#10;single quotes from being used to delimit link titles.&#10;&#10;The link URL may, optionally, be surrounded by angle brackets:&#10;&#10;    [id]: &lt;http://example.com/&gt;  &quot;Optional Title Here&quot;&#10;&#10;You can put the title attribute on the next line and use extra spaces&#10;or tabs for padding, which tends to look better with longer URLs:&#10;&#10;    [id]: http://example.com/longish/path/to/resource/here&#10;        &quot;Optional Title Here&quot;&#10;&#10;Link definitions are only used for creating links during Markdown&#10;processing, and are stripped from your document in the HTML output.&#10;&#10;Link definition names may consist of letters, numbers, spaces, and&#10;punctuation -- but they are *not* case sensitive. E.g. these two&#10;links:&#10;&#10;&#9;[link text][a]&#10;&#9;[link text][A]&#10;&#10;are equivalent.&#10;&#10;The *implicit link name* shortcut allows you to omit the name of the&#10;link, in which case the link text itself is used as the name.&#10;Just use an empty set of square brackets -- e.g., to link the word&#10;&quot;Google&quot; to the google.com web site, you could simply write:&#10;&#10;&#9;[Google][]&#10;&#10;And then define the link:&#10;&#10;&#9;[Google]: http://google.com/&#10;&#10;Because link names may contain spaces, this shortcut even works for&#10;multiple words in the link text:&#10;&#10;&#9;Visit [Daring Fireball][] for more information.&#10;&#10;And then define the link:&#10;&#9;&#10;&#9;[Daring Fireball]: http://daringfireball.net/&#10;&#10;Link definitions can be placed anywhere in your Markdown document. I&#10;tend to put them immediately after each paragraph in which they&apos;re&#10;used, but if you want, you can put them all at the end of your&#10;document, sort of like footnotes.&#10;&#10;Here&apos;s an example of reference links in action:&#10;&#10;    I get 10 times more traffic from [Google] [1] than from&#10;    [Yahoo] [2] or [MSN] [3].&#10;&#10;      [1]: http://google.com/        &quot;Google&quot;&#10;      [2]: http://search.yahoo.com/  &quot;Yahoo Search&quot;&#10;      [3]: http://search.msn.com/    &quot;MSN Search&quot;&#10;&#10;Using the implicit link name shortcut, you could instead write:&#10;&#10;    I get 10 times more traffic from [Google][] than from&#10;    [Yahoo][] or [MSN][].&#10;&#10;      [google]: http://google.com/        &quot;Google&quot;&#10;      [yahoo]:  http://search.yahoo.com/  &quot;Yahoo Search&quot;&#10;      [msn]:    http://search.msn.com/    &quot;MSN Search&quot;&#10;&#10;Both of the above examples will produce the following HTML output:&#10;&#10;    &lt;p&gt;I get 10 times more traffic from &lt;a href=&quot;http://google.com/&quot;&#10;    title=&quot;Google&quot;&gt;Google&lt;/a&gt; than from&#10;    &lt;a href=&quot;http://search.yahoo.com/&quot; title=&quot;Yahoo Search&quot;&gt;Yahoo&lt;/a&gt;&#10;    or &lt;a href=&quot;http://search.msn.com/&quot; title=&quot;MSN Search&quot;&gt;MSN&lt;/a&gt;.&lt;/p&gt;&#10;&#10;For comparison, here is the same paragraph written using&#10;Markdown&apos;s inline link style:&#10;&#10;    I get 10 times more traffic from [Google](http://google.com/ &quot;Google&quot;)&#10;    than from [Yahoo](http://search.yahoo.com/ &quot;Yahoo Search&quot;) or&#10;    [MSN](http://search.msn.com/ &quot;MSN Search&quot;).&#10;&#10;The point of reference-style links is not that they&apos;re easier to&#10;write. The point is that with reference-style links, your document&#10;source is vastly more readable. Compare the above examples: using&#10;reference-style links, the paragraph itself is only 81 characters&#10;long; with inline-style links, it&apos;s 176 characters; and as raw HTML,&#10;it&apos;s 234 characters. In the raw HTML, there&apos;s more markup than there&#10;is text.&#10;&#10;With Markdown&apos;s reference-style links, a source document much more&#10;closely resembles the final output, as rendered in a browser. By&#10;allowing you to move the markup-related metadata out of the paragraph,&#10;you can add links without interrupting the narrative flow of your&#10;prose.&#10;&#10;&#10;&lt;h3 id=&quot;em&quot;&gt;Emphasis&lt;/h3&gt;&#10;&#10;Markdown treats asterisks (`*`) and underscores (`_`) as indicators of&#10;emphasis. Text wrapped with one `*` or `_` will be wrapped with an&#10;HTML `&lt;em&gt;` tag; double `*`&apos;s or `_`&apos;s will be wrapped with an HTML&#10;`&lt;strong&gt;` tag. E.g., this input:&#10;&#10;    *single asterisks*&#10;&#10;    _single underscores_&#10;&#10;    **double asterisks**&#10;&#10;    __double underscores__&#10;&#10;will produce:&#10;&#10;    &lt;em&gt;single asterisks&lt;/em&gt;&#10;&#10;    &lt;em&gt;single underscores&lt;/em&gt;&#10;&#10;    &lt;strong&gt;double asterisks&lt;/strong&gt;&#10;&#10;    &lt;strong&gt;double underscores&lt;/strong&gt;&#10;&#10;You can use whichever style you prefer; the lone restriction is that&#10;the same character must be used to open and close an emphasis span.&#10;&#10;Emphasis can be used in the middle of a word:&#10;&#10;    un*frigging*believable&#10;&#10;But if you surround an `*` or `_` with spaces, it&apos;ll be treated as a&#10;literal asterisk or underscore.&#10;&#10;To produce a literal asterisk or underscore at a position where it&#10;would otherwise be used as an emphasis delimiter, you can backslash&#10;escape it:&#10;&#10;    \*this text is surrounded by literal asterisks\*&#10;&#10;&#10;&#10;&lt;h3 id=&quot;code&quot;&gt;Code&lt;/h3&gt;&#10;&#10;To indicate a span of code, wrap it with backtick quotes (`` ` ``).&#10;Unlike a pre-formatted code block, a code span indicates code within a&#10;normal paragraph. For example:&#10;&#10;    Use the `printf()` function.&#10;&#10;will produce:&#10;&#10;    &lt;p&gt;Use the &lt;code&gt;printf()&lt;/code&gt; function.&lt;/p&gt;&#10;&#10;To include a literal backtick character within a code span, you can use&#10;multiple backticks as the opening and closing delimiters:&#10;&#10;    ``There is a literal backtick (`) here.``&#10;&#10;which will produce this:&#10;&#10;    &lt;p&gt;&lt;code&gt;There is a literal backtick (`) here.&lt;/code&gt;&lt;/p&gt;&#10;&#10;The backtick delimiters surrounding a code span may include spaces --&#10;one after the opening, one before the closing. This allows you to place&#10;literal backtick characters at the beginning or end of a code span:&#10;&#10;&#9;A single backtick in a code span: `` ` ``&#10;&#9;&#10;&#9;A backtick-delimited string in a code span: `` `foo` ``&#10;&#10;will produce:&#10;&#10;&#9;&lt;p&gt;A single backtick in a code span: &lt;code&gt;`&lt;/code&gt;&lt;/p&gt;&#10;&#9;&#10;&#9;&lt;p&gt;A backtick-delimited string in a code span: &lt;code&gt;`foo`&lt;/code&gt;&lt;/p&gt;&#10;&#10;With a code span, ampersands and angle brackets are encoded as HTML&#10;entities automatically, which makes it easy to include example HTML&#10;tags. Markdown will turn this:&#10;&#10;    Please don&apos;t use any `&lt;blink&gt;` tags.&#10;&#10;into:&#10;&#10;    &lt;p&gt;Please don&apos;t use any &lt;code&gt;&amp;lt;blink&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#10;&#10;You can write this:&#10;&#10;    `&amp;#8212;` is the decimal-encoded equivalent of `&amp;mdash;`.&#10;&#10;to produce:&#10;&#10;    &lt;p&gt;&lt;code&gt;&amp;amp;#8212;&lt;/code&gt; is the decimal-encoded&#10;    equivalent of &lt;code&gt;&amp;amp;mdash;&lt;/code&gt;.&lt;/p&gt;&#10;&#10;&#10;&#10;&lt;h3 id=&quot;img&quot;&gt;Images&lt;/h3&gt;&#10;&#10;Admittedly, it&apos;s fairly difficult to devise a &quot;natural&quot; syntax for&#10;placing images into a plain text document format.&#10;&#10;Markdown uses an image syntax that is intended to resemble the syntax&#10;for links, allowing for two styles: *inline* and *reference*.&#10;&#10;Inline image syntax looks like this:&#10;&#10;    ![Alt text](/path/to/img.jpg)&#10;&#10;    ![Alt text](/path/to/img.jpg &quot;Optional title&quot;)&#10;&#10;That is:&#10;&#10;*   An exclamation mark: `!`;&#10;*   followed by a set of square brackets, containing the `alt`&#10;    attribute text for the image;&#10;*   followed by a set of parentheses, containing the URL or path to&#10;    the image, and an optional `title` attribute enclosed in double&#10;    or single quotes.&#10;&#10;Reference-style image syntax looks like this:&#10;&#10;    ![Alt text][id]&#10;&#10;Where &quot;id&quot; is the name of a defined image reference. Image references&#10;are defined using syntax identical to link references:&#10;&#10;    [id]: url/to/image  &quot;Optional title attribute&quot;&#10;&#10;As of this writing, Markdown has no syntax for specifying the&#10;dimensions of an image; if this is important to you, you can simply&#10;use regular HTML `&lt;img&gt;` tags.&#10;&#10;&#10;* * *&#10;&#10;&#10;&lt;h2 id=&quot;misc&quot;&gt;Miscellaneous&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;autolink&quot;&gt;Automatic Links&lt;/h3&gt;&#10;&#10;Markdown supports a shortcut style for creating &quot;automatic&quot; links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:&#10;&#10;    &lt;http://example.com/&gt;&#10;    &#10;Markdown will turn this into:&#10;&#10;    &lt;a href=&quot;http://example.com/&quot;&gt;http://example.com/&lt;/a&gt;&#10;&#10;Automatic links for email addresses work similarly, except that&#10;Markdown will also perform a bit of randomized decimal and hex&#10;entity-encoding to help obscure your address from address-harvesting&#10;spambots. For example, Markdown will turn this:&#10;&#10;    &lt;address@example.com&gt;&#10;&#10;into something like this:&#10;&#10;    &lt;a href=&quot;&amp;#x6D;&amp;#x61;i&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&#10;    &amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&#10;    &amp;#109;&quot;&gt;&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&#10;    &amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&amp;#109;&lt;/a&gt;&#10;&#10;which will render in a browser as a clickable link to &quot;address@example.com&quot;.&#10;&#10;(This sort of entity-encoding trick will indeed fool many, if not&#10;most, address-harvesting bots, but it definitely won&apos;t fool all of&#10;them. It&apos;s better than nothing, but an address published in this way&#10;will probably eventually start receiving spam.)&#10;&#10;&#10;&#10;&lt;h3 id=&quot;backslash&quot;&gt;Backslash Escapes&lt;/h3&gt;&#10;&#10;Markdown allows you to use backslash escapes to generate literal&#10;characters which would otherwise have special meaning in Markdown&apos;s&#10;formatting syntax. For example, if you wanted to surround a word&#10;with literal asterisks (instead of an HTML `&lt;em&gt;` tag), you can use&#10;backslashes before the asterisks, like this:&#10;&#10;    \*literal asterisks\*&#10;&#10;Markdown provides backslash escapes for the following characters:&#10;&#10;    \   backslash&#10;    `   backtick&#10;    *   asterisk&#10;    _   underscore&#10;    {}  curly braces&#10;    []  square brackets&#10;    ()  parentheses&#10;    #   hash mark&#10;&#9;+   plus sign&#10;&#9;-   minus sign (hyphen)&#10;    .   dot&#10;    !   exclamation mark&#10;"></outline>
+<outline text="Markdown: Syntax" _note="&#10;&lt;ul id=&quot;ProjectSubmenu&quot;&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/&quot; title=&quot;Markdown Project Page&quot;&gt;Main&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/basics&quot; title=&quot;Markdown Basics&quot;&gt;Basics&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a class=&quot;selected&quot; title=&quot;Markdown Syntax Documentation&quot;&gt;Syntax&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/license&quot; title=&quot;Pricing and License Information&quot;&gt;License&lt;/a&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;a href=&quot;/projects/markdown/dingus&quot; title=&quot;Online Markdown Web Form&quot;&gt;Dingus&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&#10;*   [Overview](#overview)&#10;    *   [Philosophy](#philosophy)&#10;    *   [Inline HTML](#html)&#10;    *   [Automatic Escaping for Special Characters](#autoescape)&#10;*   [Block Elements](#block)&#10;    *   [Paragraphs and Line Breaks](#p)&#10;    *   [Headers](#header)&#10;    *   [Blockquotes](#blockquote)&#10;    *   [Lists](#list)&#10;    *   [Code Blocks](#precode)&#10;    *   [Horizontal Rules](#hr)&#10;*   [Span Elements](#span)&#10;    *   [Links](#link)&#10;    *   [Emphasis](#em)&#10;    *   [Code](#code)&#10;    *   [Images](#img)&#10;*   [Miscellaneous](#misc)&#10;    *   [Backslash Escapes](#backslash)&#10;    *   [Automatic Links](#autolink)&#10;&#10;&#10;**Note:** This document is itself written using Markdown; you&#10;can [see the source for it by adding &apos;.text&apos; to the URL][src].&#10;&#10;  [src]: /projects/markdown/syntax.text&#10;&#10;* * *&#10;&#10;&lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;philosophy&quot;&gt;Philosophy&lt;/h3&gt;&#10;&#10;Markdown is intended to be as easy-to-read and easy-to-write as is feasible.&#10;&#10;Readability, however, is emphasized above all else. A Markdown-formatted&#10;document should be publishable as-is, as plain text, without looking&#10;like it&apos;s been marked up with tags or formatting instructions. While&#10;Markdown&apos;s syntax has been influenced by several existing text-to-HTML&#10;filters -- including [Setext][1], [atx][2], [Textile][3], [reStructuredText][4],&#10;[Grutatext][5], and [EtText][6] -- the single biggest source of&#10;inspiration for Markdown&apos;s syntax is the format of plain text email.&#10;&#10;  [1]: http://docutils.sourceforge.net/mirror/setext.html&#10;  [2]: http://www.aaronsw.com/2002/atx/&#10;  [3]: http://textism.com/tools/textile/&#10;  [4]: http://docutils.sourceforge.net/rst.html&#10;  [5]: http://www.triptico.com/software/grutatxt.html&#10;  [6]: http://ettext.taint.org/doc/&#10;&#10;To this end, Markdown&apos;s syntax is comprised entirely of punctuation&#10;characters, which punctuation characters have been carefully chosen so&#10;as to look like what they mean. E.g., asterisks around a word actually&#10;look like \*emphasis\*. Markdown lists look like, well, lists. Even&#10;blockquotes look like quoted passages of text, assuming you&apos;ve ever&#10;used email.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;html&quot;&gt;Inline HTML&lt;/h3&gt;&#10;&#10;Markdown&apos;s syntax is intended for one purpose: to be used as a&#10;format for *writing* for the web.&#10;&#10;Markdown is not a replacement for HTML, or even close to it. Its&#10;syntax is very small, corresponding only to a very small subset of&#10;HTML tags. The idea is *not* to create a syntax that makes it easier&#10;to insert HTML tags. In my opinion, HTML tags are already easy to&#10;insert. The idea for Markdown is to make it easy to read, write, and&#10;edit prose. HTML is a *publishing* format; Markdown is a *writing*&#10;format. Thus, Markdown&apos;s formatting syntax only addresses issues that&#10;can be conveyed in plain text.&#10;&#10;For any markup that is not covered by Markdown&apos;s syntax, you simply&#10;use HTML itself. There&apos;s no need to preface it or delimit it to&#10;indicate that you&apos;re switching from Markdown to HTML; you just use&#10;the tags.&#10;&#10;The only restrictions are that block-level HTML elements -- e.g. `&lt;div&gt;`,&#10;`&lt;table&gt;`, `&lt;pre&gt;`, `&lt;p&gt;`, etc. -- must be separated from surrounding&#10;content by blank lines, and the start and end tags of the block should&#10;not be indented with tabs or spaces. Markdown is smart enough not&#10;to add extra (unwanted) `&lt;p&gt;` tags around HTML block-level tags.&#10;&#10;For example, to add an HTML table to a Markdown article:&#10;&#10;    This is a regular paragraph.&#10;&#10;    &lt;table&gt;&#10;        &lt;tr&gt;&#10;            &lt;td&gt;Foo&lt;/td&gt;&#10;        &lt;/tr&gt;&#10;    &lt;/table&gt;&#10;&#10;    This is another regular paragraph.&#10;&#10;Note that Markdown formatting syntax is not processed within block-level&#10;HTML tags. E.g., you can&apos;t use Markdown-style `*emphasis*` inside an&#10;HTML block.&#10;&#10;Span-level HTML tags -- e.g. `&lt;span&gt;`, `&lt;cite&gt;`, or `&lt;del&gt;` -- can be&#10;used anywhere in a Markdown paragraph, list item, or header. If you&#10;want, you can even use HTML tags instead of Markdown formatting; e.g. if&#10;you&apos;d prefer to use HTML `&lt;a&gt;` or `&lt;img&gt;` tags instead of Markdown&apos;s&#10;link or image syntax, go right ahead.&#10;&#10;Unlike block-level HTML tags, Markdown syntax *is* processed within&#10;span-level tags.&#10;&#10;&#10;&lt;h3 id=&quot;autoescape&quot;&gt;Automatic Escaping for Special Characters&lt;/h3&gt;&#10;&#10;In HTML, there are two characters that demand special treatment: `&lt;`&#10;and `&amp;`. Left angle brackets are used to start tags; ampersands are&#10;used to denote HTML entities. If you want to use them as literal&#10;characters, you must escape them as entities, e.g. `&amp;lt;`, and&#10;`&amp;amp;`.&#10;&#10;Ampersands in particular are bedeviling for web writers. If you want to&#10;write about &apos;AT&amp;T&apos;, you need to write &apos;`AT&amp;amp;T`&apos;. You even need to&#10;escape ampersands within URLs. Thus, if you want to link to:&#10;&#10;    http://images.google.com/images?num=30&amp;q=larry+bird&#10;&#10;you need to encode the URL as:&#10;&#10;    http://images.google.com/images?num=30&amp;amp;q=larry+bird&#10;&#10;in your anchor tag `href` attribute. Needless to say, this is easy to&#10;forget, and is probably the single most common source of HTML validation&#10;errors in otherwise well-marked-up web sites.&#10;&#10;Markdown allows you to use these characters naturally, taking care of&#10;all the necessary escaping for you. If you use an ampersand as part of&#10;an HTML entity, it remains unchanged; otherwise it will be translated&#10;into `&amp;amp;`.&#10;&#10;So, if you want to include a copyright symbol in your article, you can write:&#10;&#10;    &amp;copy;&#10;&#10;and Markdown will leave it alone. But if you write:&#10;&#10;    AT&amp;T&#10;&#10;Markdown will translate it to:&#10;&#10;    AT&amp;amp;T&#10;&#10;Similarly, because Markdown supports [inline HTML](#html), if you use&#10;angle brackets as delimiters for HTML tags, Markdown will treat them as&#10;such. But if you write:&#10;&#10;    4 &lt; 5&#10;&#10;Markdown will translate it to:&#10;&#10;    4 &amp;lt; 5&#10;&#10;However, inside Markdown code spans and blocks, angle brackets and&#10;ampersands are *always* encoded automatically. This makes it easy to use&#10;Markdown to write about HTML code. (As opposed to raw HTML, which is a&#10;terrible format for writing about HTML syntax, because every single `&lt;`&#10;and `&amp;` in your example code needs to be escaped.)&#10;&#10;&#10;* * *&#10;&#10;&#10;&lt;h2 id=&quot;block&quot;&gt;Block Elements&lt;/h2&gt;&#10;&#10;&#10;&lt;h3 id=&quot;p&quot;&gt;Paragraphs and Line Breaks&lt;/h3&gt;&#10;&#10;A paragraph is simply one or more consecutive lines of text, separated&#10;by one or more blank lines. (A blank line is any line that looks like a&#10;blank line -- a line containing nothing but spaces or tabs is considered&#10;blank.) Normal paragraphs should not be indented with spaces or tabs.&#10;&#10;The implication of the &quot;one or more consecutive lines of text&quot; rule is&#10;that Markdown supports &quot;hard-wrapped&quot; text paragraphs. This differs&#10;significantly from most other text-to-HTML formatters (including Movable&#10;Type&apos;s &quot;Convert Line Breaks&quot; option) which translate every line break&#10;character in a paragraph into a `&lt;br /&gt;` tag.&#10;&#10;When you *do* want to insert a `&lt;br /&gt;` break tag using Markdown, you&#10;end a line with two or more spaces, then type return.&#10;&#10;Yes, this takes a tad more effort to create a `&lt;br /&gt;`, but a simplistic&#10;&quot;every line break is a `&lt;br /&gt;`&quot; rule wouldn&apos;t work for Markdown.&#10;Markdown&apos;s email-style [blockquoting][bq] and multi-paragraph [list items][l]&#10;work best -- and look better -- when you format them with hard breaks.&#10;&#10;  [bq]: #blockquote&#10;  [l]:  #list&#10;&#10;&#10;&#10;&lt;h3 id=&quot;header&quot;&gt;Headers&lt;/h3&gt;&#10;&#10;Markdown supports two styles of headers, [Setext][1] and [atx][2].&#10;&#10;Setext-style headers are &quot;underlined&quot; using equal signs (for first-level&#10;headers) and dashes (for second-level headers). For example:&#10;&#10;    This is an H1&#10;    =============&#10;&#10;    This is an H2&#10;    -------------&#10;&#10;Any number of underlining `=`&apos;s or `-`&apos;s will work.&#10;&#10;Atx-style headers use 1-6 hash characters at the start of the line,&#10;corresponding to header levels 1-6. For example:&#10;&#10;    # This is an H1&#10;&#10;    ## This is an H2&#10;&#10;    ###### This is an H6&#10;&#10;Optionally, you may &quot;close&quot; atx-style headers. This is purely&#10;cosmetic -- you can use this if you think it looks better. The&#10;closing hashes don&apos;t even need to match the number of hashes&#10;used to open the header. (The number of opening hashes&#10;determines the header level.) :&#10;&#10;    # This is an H1 #&#10;&#10;    ## This is an H2 ##&#10;&#10;    ### This is an H3 ######&#10;&#10;&#10;&lt;h3 id=&quot;blockquote&quot;&gt;Blockquotes&lt;/h3&gt;&#10;&#10;Markdown uses email-style `&gt;` characters for blockquoting. If you&apos;re&#10;familiar with quoting passages of text in an email message, then you&#10;know how to create a blockquote in Markdown. It looks best if you hard&#10;wrap the text and put a `&gt;` before every line:&#10;&#10;    &gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&#10;    &gt; consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&#10;    &gt; Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&#10;    &gt; &#10;    &gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&#10;    &gt; id sem consectetuer libero luctus adipiscing.&#10;&#10;Markdown allows you to be lazy and only put the `&gt;` before the first&#10;line of a hard-wrapped paragraph:&#10;&#10;    &gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&#10;    consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&#10;    Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&#10;&#10;    &gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&#10;    id sem consectetuer libero luctus adipiscing.&#10;&#10;Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by&#10;adding additional levels of `&gt;`:&#10;&#10;    &gt; This is the first level of quoting.&#10;    &gt;&#10;    &gt; &gt; This is nested blockquote.&#10;    &gt;&#10;    &gt; Back to the first level.&#10;&#10;Blockquotes can contain other Markdown elements, including headers, lists,&#10;and code blocks:&#10;&#10;&#9;&gt; ## This is a header.&#10;&#9;&gt; &#10;&#9;&gt; 1.   This is the first list item.&#10;&#9;&gt; 2.   This is the second list item.&#10;&#9;&gt; &#10;&#9;&gt; Here&apos;s some example code:&#10;&#9;&gt; &#10;&#9;&gt;     return shell_exec(&quot;echo $input | $markdown_script&quot;);&#10;&#10;Any decent text editor should make email-style quoting easy. For&#10;example, with BBEdit, you can make a selection and choose Increase&#10;Quote Level from the Text menu.&#10;&#10;&#10;&lt;h3 id=&quot;list&quot;&gt;Lists&lt;/h3&gt;&#10;&#10;Markdown supports ordered (numbered) and unordered (bulleted) lists.&#10;&#10;Unordered lists use asterisks, pluses, and hyphens -- interchangably&#10;-- as list markers:&#10;&#10;    *   Red&#10;    *   Green&#10;    *   Blue&#10;&#10;is equivalent to:&#10;&#10;    +   Red&#10;    +   Green&#10;    +   Blue&#10;&#10;and:&#10;&#10;    -   Red&#10;    -   Green&#10;    -   Blue&#10;&#10;Ordered lists use numbers followed by periods:&#10;&#10;    1.  Bird&#10;    2.  McHale&#10;    3.  Parish&#10;&#10;It&apos;s important to note that the actual numbers you use to mark the&#10;list have no effect on the HTML output Markdown produces. The HTML&#10;Markdown produces from the above list is:&#10;&#10;    &lt;ol&gt;&#10;    &lt;li&gt;Bird&lt;/li&gt;&#10;    &lt;li&gt;McHale&lt;/li&gt;&#10;    &lt;li&gt;Parish&lt;/li&gt;&#10;    &lt;/ol&gt;&#10;&#10;If you instead wrote the list in Markdown like this:&#10;&#10;    1.  Bird&#10;    1.  McHale&#10;    1.  Parish&#10;&#10;or even:&#10;&#10;    3. Bird&#10;    1. McHale&#10;    8. Parish&#10;&#10;you&apos;d get the exact same HTML output. The point is, if you want to,&#10;you can use ordinal numbers in your ordered Markdown lists, so that&#10;the numbers in your source match the numbers in your published HTML.&#10;But if you want to be lazy, you don&apos;t have to.&#10;&#10;If you do use lazy list numbering, however, you should still start the&#10;list with the number 1. At some point in the future, Markdown may support&#10;starting ordered lists at an arbitrary number.&#10;&#10;List markers typically start at the left margin, but may be indented by&#10;up to three spaces. List markers must be followed by one or more spaces&#10;or a tab.&#10;&#10;To make lists look nice, you can wrap items with hanging indents:&#10;&#10;    *   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&#10;        Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,&#10;        viverra nec, fringilla in, laoreet vitae, risus.&#10;    *   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.&#10;        Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;But if you want to be lazy, you don&apos;t have to:&#10;&#10;    *   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&#10;    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,&#10;    viverra nec, fringilla in, laoreet vitae, risus.&#10;    *   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.&#10;    Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;If list items are separated by blank lines, Markdown will wrap the&#10;items in `&lt;p&gt;` tags in the HTML output. For example, this input:&#10;&#10;    *   Bird&#10;    *   Magic&#10;&#10;will turn into:&#10;&#10;    &lt;ul&gt;&#10;    &lt;li&gt;Bird&lt;/li&gt;&#10;    &lt;li&gt;Magic&lt;/li&gt;&#10;    &lt;/ul&gt;&#10;&#10;But this:&#10;&#10;    *   Bird&#10;&#10;    *   Magic&#10;&#10;will turn into:&#10;&#10;    &lt;ul&gt;&#10;    &lt;li&gt;&lt;p&gt;Bird&lt;/p&gt;&lt;/li&gt;&#10;    &lt;li&gt;&lt;p&gt;Magic&lt;/p&gt;&lt;/li&gt;&#10;    &lt;/ul&gt;&#10;&#10;List items may consist of multiple paragraphs. Each subsequent&#10;paragraph in a list item must be indented by either 4 spaces&#10;or one tab:&#10;&#10;    1.  This is a list item with two paragraphs. Lorem ipsum dolor&#10;        sit amet, consectetuer adipiscing elit. Aliquam hendrerit&#10;        mi posuere lectus.&#10;&#10;        Vestibulum enim wisi, viverra nec, fringilla in, laoreet&#10;        vitae, risus. Donec sit amet nisl. Aliquam semper ipsum&#10;        sit amet velit.&#10;&#10;    2.  Suspendisse id sem consectetuer libero luctus adipiscing.&#10;&#10;It looks nice if you indent every line of the subsequent&#10;paragraphs, but here again, Markdown will allow you to be&#10;lazy:&#10;&#10;    *   This is a list item with two paragraphs.&#10;&#10;        This is the second paragraph in the list item. You&apos;re&#10;    only required to indent the first line. Lorem ipsum dolor&#10;    sit amet, consectetuer adipiscing elit.&#10;&#10;    *   Another item in the same list.&#10;&#10;To put a blockquote within a list item, the blockquote&apos;s `&gt;`&#10;delimiters need to be indented:&#10;&#10;    *   A list item with a blockquote:&#10;&#10;        &gt; This is a blockquote&#10;        &gt; inside a list item.&#10;&#10;To put a code block within a list item, the code block needs&#10;to be indented *twice* -- 8 spaces or two tabs:&#10;&#10;    *   A list item with a code block:&#10;&#10;            &lt;code goes here&gt;&#10;&#10;&#10;It&apos;s worth noting that it&apos;s possible to trigger an ordered list by&#10;accident, by writing something like this:&#10;&#10;    1986. What a great season.&#10;&#10;In other words, a *number-period-space* sequence at the beginning of a&#10;line. To avoid this, you can backslash-escape the period:&#10;&#10;    1986\. What a great season.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;precode&quot;&gt;Code Blocks&lt;/h3&gt;&#10;&#10;Pre-formatted code blocks are used for writing about programming or&#10;markup source code. Rather than forming normal paragraphs, the lines&#10;of a code block are interpreted literally. Markdown wraps a code block&#10;in both `&lt;pre&gt;` and `&lt;code&gt;` tags.&#10;&#10;To produce a code block in Markdown, simply indent every line of the&#10;block by at least 4 spaces or 1 tab. For example, given this input:&#10;&#10;    This is a normal paragraph:&#10;&#10;        This is a code block.&#10;&#10;Markdown will generate:&#10;&#10;    &lt;p&gt;This is a normal paragraph:&lt;/p&gt;&#10;&#10;    &lt;pre&gt;&lt;code&gt;This is a code block.&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;One level of indentation -- 4 spaces or 1 tab -- is removed from each&#10;line of the code block. For example, this:&#10;&#10;    Here is an example of AppleScript:&#10;&#10;        tell application &quot;Foo&quot;&#10;            beep&#10;        end tell&#10;&#10;will turn into:&#10;&#10;    &lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;&#10;&#10;    &lt;pre&gt;&lt;code&gt;tell application &quot;Foo&quot;&#10;        beep&#10;    end tell&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;A code block continues until it reaches a line that is not indented&#10;(or the end of the article).&#10;&#10;Within a code block, ampersands (`&amp;`) and angle brackets (`&lt;` and `&gt;`)&#10;are automatically converted into HTML entities. This makes it very&#10;easy to include example HTML source code using Markdown -- just paste&#10;it and indent it, and Markdown will handle the hassle of encoding the&#10;ampersands and angle brackets. For example, this:&#10;&#10;        &lt;div class=&quot;footer&quot;&gt;&#10;            &amp;copy; 2004 Foo Corporation&#10;        &lt;/div&gt;&#10;&#10;will turn into:&#10;&#10;    &lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;footer&quot;&amp;gt;&#10;        &amp;amp;copy; 2004 Foo Corporation&#10;    &amp;lt;/div&amp;gt;&#10;    &lt;/code&gt;&lt;/pre&gt;&#10;&#10;Regular Markdown syntax is not processed within code blocks. E.g.,&#10;asterisks are just literal asterisks within a code block. This means&#10;it&apos;s also easy to use Markdown to write about Markdown&apos;s own syntax.&#10;&#10;&#10;&#10;&lt;h3 id=&quot;hr&quot;&gt;Horizontal Rules&lt;/h3&gt;&#10;&#10;You can produce a horizontal rule tag (`&lt;hr /&gt;`) by placing three or&#10;more hyphens, asterisks, or underscores on a line by themselves. If you&#10;wish, you may use spaces between the hyphens or asterisks. Each of the&#10;following lines will produce a horizontal rule:&#10;&#10;    * * *&#10;&#10;    ***&#10;&#10;    *****&#10;&#10;    - - -&#10;&#10;    ---------------------------------------&#10;&#10;&#10;* * *&#10;&#10;&lt;h2 id=&quot;span&quot;&gt;Span Elements&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;link&quot;&gt;Links&lt;/h3&gt;&#10;&#10;Markdown supports two style of links: *inline* and *reference*.&#10;&#10;In both styles, the link text is delimited by [square brackets].&#10;&#10;To create an inline link, use a set of regular parentheses immediately&#10;after the link text&apos;s closing square bracket. Inside the parentheses,&#10;put the URL where you want the link to point, along with an *optional*&#10;title for the link, surrounded in quotes. For example:&#10;&#10;    This is [an example](http://example.com/ &quot;Title&quot;) inline link.&#10;&#10;    [This link](http://example.net/) has no title attribute.&#10;&#10;Will produce:&#10;&#10;    &lt;p&gt;This is &lt;a href=&quot;http://example.com/&quot; title=&quot;Title&quot;&gt;&#10;    an example&lt;/a&gt; inline link.&lt;/p&gt;&#10;&#10;    &lt;p&gt;&lt;a href=&quot;http://example.net/&quot;&gt;This link&lt;/a&gt; has no&#10;    title attribute.&lt;/p&gt;&#10;&#10;If you&apos;re referring to a local resource on the same server, you can&#10;use relative paths:&#10;&#10;    See my [About](/about/) page for details.   &#10;&#10;Reference-style links use a second set of square brackets, inside&#10;which you place a label of your choosing to identify the link:&#10;&#10;    This is [an example][id] reference-style link.&#10;&#10;You can optionally use a space to separate the sets of brackets:&#10;&#10;    This is [an example] [id] reference-style link.&#10;&#10;Then, anywhere in the document, you define your link label like this,&#10;on a line by itself:&#10;&#10;    [id]: http://example.com/  &quot;Optional Title Here&quot;&#10;&#10;That is:&#10;&#10;*   Square brackets containing the link identifier (optionally&#10;    indented from the left margin using up to three spaces);&#10;*   followed by a colon;&#10;*   followed by one or more spaces (or tabs);&#10;*   followed by the URL for the link;&#10;*   optionally followed by a title attribute for the link, enclosed&#10;    in double or single quotes, or enclosed in parentheses.&#10;&#10;The following three link definitions are equivalent:&#10;&#10;&#9;[foo]: http://example.com/  &quot;Optional Title Here&quot;&#10;&#9;[foo]: http://example.com/  &apos;Optional Title Here&apos;&#10;&#9;[foo]: http://example.com/  (Optional Title Here)&#10;&#10;**Note:** There is a known bug in Markdown.pl 1.0.1 which prevents&#10;single quotes from being used to delimit link titles.&#10;&#10;The link URL may, optionally, be surrounded by angle brackets:&#10;&#10;    [id]: &lt;http://example.com/&gt;  &quot;Optional Title Here&quot;&#10;&#10;You can put the title attribute on the next line and use extra spaces&#10;or tabs for padding, which tends to look better with longer URLs:&#10;&#10;    [id]: http://example.com/longish/path/to/resource/here&#10;        &quot;Optional Title Here&quot;&#10;&#10;Link definitions are only used for creating links during Markdown&#10;processing, and are stripped from your document in the HTML output.&#10;&#10;Link definition names may consist of letters, numbers, spaces, and&#10;punctuation -- but they are *not* case sensitive. E.g. these two&#10;links:&#10;&#10;&#9;[link text][a]&#10;&#9;[link text][A]&#10;&#10;are equivalent.&#10;&#10;The *implicit link name* shortcut allows you to omit the name of the&#10;link, in which case the link text itself is used as the name.&#10;Just use an empty set of square brackets -- e.g., to link the word&#10;&quot;Google&quot; to the google.com web site, you could simply write:&#10;&#10;&#9;[Google][]&#10;&#10;And then define the link:&#10;&#10;&#9;[Google]: http://google.com/&#10;&#10;Because link names may contain spaces, this shortcut even works for&#10;multiple words in the link text:&#10;&#10;&#9;Visit [Daring Fireball][] for more information.&#10;&#10;And then define the link:&#10;&#9;&#10;&#9;[Daring Fireball]: http://daringfireball.net/&#10;&#10;Link definitions can be placed anywhere in your Markdown document. I&#10;tend to put them immediately after each paragraph in which they&apos;re&#10;used, but if you want, you can put them all at the end of your&#10;document, sort of like footnotes.&#10;&#10;Here&apos;s an example of reference links in action:&#10;&#10;    I get 10 times more traffic from [Google] [1] than from&#10;    [Yahoo] [2] or [MSN] [3].&#10;&#10;      [1]: http://google.com/        &quot;Google&quot;&#10;      [2]: http://search.yahoo.com/  &quot;Yahoo Search&quot;&#10;      [3]: http://search.msn.com/    &quot;MSN Search&quot;&#10;&#10;Using the implicit link name shortcut, you could instead write:&#10;&#10;    I get 10 times more traffic from [Google][] than from&#10;    [Yahoo][] or [MSN][].&#10;&#10;      [google]: http://google.com/        &quot;Google&quot;&#10;      [yahoo]:  http://search.yahoo.com/  &quot;Yahoo Search&quot;&#10;      [msn]:    http://search.msn.com/    &quot;MSN Search&quot;&#10;&#10;Both of the above examples will produce the following HTML output:&#10;&#10;    &lt;p&gt;I get 10 times more traffic from &lt;a href=&quot;http://google.com/&quot;&#10;    title=&quot;Google&quot;&gt;Google&lt;/a&gt; than from&#10;    &lt;a href=&quot;http://search.yahoo.com/&quot; title=&quot;Yahoo Search&quot;&gt;Yahoo&lt;/a&gt;&#10;    or &lt;a href=&quot;http://search.msn.com/&quot; title=&quot;MSN Search&quot;&gt;MSN&lt;/a&gt;.&lt;/p&gt;&#10;&#10;For comparison, here is the same paragraph written using&#10;Markdown&apos;s inline link style:&#10;&#10;    I get 10 times more traffic from [Google](http://google.com/ &quot;Google&quot;)&#10;    than from [Yahoo](http://search.yahoo.com/ &quot;Yahoo Search&quot;) or&#10;    [MSN](http://search.msn.com/ &quot;MSN Search&quot;).&#10;&#10;The point of reference-style links is not that they&apos;re easier to&#10;write. The point is that with reference-style links, your document&#10;source is vastly more readable. Compare the above examples: using&#10;reference-style links, the paragraph itself is only 81 characters&#10;long; with inline-style links, it&apos;s 176 characters; and as raw HTML,&#10;it&apos;s 234 characters. In the raw HTML, there&apos;s more markup than there&#10;is text.&#10;&#10;With Markdown&apos;s reference-style links, a source document much more&#10;closely resembles the final output, as rendered in a browser. By&#10;allowing you to move the markup-related metadata out of the paragraph,&#10;you can add links without interrupting the narrative flow of your&#10;prose.&#10;&#10;&#10;&lt;h3 id=&quot;em&quot;&gt;Emphasis&lt;/h3&gt;&#10;&#10;Markdown treats asterisks (`*`) and underscores (`_`) as indicators of&#10;emphasis. Text wrapped with one `*` or `_` will be wrapped with an&#10;HTML `&lt;em&gt;` tag; double `*`&apos;s or `_`&apos;s will be wrapped with an HTML&#10;`&lt;strong&gt;` tag. E.g., this input:&#10;&#10;    *single asterisks*&#10;&#10;    _single underscores_&#10;&#10;    **double asterisks**&#10;&#10;    __double underscores__&#10;&#10;will produce:&#10;&#10;    &lt;em&gt;single asterisks&lt;/em&gt;&#10;&#10;    &lt;em&gt;single underscores&lt;/em&gt;&#10;&#10;    &lt;strong&gt;double asterisks&lt;/strong&gt;&#10;&#10;    &lt;strong&gt;double underscores&lt;/strong&gt;&#10;&#10;You can use whichever style you prefer; the lone restriction is that&#10;the same character must be used to open and close an emphasis span.&#10;&#10;Emphasis can be used in the middle of a word:&#10;&#10;    un*frigging*believable&#10;&#10;But if you surround an `*` or `_` with spaces, it&apos;ll be treated as a&#10;literal asterisk or underscore.&#10;&#10;To produce a literal asterisk or underscore at a position where it&#10;would otherwise be used as an emphasis delimiter, you can backslash&#10;escape it:&#10;&#10;    \*this text is surrounded by literal asterisks\*&#10;&#10;&#10;&#10;&lt;h3 id=&quot;code&quot;&gt;Code&lt;/h3&gt;&#10;&#10;To indicate a span of code, wrap it with backtick quotes (`` ` ``).&#10;Unlike a pre-formatted code block, a code span indicates code within a&#10;normal paragraph. For example:&#10;&#10;    Use the `printf()` function.&#10;&#10;will produce:&#10;&#10;    &lt;p&gt;Use the &lt;code&gt;printf()&lt;/code&gt; function.&lt;/p&gt;&#10;&#10;To include a literal backtick character within a code span, you can use&#10;multiple backticks as the opening and closing delimiters:&#10;&#10;    ``There is a literal backtick (`) here.``&#10;&#10;which will produce this:&#10;&#10;    &lt;p&gt;&lt;code&gt;There is a literal backtick (`) here.&lt;/code&gt;&lt;/p&gt;&#10;&#10;The backtick delimiters surrounding a code span may include spaces --&#10;one after the opening, one before the closing. This allows you to place&#10;literal backtick characters at the beginning or end of a code span:&#10;&#10;&#9;A single backtick in a code span: `` ` ``&#10;&#9;&#10;&#9;A backtick-delimited string in a code span: `` `foo` ``&#10;&#10;will produce:&#10;&#10;&#9;&lt;p&gt;A single backtick in a code span: &lt;code&gt;`&lt;/code&gt;&lt;/p&gt;&#10;&#9;&#10;&#9;&lt;p&gt;A backtick-delimited string in a code span: &lt;code&gt;`foo`&lt;/code&gt;&lt;/p&gt;&#10;&#10;With a code span, ampersands and angle brackets are encoded as HTML&#10;entities automatically, which makes it easy to include example HTML&#10;tags. Markdown will turn this:&#10;&#10;    Please don&apos;t use any `&lt;blink&gt;` tags.&#10;&#10;into:&#10;&#10;    &lt;p&gt;Please don&apos;t use any &lt;code&gt;&amp;lt;blink&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#10;&#10;You can write this:&#10;&#10;    `&amp;#8212;` is the decimal-encoded equivalent of `&amp;mdash;`.&#10;&#10;to produce:&#10;&#10;    &lt;p&gt;&lt;code&gt;&amp;amp;#8212;&lt;/code&gt; is the decimal-encoded&#10;    equivalent of &lt;code&gt;&amp;amp;mdash;&lt;/code&gt;.&lt;/p&gt;&#10;&#10;&#10;&#10;&lt;h3 id=&quot;img&quot;&gt;Images&lt;/h3&gt;&#10;&#10;Admittedly, it&apos;s fairly difficult to devise a &quot;natural&quot; syntax for&#10;placing images into a plain text document format.&#10;&#10;Markdown uses an image syntax that is intended to resemble the syntax&#10;for links, allowing for two styles: *inline* and *reference*.&#10;&#10;Inline image syntax looks like this:&#10;&#10;    ![Alt text](/path/to/img.jpg)&#10;&#10;    ![Alt text](/path/to/img.jpg &quot;Optional title&quot;)&#10;&#10;That is:&#10;&#10;*   An exclamation mark: `!`;&#10;*   followed by a set of square brackets, containing the `alt`&#10;    attribute text for the image;&#10;*   followed by a set of parentheses, containing the URL or path to&#10;    the image, and an optional `title` attribute enclosed in double&#10;    or single quotes.&#10;&#10;Reference-style image syntax looks like this:&#10;&#10;    ![Alt text][id]&#10;&#10;Where &quot;id&quot; is the name of a defined image reference. Image references&#10;are defined using syntax identical to link references:&#10;&#10;    [id]: url/to/image  &quot;Optional title attribute&quot;&#10;&#10;As of this writing, Markdown has no syntax for specifying the&#10;dimensions of an image; if this is important to you, you can simply&#10;use regular HTML `&lt;img&gt;` tags.&#10;&#10;&#10;* * *&#10;&#10;&#10;&lt;h2 id=&quot;misc&quot;&gt;Miscellaneous&lt;/h2&gt;&#10;&#10;&lt;h3 id=&quot;autolink&quot;&gt;Automatic Links&lt;/h3&gt;&#10;&#10;Markdown supports a shortcut style for creating &quot;automatic&quot; links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:&#10;&#10;    &lt;http://example.com/&gt;&#10;    &#10;Markdown will turn this into:&#10;&#10;    &lt;a href=&quot;http://example.com/&quot;&gt;http://example.com/&lt;/a&gt;&#10;&#10;Automatic links for email addresses work similarly, except that&#10;Markdown will also perform a bit of randomized decimal and hex&#10;entity-encoding to help obscure your address from address-harvesting&#10;spambots. For example, Markdown will turn this:&#10;&#10;    &lt;address@example.com&gt;&#10;&#10;into something like this:&#10;&#10;    &lt;a href=&quot;&amp;#x6D;&amp;#x61;i&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&#10;    &amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&#10;    &amp;#109;&quot;&gt;&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&#10;    &amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&amp;#109;&lt;/a&gt;&#10;&#10;which will render in a browser as a clickable link to &quot;address@example.com&quot;.&#10;&#10;(This sort of entity-encoding trick will indeed fool many, if not&#10;most, address-harvesting bots, but it definitely won&apos;t fool all of&#10;them. It&apos;s better than nothing, but an address published in this way&#10;will probably eventually start receiving spam.)&#10;&#10;&#10;&#10;&lt;h3 id=&quot;backslash&quot;&gt;Backslash Escapes&lt;/h3&gt;&#10;&#10;Markdown allows you to use backslash escapes to generate literal&#10;characters which would otherwise have special meaning in Markdown&apos;s&#10;formatting syntax. For example, if you wanted to surround a word&#10;with literal asterisks (instead of an HTML `&lt;em&gt;` tag), you can use&#10;backslashes before the asterisks, like this:&#10;&#10;    \*literal asterisks\*&#10;&#10;Markdown provides backslash escapes for the following characters:&#10;&#10;    \   backslash&#10;    `   backtick&#10;    *   asterisk&#10;    _   underscore&#10;    {}  curly braces&#10;    []  square brackets&#10;    ()  parentheses&#10;    #   hash mark&#10;&#9;+   plus sign&#10;&#9;-   minus sign (hyphen)&#10;    .   dot&#10;    !   exclamation mark&#10;"></outline>
 </body>
 </opml>
 
index 6dc0436a02c4987dc4722b82c57558a853468a8c..2e24e43888f7088c4cd9f644acf22f18bfbc90e1 100644 (file)
@@ -1,4 +1,4 @@
-\part{Markdown: Syntax }
+\part{Markdown: Syntax}
 \label{markdown:syntax}
 
 \begin{itemize}
index ae7cfcf17dabf7c11d68f731403550f61402deb6..6661eb21384e44dd9030c3acb1665d2503e9fe1b 100644 (file)
@@ -282,7 +282,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 <office:text>
 <text:p text:style-name="Standard">foo:<text:tab/>bar</text:p>
 
-<text:h text:outline-level="3"><text:bookmark text:name="foo"/>foo </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="foo"/>foo</text:h>
 </office:text>
 </office:body>
 </office:document>
index a0513e450ecead78e3d332edc8856db1cafcd3bc..662202ad3efaeb7dc13d2719840ae5aa25c365df 100644 (file)
@@ -12,7 +12,7 @@
 
 <p>foo:        bar</p>
 
-<h2 id="foo">foo </h2>
+<h2 id="foo">foo</h2>
 
 </body>
 </html>
index 82add94d51d420bd574d4ea6d435f7ddf25b1380..fd7daa7ac1079838b4dcde0d61d487794196ec4d 100644 (file)
@@ -17,4 +17,4 @@ base header level: 3</p>
 
 <p>foo:        bar</p>
 
-<h1>foo </h1>
+<h1>foo</h1>
index ef649ab3e2f73889d086204d0f526d744bec06b0..17cd67a70a2453a0d91f8eecde85912bc0aeec4e 100644 (file)
@@ -3,7 +3,7 @@
 <head><title>*foo* &quot;bar&quot;</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;foo:&#9;bar&#10;&#10;"></outline>
-<outline text="foo " _note=""></outline>
+<outline text="foo" _note=""></outline>
 <outline text="Metadata">
 <outline text="title" _note="*foo* &quot;bar&quot;"/>
 <outline text="empty" _note=""/>
index e7cb5a14189fd88bd714eac6b3026c63394a8bae..799870845f2111ed9ce589da5487a4c53f427bdd 100644 (file)
@@ -6,7 +6,7 @@
 
 foo:   bar
 
-\chapter{foo }
+\chapter{foo}
 \label{foo}
 
 \input{mmd6-article-footer}
index 3479e5de5efe161a9e587dc68b193501fca0c6fa..5036a3c3ff8ad6eca1799c4bfc297a91f7aa56f1 100644 (file)
@@ -302,29 +302,29 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 </text:table-of-content>
 
 
-<text:h text:outline-level="2"><text:bookmark text:name="secondlevel"/>Second Level </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="secondlevel"/>Second Level</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="firstlevel"/>First Level </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="firstlevel"/>First Level</text:h>
 
-<text:h text:outline-level="2"><text:bookmark text:name="secondlevelb"/>Second Level b </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="secondlevelb"/>Second Level b</text:h>
 
-<text:h text:outline-level="3"><text:bookmark text:name="thirdlevel"/>Third Level </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="thirdlevel"/>Third Level</text:h>
 
-<text:h text:outline-level="2"><text:bookmark text:name="secondlevelc"/>Second Level c </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="secondlevelc"/>Second Level c</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="firstlevelb"/>First Level b </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="firstlevelb"/>First Level b</text:h>
 
-<text:h text:outline-level="3"><text:bookmark text:name="thirdlevelb"/>Third Level b </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="thirdlevelb"/>Third Level b</text:h>
 
-<text:h text:outline-level="2"><text:bookmark text:name="secondleveld"/>Second level d </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="secondleveld"/>Second level d</text:h>
 
-<text:h text:outline-level="3"><text:bookmark text:name="thirdleveld"/>Third level d </text:h>
+<text:h text:outline-level="3"><text:bookmark text:name="thirdleveld"/>Third level d</text:h>
 
-<text:h text:outline-level="4"><text:bookmark text:name="fourthleveld"/>Fourth level d </text:h>
+<text:h text:outline-level="4"><text:bookmark text:name="fourthleveld"/>Fourth level d</text:h>
 
-<text:h text:outline-level="1"><text:bookmark text:name="firstlevele"/>First level  </text:h>
+<text:h text:outline-level="1"><text:bookmark text:name="firstlevele"/>First level</text:h>
 
-<text:h text:outline-level="2"><text:bookmark text:name="secondlevele"/>Second level  </text:h>
+<text:h text:outline-level="2"><text:bookmark text:name="secondlevele"/>Second level</text:h>
 </office:text>
 </office:body>
 </office:document>
index b03d0822b5962dd9859fe87bdc42d421f1999b69..4c5cdad69e420dfe13d24c44b72075fb00d62026 100644 (file)
 </ul>
 </div>
 
-<h2 id="secondlevel">Second Level </h2>
+<h2 id="secondlevel">Second Level</h2>
 
-<h1 id="firstlevel">First Level </h1>
+<h1 id="firstlevel">First Level</h1>
 
-<h2 id="secondlevelb">Second Level b </h2>
+<h2 id="secondlevelb">Second Level b</h2>
 
-<h3 id="thirdlevel">Third Level </h3>
+<h3 id="thirdlevel">Third Level</h3>
 
-<h2 id="secondlevelc">Second Level c </h2>
+<h2 id="secondlevelc">Second Level c</h2>
 
-<h1 id="firstlevelb">First Level b </h1>
+<h1 id="firstlevelb">First Level b</h1>
 
-<h3 id="thirdlevelb">Third Level b </h3>
+<h3 id="thirdlevelb">Third Level b</h3>
 
-<h2 id="secondleveld">Second level d </h2>
+<h2 id="secondleveld">Second level d</h2>
 
-<h3 id="thirdleveld">Third level d </h3>
+<h3 id="thirdleveld">Third level d</h3>
 
-<h4 id="fourthleveld">Fourth level d </h4>
+<h4 id="fourthleveld">Fourth level d</h4>
 
-<h1 id="firstlevele">First level  </h1>
+<h1 id="firstlevele">First level</h1>
 
-<h2 id="secondlevele">Second level  </h2>
+<h2 id="secondlevele">Second level</h2>
 
 </body>
 </html>
index d90de5a3292f62962dbd7e4e5c9ad83f604653ea..d2f23aa70ab15ba2a27e39f981e64cb7f43280a7 100644 (file)
@@ -3,26 +3,26 @@ latex config: article</p>
 
 <p>{{TOC}}</p>
 
-<h2>Second Level </h2>
+<h2>Second Level</h2>
 
-<h1>First Level </h1>
+<h1>First Level</h1>
 
-<h2>Second Level b </h2>
+<h2>Second Level b</h2>
 
-<h3>Third Level </h3>
+<h3>Third Level</h3>
 
-<h2>Second Level c </h2>
+<h2>Second Level c</h2>
 
-<h1>First Level b </h1>
+<h1>First Level b</h1>
 
-<h3>Third Level b </h3>
+<h3>Third Level b</h3>
 
-<h2>Second level d </h2>
+<h2>Second level d</h2>
 
-<h3>Third level d </h3>
+<h3>Third level d</h3>
 
-<h4>Fourth level d </h4>
+<h4>Fourth level d</h4>
 
-<h1>First level [First Level e] </h1>
+<h1>First level [First Level e]</h1>
 
-<h2>Second level [Second Level e] </h2>
+<h2>Second level [Second Level e]</h2>
index 233a2fdc3c71062607f24f022b16713532635beb..fe6b7fc2fe1a0123a74fa3c1f77033f9cc351389 100644 (file)
@@ -3,17 +3,17 @@
 <head><title>Table of Contents</title></head>
 <body>
 <outline text="(Untitled Preamble)" _note="&#10;{{TOC}}&#10;&#10;"></outline>
-<outline text="Second Level " _note="&#10;"></outline>
-<outline text="First Level " _note="&#10;"><outline text="Second Level b " _note="&#10;"><outline text="Third Level " _note="&#10;"></outline>
+<outline text="Second Level" _note="&#10;"></outline>
+<outline text="First Level" _note="&#10;"><outline text="Second Level b" _note="&#10;"><outline text="Third Level" _note="&#10;"></outline>
 </outline>
-<outline text="Second Level c " _note="&#10;"></outline>
+<outline text="Second Level c" _note="&#10;"></outline>
 </outline>
-<outline text="First Level b " _note="&#10;"><outline text="Third Level b " _note="&#10;"></outline>
-<outline text="Second level d " _note="&#10;"><outline text="Third level d " _note="&#10;"><outline text="Fourth level d " _note="&#10;"></outline>
+<outline text="First Level b" _note="&#10;"><outline text="Third Level b" _note="&#10;"></outline>
+<outline text="Second level d" _note="&#10;"><outline text="Third level d" _note="&#10;"><outline text="Fourth level d" _note="&#10;"></outline>
 </outline>
 </outline>
 </outline>
-<outline text="First level [First Level e] " _note="&#10;"><outline text="Second level [Second Level e] " _note=""></outline>
+<outline text="First level [First Level e]" _note="&#10;"><outline text="Second level [Second Level e]" _note=""></outline>
 </outline>
 <outline text="Metadata">
 <outline text="title" _note="Table of Contents"/>
index 9b99b2b6573f02f39f32a73bc2520667f6dc6045..05f3fc6c733ac106cc2003e336e6bc65c25d66bc 100644 (file)
@@ -4,40 +4,40 @@
 
 \tableofcontents
 
-\chapter{Second Level }
+\chapter{Second Level}
 \label{secondlevel}
 
-\part{First Level }
+\part{First Level}
 \label{firstlevel}
 
-\chapter{Second Level b }
+\chapter{Second Level b}
 \label{secondlevelb}
 
-\section{Third Level }
+\section{Third Level}
 \label{thirdlevel}
 
-\chapter{Second Level c }
+\chapter{Second Level c}
 \label{secondlevelc}
 
-\part{First Level b }
+\part{First Level b}
 \label{firstlevelb}
 
-\section{Third Level b }
+\section{Third Level b}
 \label{thirdlevelb}
 
-\chapter{Second level d }
+\chapter{Second level d}
 \label{secondleveld}
 
-\section{Third level d }
+\section{Third level d}
 \label{thirdleveld}
 
-\subsection{Fourth level d }
+\subsection{Fourth level d}
 \label{fourthleveld}
 
-\part{First level  }
+\part{First level}
 \label{firstlevele}
 
-\chapter{Second level  }
+\chapter{Second level}
 \label{secondlevele}
 
 \input{mmd6-article-footer}
index 54dfb8f42c7bc0fe68dfcdc549ae04cee4a0ee2c..fb7b3bc22d6827934845ae1dbf59843f0fbbeacc 100644 (file)
@@ -11,7 +11,7 @@ This file is a designed as a single test that incorporates most of the
 identify common structures that are not supported yet -- particularly useful
 when developing a new output format.
 
-\part{Basic Blocks }
+\part{Basic Blocks}
 \label{basicblocks}
 
 paragraph
@@ -46,7 +46,7 @@ blockquote
 
 \emph{emph} and \textbf{strong} and \textbf{\emph{both}}
 
-\chapter{Escapes }
+\chapter{Escapes}
 \label{escaped}
 
 \begin{enumerate}
@@ -58,7 +58,7 @@ blockquote
 
 \end{enumerate}
 
-\part{Footnotes }
+\part{Footnotes}
 \label{footnotes}
 
 Foo.\footnote{This is an inline footnote}
@@ -69,7 +69,7 @@ Cite.~\citep{inlinecitation}
 
 Cite.~\citep{foo}
 
-\part{Links and Images }
+\part{Links and Images}
 \label{linksandimages}
 
 \href{http://foo.net/}{link}\footnote{\href{http://foo.net/}{http:\slash \slash foo.net\slash }} and \href{http://bar.net}{link}\footnote{\href{http://bar.net}{http:\slash \slash bar.net}}
@@ -88,7 +88,7 @@ bar (\autoref{bar})
 
 bar (\autoref{bar})
 
-\part{Math }
+\part{Math}
 \label{math}
 
 foo \({e}^{i\pi }+1=0\) bar
@@ -101,12 +101,12 @@ foo ${e}^{i\pi }+1=0$, bar
 
 $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 
-\part{Smart Quotes }
+\part{Smart Quotes}
 \label{smartquotes}
 
 ``foo'' and `bar' -- with --- dashes{\ldots}
 
-\part{CriticMarkup }
+\part{CriticMarkup}
 \label{criticmarkup}
 
 \underline{foo}
@@ -119,7 +119,7 @@ $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 
 \hl{bar}
 
-\part{Definition Lists }
+\part{Definition Lists}
 \label{definitionlists}
 
 \begin{description}
@@ -132,12 +132,12 @@ $${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
 baz bat*
 \end{description}
 
-\part{Horizontal Rules }
+\part{Horizontal Rules}
 \label{horizontalrules}
 
 \begin{center}\rule{3in}{0.4pt}\end{center}
 
-\part{Glossary }
+\part{Glossary}
 \label{glossary}
 
 \gls{term}