├── .astylerc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .travis.yml ├── CMakeLists.txt ├── DevelopmentNotes ├── DevelopmentNotes.epub ├── DevelopmentNotes.fodt ├── DevelopmentNotes.html ├── DevelopmentNotes.pdf └── DevelopmentNotes.txt ├── IMPORTANT ├── LICENSE ├── Makefile ├── QuickStart ├── QuickStart.epub ├── QuickStart.fodt ├── QuickStart.html ├── QuickStart.pdf └── QuickStart.txt ├── README.md ├── configure-gh-pages ├── lemon ├── CMakeLists.txt ├── lemon.c └── lempar.c ├── link_git_modules ├── new_source ├── scripts ├── markdown ├── markdown.bat ├── mmd ├── mmd.bat ├── mmd2all ├── mmd2epub ├── mmd2epub.bat ├── mmd2fodt ├── mmd2fodt.bat ├── mmd2odt ├── mmd2odt.bat ├── mmd2opml ├── mmd2opml.bat ├── mmd2pdf ├── mmd2tex └── mmd2tex.bat ├── src ├── aho-corasick.c ├── aho-corasick.h ├── argtable3.c ├── argtable3.h ├── beamer.c ├── beamer.h ├── char.c ├── char.h ├── char_lookup.c ├── critic_markup.c ├── critic_markup.h ├── d_string.c ├── d_string.h ├── epub.c ├── epub.h ├── file.c ├── file.h ├── html.c ├── html.h ├── i18n.h ├── itmz-lexer.c ├── itmz-lexer.h ├── itmz-lexer.re ├── itmz-parser.c ├── itmz-parser.h ├── itmz-parser.out ├── itmz-parser.y ├── itmz-reader.c ├── itmz-reader.h ├── itmz.c ├── itmz.h ├── latex.c ├── latex.h ├── lexer.c ├── lexer.h ├── lexer.re ├── libMultiMarkdown.h ├── main.c ├── memoir.c ├── memoir.h ├── miniz.c ├── miniz.h ├── mmd.c ├── mmd.h ├── module.modulemap ├── object_pool.c ├── object_pool.h ├── opendocument-content.c ├── opendocument-content.h ├── opendocument.c ├── opendocument.h ├── opml-lexer.c ├── opml-lexer.h ├── opml-lexer.re ├── opml-parser.c ├── opml-parser.h ├── opml-parser.out ├── opml-parser.y ├── opml-reader.c ├── opml-reader.h ├── opml.c ├── opml.h ├── parser.c ├── parser.h ├── parser.out ├── parser.y ├── rng.c ├── scanners.c ├── scanners.h ├── scanners.re ├── stack.c ├── stack.h ├── textbundle.c ├── textbundle.h ├── token.c ├── token.h ├── token_pairs.c ├── token_pairs.h ├── transclude.c ├── transclude.h ├── update ├── uthash.h ├── uuid.c ├── uuid.h ├── writer.c ├── writer.h ├── xml.c ├── xml.h ├── xml.re ├── zip.c └── zip.h ├── swift └── cocoaconv.rb ├── templates ├── README.md.in ├── doxygen.conf.in ├── template.c.in ├── template.h.in └── version.h.in ├── test ├── CuTest.c ├── CuTest.h ├── make-tests.sh ├── parser_test.y ├── speed-compat.sh └── speed-full.sh ├── tests ├── Beamer │ ├── OPML-MMD-Map.pdf │ ├── Raw Source.tex │ ├── Raw Source.text │ ├── What Is MMD.tex │ └── What Is MMD.text ├── Complex │ ├── image.md │ ├── main.md │ ├── nautilus.png │ ├── refs.md │ ├── temp │ │ ├── assets │ │ │ ├── 7850915a-5a55-48ae-b4b6-c6709f337a06 │ │ │ ├── bfe186c1-0479-429b-8171-8eef3ab4c15e │ │ │ └── ea3d95f5-db32-4c35-aa24-a8b590e6aa3f │ │ ├── info.json │ │ ├── main.textpack │ │ ├── text.html │ │ └── text.markdown │ └── test.css ├── CriticMarkup │ ├── CriticMarkup.html │ ├── CriticMarkup.htmla │ ├── CriticMarkup.htmlr │ └── CriticMarkup.text ├── Disabled │ ├── zEmph and Strong Complex.html │ └── zEmph and Strong Complex.text ├── MMD6Tests │ ├── Abbreviations.fodt │ ├── Abbreviations.html │ ├── Abbreviations.htmlc │ ├── Abbreviations.opml │ ├── Abbreviations.tex │ ├── Abbreviations.text │ ├── AdvancedEmphandStrong.fodt │ ├── AdvancedEmphandStrong.html │ ├── AdvancedEmphandStrong.htmlc │ ├── AdvancedEmphandStrong.opml │ ├── AdvancedEmphandStrong.tex │ ├── AdvancedEmphandStrong.text │ ├── AdvancedFencedCodeBlocks.fodt │ ├── AdvancedFencedCodeBlocks.html │ ├── AdvancedFencedCodeBlocks.htmlc │ ├── AdvancedFencedCodeBlocks.opml │ ├── AdvancedFencedCodeBlocks.tex │ ├── AdvancedFencedCodeBlocks.text │ ├── AdvancedHeaders.fodt │ ├── AdvancedHeaders.html │ ├── AdvancedHeaders.htmlc │ ├── AdvancedHeaders.opml │ ├── AdvancedHeaders.tex │ ├── AdvancedHeaders.text │ ├── AmpsandAngles.fodt │ ├── AmpsandAngles.html │ ├── AmpsandAngles.htmlc │ ├── AmpsandAngles.opml │ ├── AmpsandAngles.tex │ ├── AmpsandAngles.text │ ├── AutomaticLinks.fodt │ ├── AutomaticLinks.html │ ├── AutomaticLinks.htmlc │ ├── AutomaticLinks.opml │ ├── AutomaticLinks.tex │ ├── AutomaticLinks.text │ ├── BOM.fodt │ ├── BOM.html │ ├── BOM.htmlc │ ├── BOM.opml │ ├── BOM.tex │ ├── BOM.text │ ├── BasicBlocks.fodt │ ├── BasicBlocks.html │ ├── BasicBlocks.htmlc │ ├── BasicBlocks.opml │ ├── BasicBlocks.tex │ ├── BasicBlocks.text │ ├── BasicLists.fodt │ ├── BasicLists.html │ ├── BasicLists.htmlc │ ├── BasicLists.opml │ ├── BasicLists.tex │ ├── BasicLists.text │ ├── BibTeX.fodt │ ├── BibTeX.html │ ├── BibTeX.htmlc │ ├── BibTeX.opml │ ├── BibTeX.tex │ ├── BibTeX.text │ ├── Blockquotes.fodt │ ├── Blockquotes.html │ ├── Blockquotes.htmlc │ ├── Blockquotes.opml │ ├── Blockquotes.tex │ ├── Blockquotes.text │ ├── Citations.fodt │ ├── Citations.html │ ├── Citations.htmlc │ ├── Citations.opml │ ├── Citations.tex │ ├── Citations.text │ ├── CodeSpans.fodt │ ├── CodeSpans.html │ ├── CodeSpans.htmlc │ ├── CodeSpans.opml │ ├── CodeSpans.tex │ ├── CodeSpans.text │ ├── CriticMarkup.fodt │ ├── CriticMarkup.html │ ├── CriticMarkup.htmlc │ ├── CriticMarkup.opml │ ├── CriticMarkup.tex │ ├── CriticMarkup.text │ ├── Cross-References.fodt │ ├── Cross-References.html │ ├── Cross-References.htmlc │ ├── Cross-References.opml │ ├── Cross-References.tex │ ├── Cross-References.text │ ├── DefinitionLists.fodt │ ├── DefinitionLists.html │ ├── DefinitionLists.htmlc │ ├── DefinitionLists.opml │ ├── DefinitionLists.tex │ ├── DefinitionLists.text │ ├── Dutch.fodt │ ├── Dutch.html │ ├── Dutch.htmlc │ ├── Dutch.opml │ ├── Dutch.tex │ ├── Dutch.text │ ├── EdgeCases.fodt │ ├── EdgeCases.html │ ├── EdgeCases.htmlc │ ├── EdgeCases.opml │ ├── EdgeCases.tex │ ├── EdgeCases.text │ ├── EdgeCases2.fodt │ ├── EdgeCases2.html │ ├── EdgeCases2.htmlc │ ├── EdgeCases2.opml │ ├── EdgeCases2.tex │ ├── EdgeCases2.text │ ├── EmphandStrongStar.fodt │ ├── EmphandStrongStar.html │ ├── EmphandStrongStar.htmlc │ ├── EmphandStrongStar.opml │ ├── EmphandStrongStar.tex │ ├── EmphandStrongStar.text │ ├── EmphandStrongUL.fodt │ ├── EmphandStrongUL.html │ ├── EmphandStrongUL.htmlc │ ├── EmphandStrongUL.opml │ ├── EmphandStrongUL.tex │ ├── EmphandStrongUL.text │ ├── Encoding-Western.fodt │ ├── Encoding-Western.html │ ├── Encoding-Western.htmlc │ ├── Encoding-Western.opml │ ├── Encoding-Western.tex │ ├── Encoding-Western.text │ ├── English.fodt │ ├── English.html │ ├── English.htmlc │ ├── English.opml │ ├── English.tex │ ├── English.text │ ├── Escapes.fodt │ ├── Escapes.html │ ├── Escapes.htmlc │ ├── Escapes.opml │ ├── Escapes.tex │ ├── Escapes.text │ ├── FencedCodeBlocks.fodt │ ├── FencedCodeBlocks.html │ ├── FencedCodeBlocks.htmlc │ ├── FencedCodeBlocks.opml │ ├── FencedCodeBlocks.tex │ ├── FencedCodeBlocks.text │ ├── FigureImages.fodt │ ├── FigureImages.html │ ├── FigureImages.htmlc │ ├── FigureImages.opml │ ├── FigureImages.tex │ ├── FigureImages.text │ ├── French.fodt │ ├── French.html │ ├── French.htmlc │ ├── French.opml │ ├── French.tex │ ├── French.text │ ├── Fuzz.fodt │ ├── Fuzz.html │ ├── Fuzz.htmlc │ ├── Fuzz.opml │ ├── Fuzz.tex │ ├── Fuzz.text │ ├── German.fodt │ ├── German.html │ ├── German.htmlc │ ├── German.opml │ ├── German.tex │ ├── German.text │ ├── GermanGuillemets.fodt │ ├── GermanGuillemets.html │ ├── GermanGuillemets.htmlc │ ├── GermanGuillemets.opml │ ├── GermanGuillemets.tex │ ├── GermanGuillemets.text │ ├── Glossaries.fodt │ ├── Glossaries.html │ ├── Glossaries.htmlc │ ├── Glossaries.opml │ ├── Glossaries.tex │ ├── Glossaries.text │ ├── HTMLBlocks.fodt │ ├── HTMLBlocks.html │ ├── HTMLBlocks.htmlc │ ├── HTMLBlocks.opml │ ├── HTMLBlocks.tex │ ├── HTMLBlocks.text │ ├── HTMLComments.fodt │ ├── HTMLComments.html │ ├── HTMLComments.htmlc │ ├── HTMLComments.opml │ ├── HTMLComments.tex │ ├── HTMLComments.text │ ├── HTMLInline.fodt │ ├── HTMLInline.html │ ├── HTMLInline.htmlc │ ├── HTMLInline.opml │ ├── HTMLInline.tex │ ├── HTMLInline.text │ ├── Headers.fodt │ ├── Headers.html │ ├── Headers.htmlc │ ├── Headers.opml │ ├── Headers.tex │ ├── Headers.text │ ├── HorizontalRules.fodt │ ├── HorizontalRules.html │ ├── HorizontalRules.htmlc │ ├── HorizontalRules.opml │ ├── HorizontalRules.tex │ ├── HorizontalRules.text │ ├── IndentedCodeBlocks.fodt │ ├── IndentedCodeBlocks.html │ ├── IndentedCodeBlocks.htmlc │ ├── IndentedCodeBlocks.opml │ ├── IndentedCodeBlocks.tex │ ├── IndentedCodeBlocks.text │ ├── InlineCitations.fodt │ ├── InlineCitations.html │ ├── InlineCitations.htmlc │ ├── InlineCitations.opml │ ├── InlineCitations.tex │ ├── InlineCitations.text │ ├── InlineFootnotes.fodt │ ├── InlineFootnotes.html │ ├── InlineFootnotes.htmlc │ ├── InlineFootnotes.opml │ ├── InlineFootnotes.tex │ ├── InlineFootnotes.text │ ├── InlineImages.fodt │ ├── InlineImages.html │ ├── InlineImages.htmlc │ ├── InlineImages.opml │ ├── InlineImages.tex │ ├── InlineImages.text │ ├── InlineLinks.fodt │ ├── InlineLinks.html │ ├── InlineLinks.htmlc │ ├── InlineLinks.opml │ ├── InlineLinks.tex │ ├── InlineLinks.text │ ├── Integrated.fodt │ ├── Integrated.html │ ├── Integrated.htmlc │ ├── Integrated.opml │ ├── Integrated.tex │ ├── Integrated.text │ ├── International.fodt │ ├── International.html │ ├── International.htmlc │ ├── International.opml │ ├── International.tex │ ├── International.text │ ├── Linebreaks.fodt │ ├── Linebreaks.html │ ├── Linebreaks.htmlc │ ├── Linebreaks.opml │ ├── Linebreaks.tex │ ├── Linebreaks.text │ ├── LinkAttributes.fodt │ ├── LinkAttributes.html │ ├── LinkAttributes.htmlc │ ├── LinkAttributes.opml │ ├── LinkAttributes.tex │ ├── LinkAttributes.text │ ├── LinkVariations.fodt │ ├── LinkVariations.html │ ├── LinkVariations.htmlc │ ├── LinkVariations.opml │ ├── LinkVariations.tex │ ├── LinkVariations.text │ ├── ListEdge.fodt │ ├── ListEdge.html │ ├── ListEdge.htmlc │ ├── ListEdge.opml │ ├── ListEdge.tex │ ├── ListEdge.text │ ├── MMDHeaderandFooter.fodt │ ├── MMDHeaderandFooter.html │ ├── MMDHeaderandFooter.htmlc │ ├── MMDHeaderandFooter.opml │ ├── MMDHeaderandFooter.tex │ ├── MMDHeaderandFooter.text │ ├── MarkdownSyntax.fodt │ ├── MarkdownSyntax.html │ ├── MarkdownSyntax.htmlc │ ├── MarkdownSyntax.opml │ ├── MarkdownSyntax.tex │ ├── MarkdownSyntax.text │ ├── Math.fodt │ ├── Math.html │ ├── Math.htmlc │ ├── Math.opml │ ├── Math.tex │ ├── Math.text │ ├── Metadata.fodt │ ├── Metadata.html │ ├── Metadata.htmlc │ ├── Metadata.opml │ ├── Metadata.tex │ ├── Metadata.text │ ├── MetadataYAML.fodt │ ├── MetadataYAML.html │ ├── MetadataYAML.htmlc │ ├── MetadataYAML.opml │ ├── MetadataYAML.tex │ ├── MetadataYAML.text │ ├── NestedDefinitionLists.fodt │ ├── NestedDefinitionLists.html │ ├── NestedDefinitionLists.htmlc │ ├── NestedDefinitionLists.opml │ ├── NestedDefinitionLists.tex │ ├── NestedDefinitionLists.text │ ├── NestedLists.fodt │ ├── NestedLists.html │ ├── NestedLists.htmlc │ ├── NestedLists.opml │ ├── NestedLists.tex │ ├── NestedLists.text │ ├── RawSource.fodt │ ├── RawSource.html │ ├── RawSource.htmlc │ ├── RawSource.opml │ ├── RawSource.tex │ ├── RawSource.text │ ├── ReferenceFootnotes.fodt │ ├── ReferenceFootnotes.html │ ├── ReferenceFootnotes.htmlc │ ├── ReferenceFootnotes.opml │ ├── ReferenceFootnotes.tex │ ├── ReferenceFootnotes.text │ ├── ReferenceImages.fodt │ ├── ReferenceImages.html │ ├── ReferenceImages.htmlc │ ├── ReferenceImages.opml │ ├── ReferenceImages.tex │ ├── ReferenceImages.text │ ├── ReferenceLinks.fodt │ ├── ReferenceLinks.html │ ├── ReferenceLinks.htmlc │ ├── ReferenceLinks.opml │ ├── ReferenceLinks.tex │ ├── ReferenceLinks.text │ ├── SetextHeaders.fodt │ ├── SetextHeaders.html │ ├── SetextHeaders.htmlc │ ├── SetextHeaders.opml │ ├── SetextHeaders.tex │ ├── SetextHeaders.text │ ├── SmartQuotes.fodt │ ├── SmartQuotes.html │ ├── SmartQuotes.htmlc │ ├── SmartQuotes.opml │ ├── SmartQuotes.tex │ ├── SmartQuotes.text │ ├── Spanish.fodt │ ├── Spanish.html │ ├── Spanish.htmlc │ ├── Spanish.opml │ ├── Spanish.tex │ ├── Spanish.text │ ├── SpecialCharacters.fodt │ ├── SpecialCharacters.html │ ├── SpecialCharacters.htmlc │ ├── SpecialCharacters.opml │ ├── SpecialCharacters.tex │ ├── SpecialCharacters.text │ ├── Superscript.fodt │ ├── Superscript.html │ ├── Superscript.htmlc │ ├── Superscript.opml │ ├── Superscript.tex │ ├── Superscript.text │ ├── Swedish.fodt │ ├── Swedish.html │ ├── Swedish.htmlc │ ├── Swedish.opml │ ├── Swedish.tex │ ├── Swedish.text │ ├── TableofContents.fodt │ ├── TableofContents.html │ ├── TableofContents.htmlc │ ├── TableofContents.opml │ ├── TableofContents.tex │ ├── TableofContents.text │ ├── Tables.fodt │ ├── Tables.html │ ├── Tables.htmlc │ ├── Tables.opml │ ├── Tables.tex │ ├── Tables.text │ ├── Transclusion.fodt │ ├── Transclusion.html │ ├── Transclusion.htmlc │ ├── Transclusion.opml │ ├── Transclusion.tex │ ├── Transclusion.text │ ├── Variables.fodt │ ├── Variables.html │ ├── Variables.htmlc │ ├── Variables.opml │ ├── Variables.tex │ ├── Variables.text │ ├── bar.txt │ ├── bibtex.bib │ ├── foo.txt │ ├── footer.txt │ ├── header.txt │ └── transclusion │ │ ├── bar.txt │ │ ├── bat.html │ │ ├── baz.txt │ │ ├── baz2.txt │ │ ├── nometa-bom8.txt │ │ └── nometa.txt ├── MarkdownTest.pl └── Memoir │ ├── Integ.tex │ ├── Integrated.tex │ └── Integrated.text ├── texmf └── tex │ └── latex │ └── mmd6 │ ├── README.md │ ├── article │ ├── mmd6-article-begin.tex │ ├── mmd6-article-footer.tex │ └── mmd6-article-leader.tex │ ├── beamer │ ├── Portfolio.png │ ├── Vintage.png │ ├── beamerthemekeynote-gradient.sty │ ├── beamerthemekeynote-portfolio.sty │ ├── beamerthemekeynote-vintage.sty │ ├── mmd6-beamer-begin.tex │ ├── mmd6-beamer-footer.tex │ └── mmd6-beamer-leader.tex │ ├── letterhead │ ├── mmd-envelope.sty │ ├── mmd-letterhead.sty │ ├── mmd6-letterhead-begin.tex │ ├── mmd6-letterhead-footer.tex │ └── mmd6-letterhead-leader.tex │ ├── manuscript │ ├── manuscript.sty │ ├── mmd6-manuscript-begin.tex │ ├── mmd6-manuscript-footer.tex │ └── mmd6-manuscript-leader.tex │ ├── memoir-book │ ├── mmd6-memoir-book-begin.tex │ ├── mmd6-memoir-book-footer.tex │ └── mmd6-memoir-book-leader.tex │ ├── shared │ ├── mmd6-criticmarkup.tex │ ├── mmd6-default-metadata.tex │ ├── mmd6-manuscript-packages.tex │ ├── mmd6-memoir-copyright.tex │ ├── mmd6-memoir-footer.tex │ ├── mmd6-memoir-layout-8.5x11.tex │ ├── mmd6-memoir-packages.tex │ ├── mmd6-memoir-setup.tex │ ├── mmd6-title.tex │ └── mmd6-tufte-footer.tex │ ├── tufte-book │ ├── mmd6-tufte-book-begin.tex │ ├── mmd6-tufte-book-footer.tex │ └── mmd6-tufte-book-leader.tex │ └── tufte-handout │ ├── mmd6-tufte-handout-begin.tex │ ├── mmd6-tufte-handout-footer.tex │ └── mmd6-tufte-handout-leader.tex ├── tools ├── Toolchain-MinGW-w64-32bit.cmake ├── Toolchain-MinGW-w64-64bit.cmake ├── Toolchain-mingw32.cmake ├── enumsToPerl.pl └── pathological_tests.sh └── update_git_modules /.astylerc: -------------------------------------------------------------------------------- 1 | # astyle configuration file 2 | # http://astyle.sourceforge.net/astyle.html 3 | 4 | 5 | # Brace style 6 | --style=java 7 | 8 | 9 | # Indents 10 | --indent=force-tab=4 11 | 12 | 13 | # Switch statements 14 | --indent-switches 15 | 16 | 17 | # Break long conditionals 18 | --break-after-logical 19 | 20 | 21 | # Indent pre-processor directives 22 | --indent-preproc-block 23 | --indent-preproc-define 24 | # --indent-preproc-cond 25 | 26 | 27 | # Line endings 28 | --lineend=linux 29 | 30 | 31 | # Add braces to one-liners 32 | --add-braces 33 | 34 | 35 | # Pad with blank lines 36 | --break-blocks 37 | 38 | 39 | # Pad with spaces 40 | --pad-comma 41 | --pad-oper 42 | --pad-header 43 | --pad-method-prefix 44 | --pad-method-colon=none 45 | --pad-return-type 46 | --unpad-param-type 47 | 48 | 49 | # Pointers/References 50 | --align-pointer=middle 51 | --align-reference=name 52 | 53 | 54 | # Line endings 55 | --lineend=linux 56 | 57 | 58 | # Excludes 59 | 60 | --ignore-exclude-errors 61 | 62 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Makefile CI 2 | 3 | on: 4 | push: 5 | branches: [ "develop" ] 6 | pull_request: 7 | branches: [ "develop" ] 8 | 9 | jobs: 10 | build: 11 | 12 | strategy: 13 | matrix: 14 | platform: [ubuntu-latest, macos-latest] 15 | 16 | runs-on: ${{ matrix.platform }} 17 | 18 | steps: 19 | - uses: actions/checkout@v3 20 | 21 | - name: Configure make 22 | run: make release 23 | 24 | - name: Test build 25 | run: cd build && make all 26 | 27 | - name: Test install 28 | run: cd build && sudo make install 29 | 30 | - name: Run tests 31 | run: cd build && ctest 32 | 33 | build-windows: 34 | 35 | strategy: 36 | matrix: 37 | platform: [windows-latest] 38 | 39 | runs-on: ${{ matrix.platform }} 40 | 41 | steps: 42 | - uses: actions/checkout@v3 43 | 44 | - name: Configure make 45 | run: mkdir build && cd build && cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. 46 | 47 | - name: Test build 48 | run: cd build && make 49 | 50 | - name: Run tests 51 | run: cd build && ctest -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | CHANGELOG-UNRELEASED 3 | documentation 4 | gh-pages 5 | 6 | # Developer Tools 7 | *.pbxuser 8 | !default.pbxuser 9 | *.mode1v3 10 | !default.mode1v3 11 | *.mode2v3 12 | !default.mode2v3 13 | *.perspectivev3 14 | !default.perspectivev3 15 | *.xcworkspace 16 | !default.xcworkspace 17 | xcuserdata 18 | profile 19 | *.moved-aside 20 | DerivedData 21 | .idea/ 22 | 23 | lemon/build 24 | 25 | build 26 | build-test 27 | build-xcode 28 | build-xcode-test 29 | 30 | build-xcode-debug 31 | 32 | test/parser_test.c 33 | test/parser_test.h 34 | test/parser_test.out 35 | test/a.out 36 | 37 | /.build 38 | /Packages 39 | /mmd-swift.xcodeproj 40 | 41 | *.orig 42 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | install: 3 | - make 4 | - cd build; make 5 | script: 6 | - cd build; make test 7 | branches: 8 | only: 9 | - master 10 | - develop 11 | - /^\d+\.\d+.*/ 12 | os: 13 | - linux 14 | - osx 15 | sudo: false 16 | -------------------------------------------------------------------------------- /DevelopmentNotes/DevelopmentNotes.epub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/DevelopmentNotes/DevelopmentNotes.epub -------------------------------------------------------------------------------- /DevelopmentNotes/DevelopmentNotes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/DevelopmentNotes/DevelopmentNotes.pdf -------------------------------------------------------------------------------- /QuickStart/QuickStart.epub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/QuickStart/QuickStart.epub -------------------------------------------------------------------------------- /QuickStart/QuickStart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/QuickStart/QuickStart.pdf -------------------------------------------------------------------------------- /configure-gh-pages: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir manual 4 | 5 | cd manual 6 | 7 | git clone .. . 8 | 9 | git checkout --orphan gh-pages 10 | 11 | git rm -rf . 12 | -------------------------------------------------------------------------------- /lemon/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.5) 2 | 3 | # Quick file to build lemon parser generator 4 | 5 | add_executable(lemon 6 | lemon.c 7 | ) 8 | 9 | configure_file( 10 | lempar.c ${PROJECT_BINARY_DIR}/lempar.c COPYONLY 11 | ) 12 | -------------------------------------------------------------------------------- /link_git_modules: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This command sets up any git submodules in the project. 4 | # Generally, this only needs to be run once on a freshly cloned 5 | # project, but won't harm anything if run later, provided 6 | # you modify it to accomodate any submodules that should *NOT* 7 | # be on the `master` branch. 8 | 9 | git submodule init 10 | 11 | git submodule update 12 | 13 | git submodule foreach git branch --set-upstream master origin/master 14 | 15 | git submodule foreach git checkout master 16 | 17 | # If one module needs to follow a different branch: 18 | # cd some_module 19 | # git branch --set-upstream our-branch origin/some-branch 20 | # git checkout our-branch 21 | # cd .. 22 | -------------------------------------------------------------------------------- /new_source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | FILE=$1 4 | 5 | 6 | cp build/template.c Sources/$FILE.c 7 | 8 | perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" Sources/$FILE.c 9 | 10 | 11 | cp build/template.h Sources/$FILE.h 12 | 13 | perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" -e "s/FILE\_/\U$FILE\_/;" Sources/$FILE.h 14 | -------------------------------------------------------------------------------- /scripts/markdown: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # markdown --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to XHTML 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -c 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -c -b "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/markdown.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -c -b "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to XHTML 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd2epub: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd2epub --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to EPUB 3 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -t epub 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b -t epub "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd2epub.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b -t epub "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd2fodt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd2fodt --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to OpenDocument 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -t fodt 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b -t fodt "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd2fodt.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b -t fodt "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd2odt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd2odt --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to OpenDocument 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -t odt 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b -t odt "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd2odt.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b -t odt "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd2opml: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd2opml --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to OPML 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -t opml 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b -t opml "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd2opml.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b -t opml "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /scripts/mmd2tex: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mmd2tex --- MultiMarkdown convenience script 4 | # 5 | # Fletcher T. Penney 6 | # 7 | # Pass arguments on to the binary to convert text to LaTeX 8 | # 9 | 10 | # Be sure to include multimarkdown in our PATH 11 | unset CDPATH 12 | SCRIPT="$0" 13 | while 14 | DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)" 15 | test -h "$SCRIPT" 16 | do 17 | SCRIPT="$(readlink "$SCRIPT")" 18 | [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT" 19 | done 20 | PATH="$DIR:/usr/local/bin:$PATH" 21 | export PATH 22 | 23 | if ! command -v multimarkdown >/dev/null 2>&1 24 | then 25 | echo multimarkdown executable not found! >&2 26 | exit 1 27 | fi 28 | 29 | if [ $# = 0 ] 30 | then 31 | multimarkdown -t latex 32 | else 33 | until [ "$*" = "" ] 34 | do 35 | multimarkdown -b -t latex "$1" 36 | shift 37 | done 38 | fi 39 | -------------------------------------------------------------------------------- /scripts/mmd2tex.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :Loop 3 | IF "%1"=="" GOTO Continue 4 | "%~dp0\multimarkdown" -b -t latex "%1" 5 | SHIFT 6 | GOTO Loop 7 | :Continue 8 | 9 | -------------------------------------------------------------------------------- /src/itmz-parser.h: -------------------------------------------------------------------------------- 1 | #define ITMZ_ITHOUGHTS_OPEN 1 2 | #define ITMZ_ITHOUGHTS_CLOSE 2 3 | #define ITMZ_TOPICS_OPEN 3 4 | #define ITMZ_TOPICS_CLOSE 4 5 | #define ITMZ_TOPIC_OPEN 5 6 | #define ITMZ_TOPIC_CLOSE 6 7 | #define ITMZ_TOPIC_PREAMBLE 7 8 | #define ITMZ_TOPIC_METADATA 8 9 | #define ITMZ_TOPIC_SELF_CLOSE 9 10 | #define ITMZ_RELATIONSHIPS_OPEN 10 11 | #define ITMZ_RELATIONSHIPS_CLOSE 11 12 | -------------------------------------------------------------------------------- /src/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module libMultiMarkdown { 2 | header "libMultiMarkdown.h" 3 | header "d_string.h" 4 | header "token.h" 5 | export * 6 | } 7 | -------------------------------------------------------------------------------- /src/opml-parser.h: -------------------------------------------------------------------------------- 1 | #define OPML_XML 1 2 | #define OPML_WSNL 2 3 | #define OPML_OPML_OPEN 3 4 | #define OPML_OPML_CLOSE 4 5 | #define OPML_HEAD_OPEN 5 6 | #define OPML_HEAD_CLOSE 6 7 | #define OPML_TITLE_OPEN 7 8 | #define OPML_TITLE_CLOSE 8 9 | #define OPML_BODY_OPEN 9 10 | #define OPML_BODY_CLOSE 10 11 | #define OPML_OUTLINE_OPEN 11 12 | #define OPML_OUTLINE_CLOSE 12 13 | #define OPML_OUTLINE_PREAMBLE 13 14 | #define OPML_OUTLINE_METADATA 14 15 | #define OPML_OUTLINE_SELF_CLOSE 15 16 | -------------------------------------------------------------------------------- /src/update: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This command can be run any time to ensure that all submodules are on 4 | # the most recent commit for the configured branch, as set up 5 | # in the `link_git_modules` script. 6 | 7 | re2c -i -8 lexer.re > lexer.c 8 | 9 | re2c -i -8 scanners.re > scanners.c 10 | 11 | re2c -i itmz-lexer.re > itmz-lexer.c 12 | re2c -i opml-lexer.re > opml-lexer.c 13 | re2c -i xml.re > xml.c 14 | 15 | 16 | # It seems that some other versions of lemon don't create valid 17 | # parsers?? Using the version included here works 18 | # lemon -l parser.y 19 | ../lemon/build/lemon -l parser.y 20 | ../lemon/build/lemon -l opml-parser.y 21 | ../lemon/build/lemon -l itmz-parser.y 22 | -------------------------------------------------------------------------------- /templates/template.c.in: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | @My_Project_Title@ -- @My_Project_Description@ 4 | 5 | @file file.c 6 | 7 | @brief 8 | 9 | 10 | @author @My_Project_Author@ 11 | @bug 12 | 13 | **/ 14 | 15 | /* 16 | 17 | @My_Project_Copyright@ 18 | 19 | 20 | @My_Project_License_Indented@ 21 | 22 | */ 23 | 24 | 25 | #include 26 | 27 | #include "file.h" 28 | 29 | 30 | #ifdef TEST 31 | #include "CuTest.h" 32 | #endif 33 | 34 | 35 | #ifdef TEST 36 | // Remove static keyword to enable this test 37 | static void Test_void_function(CuTest* tc) { 38 | CuAssertIntEquals(tc, 0, 0); 39 | } 40 | #endif 41 | -------------------------------------------------------------------------------- /templates/template.h.in: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | @My_Project_Title@ -- @My_Project_Description@ 4 | 5 | @file file.h 6 | 7 | @brief 8 | 9 | 10 | @author @My_Project_Author@ 11 | @bug 12 | 13 | **/ 14 | 15 | /* 16 | 17 | @My_Project_Copyright@ 18 | 19 | 20 | @My_Project_License_Indented@ 21 | 22 | */ 23 | 24 | 25 | #ifndef FILE_@My_Project_Title_Caps@_H 26 | #define FILE_@My_Project_Title_Caps@_H 27 | 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /templates/version.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | version.h -- @My_Project_Title@ 4 | 5 | @My_Project_Copyright@ 6 | 7 | 8 | @My_Project_License_Indent@ 9 | 10 | */ 11 | 12 | /** 13 | 14 | @file 15 | 16 | @brief @My_Project_Description@ - project version header 17 | 18 | **/ 19 | 20 | 21 | #ifndef FILE_@My_Project_Title_Caps@_H 22 | #define FILE_@My_Project_Title_Caps@_H 23 | 24 | #define @My_Project_Title_Caps@_NAME "MultiMarkdown" 25 | 26 | #define @My_Project_Title_Caps@_VERSION "@My_Project_Version@" 27 | #define @My_Project_Title_Caps@_COPYRIGHT "@My_Project_Copyright@" 28 | 29 | #define @My_Project_Title_Caps@_LICENSE "\t@My_Project_License_Literal@" 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /tests/Beamer/OPML-MMD-Map.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/Beamer/OPML-MMD-Map.pdf -------------------------------------------------------------------------------- /tests/Beamer/Raw Source.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-beamer-leader} 2 | \def\mytitle{Raw Source} 3 | \input{mmd6-beamer-begin} 4 | 5 | \begin{frame}[fragile] 6 | \frametitle{0} 7 | \label{0} 8 | 9 | \texttt{*foo*}\{*\} 10 | 11 | 12 | 13 | *foo* 14 | 15 | 16 | 17 | *foo* 18 | 19 | \end{frame} 20 | 21 | \begin{frame}[fragile] 22 | \frametitle{5} 23 | \label{5} 24 | 25 | \begin{lstlisting}[language={*}] 26 | *foo* 27 | \end{lstlisting} 28 | 29 | *foo* 30 | 31 | *foo* 32 | 33 | \end{frame} 34 | 35 | \begin{frame}[fragile] 36 | \frametitle{10} 37 | \label{10} 38 | 39 | *foo* 40 | 41 | *bar* 42 | 43 | \end{frame} 44 | 45 | \mode 46 | \input{mmd6-beamer-footer} 47 | \end{document}\mode* 48 | 49 | -------------------------------------------------------------------------------- /tests/Beamer/Raw Source.text: -------------------------------------------------------------------------------- 1 | Title: Raw Source 2 | latex config: beamer 3 | base header level: 3 4 | 5 | # 0 # 6 | 7 | `*foo*`{*} 8 | 9 | `*foo*`{=html} 10 | 11 | `*foo*`{=latex} 12 | 13 | `*foo*`{=odt} 14 | 15 | `*foo*`{=*} 16 | 17 | # 5 # 18 | 19 | ```{*} 20 | *foo* 21 | ``` 22 | 23 | ```{=html} 24 | *foo* 25 | ``` 26 | 27 | ```{=latex} 28 | *foo* 29 | ``` 30 | 31 | ```{=odt} 32 | *foo* 33 | ``` 34 | 35 | ```{=*} 36 | *foo* 37 | ``` 38 | 39 | # 10 # 40 | 41 | ```{=beamer} 42 | *foo* 43 | ``` 44 | 45 | ```{=*} 46 | *foo* 47 | 48 | *bar* 49 | -------------------------------------------------------------------------------- /tests/Complex/image.md: -------------------------------------------------------------------------------- 1 | 2 | # Image # 3 | 4 | ![Nautilus]( http://files.fletcherpenney.net/Nautilus_Star.png width="3in" height="2.4in") 5 | 6 | -------------------------------------------------------------------------------- /tests/Complex/main.md: -------------------------------------------------------------------------------- 1 | Title: Complex document 2 | Author: Fletcher T. Penney 3 | CSS: test.css 4 | 5 | # Introduction ## 6 | 7 | Example of a transcluded document with local and remote assets. 8 | 9 | {{image.md}} 10 | 11 | {{refs.md}} 12 | -------------------------------------------------------------------------------- /tests/Complex/nautilus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/Complex/nautilus.png -------------------------------------------------------------------------------- /tests/Complex/refs.md: -------------------------------------------------------------------------------- 1 | # Reference Image # 2 | 3 | ![foo] 4 | 5 | [foo]: nautilus.png width="3in" height="2.4in" 6 | [bar]: naut2.png width="3in" height="2.4in" 7 | -------------------------------------------------------------------------------- /tests/Complex/temp/assets/7850915a-5a55-48ae-b4b6-c6709f337a06: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/Complex/temp/assets/7850915a-5a55-48ae-b4b6-c6709f337a06 -------------------------------------------------------------------------------- /tests/Complex/temp/assets/bfe186c1-0479-429b-8171-8eef3ab4c15e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/Complex/temp/assets/bfe186c1-0479-429b-8171-8eef3ab4c15e -------------------------------------------------------------------------------- /tests/Complex/temp/assets/ea3d95f5-db32-4c35-aa24-a8b590e6aa3f: -------------------------------------------------------------------------------- 1 | h1, h2, h3 { 2 | background-color: #ccc; 3 | } -------------------------------------------------------------------------------- /tests/Complex/temp/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "type": "net.daringfireball.markdown", 4 | "transient": false, 5 | "creatorIdentifier": "net.multimarkdown" 6 | } -------------------------------------------------------------------------------- /tests/Complex/temp/main.textpack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/Complex/temp/main.textpack -------------------------------------------------------------------------------- /tests/Complex/temp/text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Complex document 6 | 7 | 8 | 9 | 10 | 11 |

Introduction

12 | 13 |

Example of a transcluded document with local and remote assets.

14 | 15 |

Image

16 | 17 |
18 | Nautilus 19 |
Nautilus
20 |
21 | 22 |

Reference Image

23 | 24 |
25 | foo 26 |
foo
27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/Complex/temp/text.markdown: -------------------------------------------------------------------------------- 1 | Title: Complex document 2 | Author: Fletcher T. Penney 3 | CSS: assets/ea3d95f5-db32-4c35-aa24-a8b590e6aa3f 4 | 5 | # Introduction ## 6 | 7 | Example of a transcluded document with local and remote assets. 8 | 9 | 10 | # Image # 11 | 12 | ![Nautilus]( assets/7850915a-5a55-48ae-b4b6-c6709f337a06 ) 13 | 14 | 15 | 16 | # Reference Image # 17 | 18 | ![foo] 19 | 20 | [foo]: assets/bfe186c1-0479-429b-8171-8eef3ab4c15e 21 | [bar]: naut2.png 22 | 23 | -------------------------------------------------------------------------------- /tests/Complex/test.css: -------------------------------------------------------------------------------- 1 | h1, h2, h3 { 2 | background-color: #ccc; 3 | } -------------------------------------------------------------------------------- /tests/CriticMarkup/CriticMarkup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Extended CriticMarkup 6 | 7 | 8 | 9 |

This is a single paragraph {++

10 | 11 |

++}that was split in two.

12 | 13 |

This is two paragraphs {--

14 | 15 |

--}joined together.

16 | 17 |

This is two paragraphs{~~

18 | 19 |

with nothing ~>

20 | 21 |

With a new paragraph inserted

22 | 23 |

~~}between them.

24 | 25 |

foo

26 | 27 |

bar

28 | 29 |

foobar

30 | 31 |

foo

32 | 33 |

bar

34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/CriticMarkup/CriticMarkup.htmla: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Extended CriticMarkup 6 | 7 | 8 | 9 |

This is a single paragraph

10 | 11 |

that was split in two.

12 | 13 |

This is two paragraphs joined together.

14 | 15 |

This is two paragraphs

16 | 17 |

With a new paragraph inserted

18 | 19 |

between them.

20 | 21 |

foo

22 | 23 |

bar

24 | 25 |

bar

26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/CriticMarkup/CriticMarkup.htmlr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Extended CriticMarkup 6 | 7 | 8 | 9 |

This is a single paragraph that was split in two.

10 | 11 |

This is two paragraphs

12 | 13 |

joined together.

14 | 15 |

This is two paragraphs

16 | 17 |

with nothing between them.

18 | 19 |

bar

20 | 21 |

foo

22 | 23 |

bar

24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/CriticMarkup/CriticMarkup.text: -------------------------------------------------------------------------------- 1 | Title: Extended CriticMarkup 2 | latex config: article 3 | 4 | This is a *single* paragraph {++ 5 | 6 | ++}that was split in two. 7 | 8 | This is *two* paragraphs {-- 9 | 10 | --}joined together. 11 | 12 | This is two paragraphs{~~ 13 | 14 | with nothing ~> 15 | 16 | With a *new* paragraph inserted 17 | 18 | ~~}between them. 19 | 20 | {++foo++} 21 | 22 | {--bar--} 23 | 24 | {~~foo~>bar~~} 25 | 26 | {>>foo<<} 27 | 28 | {==bar==} 29 | -------------------------------------------------------------------------------- /tests/Disabled/zEmph and Strong Complex.html: -------------------------------------------------------------------------------- 1 |

foobarfoo

2 | 3 |

foo foobarfoo

4 | 5 |

foobarfoo foo

6 | -------------------------------------------------------------------------------- /tests/Disabled/zEmph and Strong Complex.text: -------------------------------------------------------------------------------- 1 | **foo*bar*foo** 2 | 3 | **foo foo*bar*foo** 4 | 5 | **foo*bar*foo foo** 6 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Abbreviations.text: -------------------------------------------------------------------------------- 1 | title: Abbreviations 2 | latexconfig: article 3 | 4 | foo foo 5 | 6 | f.o.o. f.o.o. 7 | 8 | f-o-o f-o-o 9 | 10 | f o o f o o 11 | 12 | fo'o fo'o 13 | 14 | 5 15 | 16 | [>bar] [>bar] 17 | 18 | [>b.a.r.] [>b.a.r.] 19 | 20 | [>b-a-r] [>b-a-r] 21 | 22 | [>b a r] [>b a r] 23 | 24 | [>ba'r] [>ba'r] 25 | 26 | 10 27 | 28 | foo bar 29 | 30 | foo 31 | bar 32 | 33 | foo bar 34 | 35 | [>(baz) BAZ] 36 | 37 | > foo bar 38 | 39 | 15 40 | 41 | | foo | bar | 42 | | --- | --- | 43 | | foo | bar | 44 | [foo bar] 45 | 46 | # foo bar # 47 | 48 | ### foo bar ### 49 | 50 | foo bar 51 | ======= 52 | 53 | ![foo bar](http://foobar.net/) 54 | 55 | 20 56 | 57 | [^foo and bar] 58 | 59 | [^note] 60 | 61 | * foo 62 | * foo 63 | * foo 64 | 65 | Ab [>A] [>a]. 66 | 67 | Abc abc Ab. 68 | 69 | [>foo]: FOO 70 | [>f.o.o.]: F.O.O. 71 | [>f-o-o]: F-O-O 72 | [>f o o]: F O O 73 | [>fo'o]: FO'O 74 | 75 | [>bar]: BAR 76 | [>b.a.r.]: B.A.R. 77 | [>b-a-r]: B-A-R 78 | [>b a r]: B A R 79 | [>ba'r]: BA'R 80 | 81 | [>foo bar]: FOO BAR 82 | 83 | [^note]: foo and bar 84 | 85 | [>A]: Abbr 86 | [>Ab]: Abbr 87 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedEmphandStrong.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Advanced Emph and Strong 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedEmphandStrong.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Advanced Emph and Strong} 3 | \input{mmd6-article-begin} 4 | 5 | foo\emph{bar} 6 | 7 | foo*bar** 8 | 9 | foo*bar*** 10 | 11 | foo**bar* 12 | 13 | foo\textbf{bar} 14 | 15 | 5 16 | 17 | foo**bar*** 18 | 19 | foo***bar* 20 | 21 | foo***bar** 22 | 23 | foo\textbf{\emph{bar}} 24 | 25 | \emph{foo}bar 26 | 27 | 10 28 | 29 | *foo**bar 30 | 31 | \emph{foo}bar* 32 | 33 | \emph{foo**bar} 34 | 35 | \emph{foo}\textbf{bar} 36 | 37 | \emph{foo****bar} 38 | 39 | 15 40 | 41 | \emph{foo\textbf{bar}foo} 42 | 43 | **foo*bar 44 | 45 | \textbf{foo*bar} 46 | 47 | \textbf{foo}bar** 48 | 49 | \textbf{foo}\emph{bar} 50 | 51 | 20 52 | 53 | \textbf{foo****bar} 54 | 55 | \textbf{foo foo\emph{bar}foo foo} 56 | 57 | \textbf{\emph{foo}bar} 58 | 59 | \emph{\textbf{foo}bar} 60 | 61 | \emph{ab}duct instead of ab\emph{duct} 62 | 63 | 25 64 | 65 | \input{mmd6-article-footer} 66 | \end{document} 67 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedEmphandStrong.text: -------------------------------------------------------------------------------- 1 | title: Advanced Emph and Strong 2 | latexconfig: article 3 | 4 | foo*bar* 5 | 6 | foo*bar** 7 | 8 | foo*bar*** 9 | 10 | foo**bar* 11 | 12 | foo**bar** 13 | 14 | 5 15 | 16 | foo**bar*** 17 | 18 | foo***bar* 19 | 20 | foo***bar** 21 | 22 | foo***bar*** 23 | 24 | *foo*bar 25 | 26 | 10 27 | 28 | *foo**bar 29 | 30 | *foo*bar* 31 | 32 | *foo**bar* 33 | 34 | *foo***bar** 35 | 36 | *foo****bar* 37 | 38 | 15 39 | 40 | *foo**bar**foo* 41 | 42 | **foo*bar 43 | 44 | **foo*bar** 45 | 46 | **foo**bar** 47 | 48 | **foo***bar* 49 | 50 | 20 51 | 52 | **foo****bar** 53 | 54 | **foo foo*bar*foo foo** 55 | 56 | ***foo*bar** 57 | 58 | ***foo**bar* 59 | 60 | *ab*duct instead of ab*duct* 61 | 62 | 25 63 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedFencedCodeBlocks.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Advanced Fenced Code Blocks 6 | 7 | 8 | 9 |

foo *2*

10 | 11 |
foo *3*
12 | 
13 | 14 |
foo *4*
15 | 
16 | 17 |
foo *5*
18 | 
19 | 20 |
foo *6*
21 | 
22 | 23 |

5

24 | 25 |
``
26 | foo *3*
27 | ``
28 | 
29 | 30 |
```
31 | foo *4*
32 | ```
33 | 
34 | 35 |
````
36 | foo *5*
37 | ````
38 | 
39 | 40 |
41 | 42 |

foo 6

43 | 44 |
45 | 46 |

10

47 | 48 |
foo
49 | 
50 | 51 |
foo
52 | 
53 | 54 |
foo
55 | 
56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedFencedCodeBlocks.htmlc: -------------------------------------------------------------------------------- 1 |

title: Advanced Fenced Code Blocks 2 | latexconfig: article

3 | 4 |

foo *2*

5 | 6 |

foo *3*

7 | 8 |

foo *4*

9 | 10 |

foo *5*

11 | 12 |

foo *6*

13 | 14 |

5

15 | 16 |

`` 17 | foo *3* 18 | ``

19 | 20 |

``` 21 | foo *4* 22 | ```

23 | 24 |

```` 25 | foo *5* 26 | ````

27 | 28 |

````` 29 | foo *6* 30 | `````

31 | 32 |

10

33 | 34 |

perl 35 | foo

36 | 37 |

perl 38 | foo

39 | 40 |

perl ruby 41 | foo

42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedFencedCodeBlocks.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Advanced Fenced Code Blocks 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedFencedCodeBlocks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Advanced Fenced Code Blocks} 3 | \input{mmd6-article-begin} 4 | 5 | \texttt{foo *2*} 6 | 7 | \begin{verbatim} 8 | foo *3* 9 | \end{verbatim} 10 | 11 | \begin{verbatim} 12 | foo *4* 13 | \end{verbatim} 14 | 15 | \begin{verbatim} 16 | foo *5* 17 | \end{verbatim} 18 | 19 | \begin{verbatim} 20 | foo *6* 21 | \end{verbatim} 22 | 23 | 5 24 | 25 | \begin{verbatim} 26 | `` 27 | foo *3* 28 | `` 29 | \end{verbatim} 30 | 31 | \begin{verbatim} 32 | ``` 33 | foo *4* 34 | ``` 35 | \end{verbatim} 36 | 37 | \begin{verbatim} 38 | ```` 39 | foo *5* 40 | ```` 41 | \end{verbatim} 42 | 43 | \begin{verbatim} 44 | \end{verbatim} 45 | 46 | foo \emph{6} 47 | 48 | \begin{verbatim} 49 | \end{verbatim} 50 | 51 | 10 52 | 53 | \begin{lstlisting}[language=perl] 54 | foo 55 | \end{lstlisting} 56 | 57 | \begin{lstlisting}[language=perl] 58 | foo 59 | \end{lstlisting} 60 | 61 | \begin{lstlisting}[language=perl] 62 | foo 63 | \end{lstlisting} 64 | 65 | \input{mmd6-article-footer} 66 | \end{document} 67 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedFencedCodeBlocks.text: -------------------------------------------------------------------------------- 1 | title: Advanced Fenced Code Blocks 2 | latexconfig: article 3 | 4 | `` 5 | foo *2* 6 | `` 7 | 8 | ``` 9 | foo *3* 10 | ``` 11 | 12 | ```` 13 | foo *4* 14 | ```` 15 | 16 | ````` 17 | foo *5* 18 | ````` 19 | 20 | `````` 21 | foo *6* 22 | `````` 23 | 24 | 5 25 | 26 | ``` 27 | `` 28 | foo *3* 29 | `` 30 | ``` 31 | 32 | ```` 33 | ``` 34 | foo *4* 35 | ``` 36 | ```` 37 | 38 | ````` 39 | ```` 40 | foo *5* 41 | ```` 42 | ````` 43 | 44 | `````` 45 | ````` 46 | foo *6* 47 | ````` 48 | `````` 49 | 50 | 10 51 | 52 | ```perl 53 | foo 54 | ``` 55 | 56 | ```` perl 57 | foo 58 | ```` 59 | 60 | ``` perl ruby 61 | foo 62 | ``` 63 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedHeaders.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Advanced Headers 6 | 7 | 8 | 9 | 10 |

foo

11 | 12 |

foo

13 | 14 |

foo bar

15 | 16 |

foo bar

17 | 18 |

foo bar

19 | 20 |

5

21 | 22 |

foo

23 | 24 |

foo bar

25 | 26 |

foo 27 | bar

28 | 29 |

bar

30 | 31 |

foo

32 | 33 |

10

34 | 35 |

bat

36 | 37 |

foo

38 | 39 |

foo

40 | 41 |

foo

42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedHeaders.htmlc: -------------------------------------------------------------------------------- 1 |

title: Advanced Headers 2 | latexconfig: article 3 | baz: bat

4 | 5 |

foo [bar]

6 | 7 |

foo[bar]

8 | 9 |

foo [bar][bat]

10 | 11 |

foo [bar] [bat]

12 | 13 |

foo [bar][bat][baz]

14 | 15 |

5

16 | 17 |

foo [bar]

18 | 19 |

foo bar

20 | 21 |

foo 22 | bar

23 | 24 |

[bar]

25 | 26 |

[foo][bar]

27 | 28 |

10

29 | 30 |

[%baz]

31 | 32 |

foo [bar]

33 | 34 |

foo [bar]

35 | 36 |

foo [bar]

37 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedHeaders.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Advanced Headers} 3 | \def\baz{bat} 4 | \input{mmd6-article-begin} 5 | 6 | \part{foo} 7 | \label{bar} 8 | 9 | \part{foo} 10 | \label{bar} 11 | 12 | \part{foo bar (\autoref{bat})} 13 | \label{foobarbat} 14 | 15 | \part{foo bar (\autoref{bar})} 16 | \label{bat} 17 | 18 | \part{foo bar (\autoref{bat})} 19 | \label{baz} 20 | 21 | 5 22 | 23 | \part{foo} 24 | \label{bar} 25 | 26 | \part{\emph{foo} bar} 27 | \label{foobar} 28 | 29 | \part{\emph{foo 30 | bar}} 31 | \label{foobar} 32 | 33 | bar (\autoref{bar}) 34 | 35 | foo (\autoref{bar}) 36 | 37 | 10 38 | 39 | \part{bat} 40 | \label{baz} 41 | 42 | \part{foo} 43 | \label{bar} 44 | 45 | \part{foo} 46 | \label{bar} 47 | 48 | \part{foo} 49 | \label{bar} 50 | 51 | \input{mmd6-article-footer} 52 | \end{document} 53 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AdvancedHeaders.text: -------------------------------------------------------------------------------- 1 | title: Advanced Headers 2 | latexconfig: article 3 | baz: bat 4 | 5 | # foo [bar] # 6 | 7 | # foo[bar] 8 | 9 | # foo [bar][bat] 10 | 11 | # foo [bar] [bat] 12 | 13 | # foo [bar][bat][baz] 14 | 15 | 5 16 | 17 | foo [bar] 18 | ========= 19 | 20 | # *foo* bar # 21 | 22 | *foo 23 | bar* 24 | ==== 25 | 26 | [bar] 27 | 28 | [foo][bar] 29 | 30 | 10 31 | 32 | # [%baz] # 33 | 34 | # foo [bar] # 35 | 36 | # foo [bar] # 37 | 38 | # foo [bar] # -------------------------------------------------------------------------------- /tests/MMD6Tests/AmpsandAngles.htmlc: -------------------------------------------------------------------------------- 1 |

title: Amps and Angles 2 | latexconfig: article

3 | 4 |

AT&T has an ampersand in their name.

5 | 6 |

AT&T is another way to write it.

7 | 8 |

This & that.

9 | 10 |

4 < 5.

11 | 12 |

6 > 5.

13 | 14 |

5

15 | 16 |

Here is a link with an ampersand in the URL.

17 | 18 |

Here is a link with an amersand in the link text: AT&T.

19 | 20 |

Here is an inline link.

21 | 22 |

Here is an inline link.

23 | 24 |
& and &amp; and < and > in code block.
25 | 
26 | 27 |

10

28 | 29 |

© &copy;

30 | 31 |

© &#169;

32 | 33 |

© &#xA9;

34 | 35 |

15

36 | 37 |

& and &amp; and < and > in code span.

38 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AmpsandAngles.text: -------------------------------------------------------------------------------- 1 | title: Amps and Angles 2 | latexconfig: article 3 | 4 | AT&T has an ampersand in their name. 5 | 6 | AT&T is another way to write it. 7 | 8 | This & that. 9 | 10 | 4 < 5. 11 | 12 | 6 > 5. 13 | 14 | 5 15 | 16 | Here is a [link][1] with an ampersand in the URL. 17 | 18 | Here is a link with an amersand in the link text: [AT&T][2]. 19 | 20 | Here is an inline [link](/script%20here?foo=1&bar=2). 21 | 22 | Here is an inline [link](). 23 | 24 | & and & and < and > in code block. 25 | 26 | 10 27 | 28 | [1]: http://example.com/?foo=1&bar=2 29 | [2]: http://att.com/ "AT&T" 30 | 31 | © `©` 32 | 33 | © `©` 34 | 35 | © `©` 36 | 37 | 15 38 | 39 | `& and & and < and > in code span.` 40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AutomaticLinks.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Automatic Links 6 | 7 | 8 | 9 |

http://foo.com/

10 | 11 |

foo@bar.com

12 | 13 |

mailto:foo@bar.com

14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AutomaticLinks.htmlc: -------------------------------------------------------------------------------- 1 |

title: Automatic Links 2 | latexconfig: article

3 | 4 |

http://foo.com/

5 | 6 |

foo@bar.com

7 | 8 |

mailto:foo@bar.com

9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AutomaticLinks.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Automatic Links 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AutomaticLinks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Automatic Links} 3 | \input{mmd6-article-begin} 4 | 5 | \href{http://foo.com/}{http:\slash{}\slash{}foo.com\slash{}} 6 | 7 | \href{mailto:foo@bar.com}{foo@bar.com} 8 | 9 | \href{mailto:foo@bar.com}{mailto:foo@bar.com} 10 | 11 | \input{mmd6-article-footer} 12 | \end{document} 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/AutomaticLinks.text: -------------------------------------------------------------------------------- 1 | title: Automatic Links 2 | latexconfig: article 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BOM.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BOM 6 | 7 | 8 | 9 |

This file leads with a Byte Order Marker (BOM).

10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BOM.htmlc: -------------------------------------------------------------------------------- 1 |

title: BOM 2 | latexconfig: article

3 | 4 |

This file leads with a Byte Order Marker (BOM).

5 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BOM.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | BOM 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BOM.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{BOM} 3 | \input{mmd6-article-begin} 4 | 5 | This file leads with a Byte Order Marker (BOM). 6 | 7 | \input{mmd6-article-footer} 8 | \end{document} 9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BOM.text: -------------------------------------------------------------------------------- 1 | title: BOM 2 | latexconfig: article 3 | 4 | This file leads with a Byte Order Marker (BOM). 5 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicBlocks.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Basic Blocks 6 | 7 | 8 | 9 |

foo

10 | 11 |

Heading foo

12 | 13 |

Heading

14 | 15 |

foo 16 | bar

17 | 18 |

5

19 | 20 |

foo 21 | bar

22 | 23 |

foo 24 | bar

25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicBlocks.htmlc: -------------------------------------------------------------------------------- 1 |

title: Basic Blocks 2 | latexconfig: article

3 | 4 |

foo

5 | 6 |

Heading foo

7 | 8 |

Heading

9 | 10 |

foo 11 | bar

12 | 13 |

5

14 | 15 |

foo 16 | bar

17 | 18 |

foo 19 | bar

20 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicBlocks.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Basic Blocks 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicBlocks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Basic Blocks} 3 | \input{mmd6-article-begin} 4 | 5 | foo 6 | 7 | \part{Heading \emph{foo}} 8 | \label{headingfoo} 9 | 10 | \chapter{Heading} 11 | \label{heading} 12 | 13 | foo 14 | bar 15 | 16 | 5 17 | 18 | foo 19 | bar 20 | 21 | foo 22 | bar 23 | 24 | \input{mmd6-article-footer} 25 | \end{document} 26 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicBlocks.text: -------------------------------------------------------------------------------- 1 | title: Basic Blocks 2 | latexconfig: article 3 | 4 | foo 5 | 6 | # Heading *foo* # 7 | 8 | ## Heading ## 9 | 10 | foo 11 | bar 12 | 13 | 5 14 | 15 | foo 16 | bar 17 | 18 | foo 19 | bar 20 | 21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicLists.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Basic Lists 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BasicLists.text: -------------------------------------------------------------------------------- 1 | title: Basic Lists 2 | latexconfig: article 3 | 4 | * foo 5 | * foo 6 | * foo 7 | 8 | 9 | bar 10 | 11 | * foo 12 | 13 | * foo 14 | 15 | * foo 16 | 17 | 18 | bar 19 | 20 | * foo 21 | * foo 22 | 23 | * foo 24 | 25 | 5 26 | 27 | 1. foo 28 | 2. foo 29 | 3. foo 30 | 31 | bar 32 | 33 | 1. foo 34 | 35 | 2. foo 36 | 37 | 3. foo 38 | 39 | bar 40 | 41 | 1. foo 42 | 2. foo 43 | 44 | 3. foo 45 | 46 | 10 47 | 48 | + foo 49 | + foo 50 | + foo 51 | 52 | bar 53 | 54 | - foo 55 | - foo 56 | - foo 57 | 58 | bar 59 | 60 | * foo 61 | bar 62 | * foo 63 | bar 64 | * foo 65 | bar 66 | 67 | 15 68 | 69 | * foo 70 | 71 | bar 72 | 73 | bar 74 | 75 | 1. foo 76 | 77 | bar 78 | 79 | bar 80 | 81 | * foo 82 | 83 | bar 84 | 85 | 1. foo 86 | 87 | bar 88 | 89 | 1. foo 90 | 2. foo 91 | 92 | bar 93 | 94 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BibTeX.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bibliography 6 | 7 | 8 | 9 |

[#Knuth:1968]

10 | 11 |

[#Knuth:1968;]

12 | 13 |

[#Knuth:1981]

14 | 15 |

[#Knuth:1981;]

16 | 17 |

[#Knuth:1968,Knuth:1981]

18 | 19 |

5

20 | 21 |

[#Knuth:1968,Knuth:1981;]

22 | 23 |

[#Knuth:1981][#Knuth:1981]

24 | 25 |

[#Knuth:1981;][#Knuth:1981;]

26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BibTeX.htmlc: -------------------------------------------------------------------------------- 1 |

title: Bibliography 2 | latexconfig: article 3 | bibtex: bibtex 4 | bibliostyle: apalike

5 | 6 |

[#Knuth:1968]

7 | 8 |

[#Knuth:1968;]

9 | 10 |

[#Knuth:1981]

11 | 12 |

[#Knuth:1981;]

13 | 14 |

[#Knuth:1968,Knuth:1981]

15 | 16 |

5

17 | 18 |

[#Knuth:1968,Knuth:1981;]

19 | 20 |

[chap. 2][#Knuth:1981]

21 | 22 |

[chap. 2][#Knuth:1981;]

23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BibTeX.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Bibliography 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BibTeX.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Bibliography} 3 | \def\bibliocommand{\bibliography{bibtex}} 4 | \def\bibliostyle{apalike} 5 | \input{mmd6-article-begin} 6 | 7 | ~\citep{Knuth:1968} 8 | 9 | \citet{Knuth:1968} 10 | 11 | ~\citep{Knuth:1981} 12 | 13 | \citet{Knuth:1981} 14 | 15 | ~\citep{Knuth:1968,Knuth:1981} 16 | 17 | 5 18 | 19 | \citet{Knuth:1968,Knuth:1981} 20 | 21 | ~\citep[chap. 2]{Knuth:1981} 22 | 23 | \citet[chap. 2]{Knuth:1981} 24 | 25 | \input{mmd6-article-footer} 26 | \end{document} 27 | -------------------------------------------------------------------------------- /tests/MMD6Tests/BibTeX.text: -------------------------------------------------------------------------------- 1 | title: Bibliography 2 | latexconfig: article 3 | bibtex: bibtex 4 | bibliostyle: apalike 5 | 6 | 7 | [#Knuth:1968] 8 | 9 | [#Knuth:1968;] 10 | 11 | [#Knuth:1981] 12 | 13 | [#Knuth:1981;] 14 | 15 | [#Knuth:1968,Knuth:1981] 16 | 17 | 5 18 | 19 | [#Knuth:1968,Knuth:1981;] 20 | 21 | [chap. 2][#Knuth:1981] 22 | 23 | [chap. 2][#Knuth:1981;] 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Blockquotes.text: -------------------------------------------------------------------------------- 1 | title: Blockquotes 2 | latexconfig: article 3 | 4 | > foo 5 | > bar 6 | 7 | > foo 8 | >> bar 9 | > foo 10 | 11 | > foo 12 | > > bar 13 | > 14 | > foo 15 | 16 | > foo 17 | > bar 18 | > foo 19 | > 20 | > bar 21 | > foo 22 | >bar 23 | 24 | > foo 25 | 26 | > bar 27 | 28 | 5 29 | 30 | > foo 31 | > 32 | > bar 33 | 34 | > foo 35 | 36 | > bar 37 | 38 | > foo 39 | > 40 | > bar 41 | 42 | > ``` 43 | > *foo* 44 | > **bar** 45 | > ``` 46 | 47 | >
48 | > Test
49 | > 
50 | 51 | > **foo** 52 | 53 | 10 54 | 55 | > ## This is a header. 56 | > 57 | > 1. This is the first list item. 58 | > 2. This is the second list item. 59 | > 60 | > Here's some example code: 61 | > 62 | > return shell_exec("echo $input | $markdown_script"); 63 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Citations.htmlc: -------------------------------------------------------------------------------- 1 |

title: Citations 2 | latexconfig: article

3 | 4 |

citep

5 | 6 |

[#foo1]

7 | 8 |

[#foo1][]

9 | 10 |

[p. 123][#foo1]

11 | 12 |

[][#foo1]

13 | 14 |

[foo][bar][#foo1]

15 | 16 |

[#foo1][#foo2]

17 | 18 |

citet

19 | 20 |

[#foo1;]

21 | 22 |

[#foo1;][]

23 | 24 |

[p. 123][#foo1;]

25 | 26 |

[][#foo1;]

27 | 28 |

[foo][bar][#foo1;]

29 | 30 |

[#foo1;][#foo2;]

31 | 32 |

[Not Cited][#foo3]

33 | 34 |

[#foo1]: John Doe. A Totally Fake Book 1. Vanity Press, 2006.

35 | 36 |

[#foo2]: John Doe. A Totally Fake Book 2. Vanity Press, 2006.

37 | 38 |

[#foo3]: John Doe. A Totally Fake Book 3. Vanity Press, 2006.

39 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Citations.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Citations 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Citations.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Citations} 3 | \input{mmd6-article-begin} 4 | 5 | \part{citep} 6 | \label{citep} 7 | 8 | ~\citep{foo1} 9 | 10 | ~\citep{foo1}{[]} 11 | 12 | ~\citep[p. 123]{foo1} 13 | 14 | ~\citep{foo1} 15 | 16 | ~\citep[foo][bar]{foo1} 17 | 18 | ~\citep{foo1}~\citep{foo2} 19 | 20 | \part{citet} 21 | \label{citet} 22 | 23 | \citet{foo1} 24 | 25 | \citet{foo1}{[]} 26 | 27 | \citet[p. 123]{foo1} 28 | 29 | \citet{foo1} 30 | 31 | \citet[foo][bar]{foo1} 32 | 33 | \citet{foo1}\citet{foo2} 34 | 35 | ~\nocite{foo3} 36 | 37 | \begin{thebibliography}{0} 38 | 39 | \bibitem{foo1} 40 | John Doe. \emph{A Totally Fake Book 1}. Vanity Press, 2006. 41 | 42 | \bibitem{foo2} 43 | John Doe. \emph{A Totally Fake Book 2}. Vanity Press, 2006. 44 | 45 | \bibitem{foo3} 46 | John Doe. \emph{A Totally Fake Book 3}. Vanity Press, 2006. 47 | \end{thebibliography} 48 | 49 | \input{mmd6-article-footer} 50 | \end{document} 51 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Citations.text: -------------------------------------------------------------------------------- 1 | title: Citations 2 | latexconfig: article 3 | 4 | # citep # 5 | 6 | [#foo1] 7 | 8 | [#foo1][] 9 | 10 | [p. 123][#foo1] 11 | 12 | [][#foo1] 13 | 14 | [foo\]\[bar][#foo1] 15 | 16 | [#foo1][#foo2] 17 | 18 | 19 | # citet # 20 | 21 | [#foo1;] 22 | 23 | [#foo1;][] 24 | 25 | [p. 123][#foo1;] 26 | 27 | [][#foo1;] 28 | 29 | [foo\]\[bar][#foo1;] 30 | 31 | [#foo1;][#foo2;] 32 | 33 | 34 | [Not Cited][#foo3] 35 | 36 | 37 | [#foo1]: John Doe. *A Totally Fake Book 1*. Vanity Press, 2006. 38 | 39 | [#foo2]: John Doe. *A Totally Fake Book 2*. Vanity Press, 2006. 40 | 41 | [#foo3]: John Doe. *A Totally Fake Book 3*. Vanity Press, 2006. 42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/CodeSpans.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Code Spans 6 | 7 | 8 | 9 |

foo

10 | 11 |

foo ` bar

12 | 13 |

``

14 | 15 |

foo``bar

16 | 17 |

``foo`

18 | 19 |

5

20 | 21 |

`foo``

22 | 23 |

foo

24 | 25 |

foo bar 26 | baz

27 | 28 |

foo `` bar

29 | 30 |

foo

31 | 32 |

10

33 | 34 |

foo bar

35 | 36 |

*foo*

37 | 38 |

[foo]

39 | 40 |

-<>--&\&---...

41 | 42 |

`foo`

43 | 44 |

15

45 | 46 |

$foo << $bar

47 | 48 |

#foo

49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /tests/MMD6Tests/CodeSpans.htmlc: -------------------------------------------------------------------------------- 1 |

title: Code Spans 2 | latexconfig: article

3 | 4 |

foo

5 | 6 |

foo ` bar

7 | 8 |

``

9 | 10 |

foo``bar

11 | 12 |

``foo`

13 | 14 |

5

15 | 16 |

`foo``

17 | 18 |

foo

19 | 20 |

foo bar 21 | baz

22 | 23 |

foo `` bar

24 | 25 |

foo

26 | 27 |

10

28 | 29 |

foo bar

30 | 31 |

*foo*

32 | 33 |

[foo]

34 | 35 |

-<>--&\&---...

36 | 37 |

`foo`

38 | 39 |

15

40 | 41 |

$foo << $bar

42 | 43 |

#foo

44 | -------------------------------------------------------------------------------- /tests/MMD6Tests/CodeSpans.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Code Spans 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/CodeSpans.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Code Spans} 3 | \input{mmd6-article-begin} 4 | 5 | \texttt{foo} 6 | 7 | \texttt{foo ` bar} 8 | 9 | \texttt{``} 10 | 11 | \texttt{foo``bar} 12 | 13 | ``foo` 14 | 15 | 5 16 | 17 | `foo`` 18 | 19 | \texttt{foo} 20 | 21 | \texttt{foo bar 22 | baz} 23 | 24 | \texttt{foo `` bar} 25 | 26 | \texttt{foo} 27 | 28 | 10 29 | 30 | \texttt{foo bar} 31 | 32 | \texttt{*foo*} 33 | 34 | \texttt{[foo]} 35 | 36 | \texttt{-<>-{}-\&\textbackslash{}\&-{}-{}-...} 37 | 38 | \texttt{`foo`} 39 | 40 | 15 41 | 42 | \texttt{\$foo << \$bar} 43 | 44 | \texttt{\#foo} 45 | 46 | \input{mmd6-article-footer} 47 | \end{document} 48 | -------------------------------------------------------------------------------- /tests/MMD6Tests/CodeSpans.text: -------------------------------------------------------------------------------- 1 | title: Code Spans 2 | latexconfig: article 3 | 4 | `foo` 5 | 6 | `` foo ` bar `` 7 | 8 | ` `` ` 9 | 10 | `foo``bar` 11 | 12 | ``foo` 13 | 14 | 5 15 | 16 | `foo`` 17 | 18 | `` 19 | foo 20 | `` 21 | 22 | `foo bar 23 | baz` 24 | 25 | `foo `` bar` 26 | 27 | ` foo ` 28 | 29 | 10 30 | 31 | ` foo bar ` 32 | 33 | `*foo*` 34 | 35 | `[foo]` 36 | 37 | `-<>--&\&---...` 38 | 39 | `` `foo` `` 40 | 41 | 15 42 | 43 | `$foo << $bar` 44 | 45 | `#foo` 46 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Cross-References.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Cross-References 6 | 7 | 8 | 9 |

A Section

10 | 11 |

109&*&#()^ Can Start With Digit

12 | 13 |

Strip out &%^ characters &*^

14 | 15 |

A Section.

16 | 17 |

1 Cross-References: Special Characters!@#$%&*()<>^

18 | 19 |

5

20 | 21 |

And now, link to 1 Cross-References: Special Characters!@#$%&*()<>^

22 | 23 |

Заголовок по-русски

24 | 25 |

И ссылка на Заголовок по-русски.

26 | 27 |

Test 的 Multibyte

28 | 29 |

10

30 | 31 |

Test_Underscore

32 | 33 |

Link to Test_Underscore.

34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Cross-References.htmlc: -------------------------------------------------------------------------------- 1 |

title: Cross-References 2 | latexconfig: article

3 | 4 |

A Section

5 | 6 |

109&*&#()^ Can Start With Digit

7 | 8 |

Strip out &%^ characters &*^

9 | 10 |

[A Section].

11 | 12 |

1 Cross-References: Special Characters!@#$%&*()<>^

13 | 14 |

5

15 | 16 |

And now, link to [1 Cross-References: Special Characters!@#$%&*()<>^][]

17 | 18 |

Заголовок по-русски

19 | 20 |

И ссылка на [Заголовок по-русски].

21 | 22 |

Test 的 Multibyte

23 | 24 |

10

25 | 26 |

Test_Underscore

27 | 28 |

Link to [Test_Underscore].

29 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Cross-References.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Cross-References 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Cross-References.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Cross-References} 3 | \input{mmd6-article-begin} 4 | 5 | \part{A Section} 6 | \label{asection} 7 | 8 | \part{109\&*\&\#()\^{} Can Start With Digit} 9 | \label{109canstartwithdigit} 10 | 11 | \part{Strip out \&\%\^{} characters \&*\^{}} 12 | \label{stripoutcharacters} 13 | 14 | A Section (\autoref{asection}). 15 | 16 | \chapter{1 Cross-References: Special Characters!@\#\$\%\&*()<>\^{}} 17 | \label{1cross-references:specialcharacters} 18 | 19 | 5 20 | 21 | And now, link to 1 Cross-References: Special Characters!@\#\$\%\&*()<>\^{} (\autoref{1cross-references:specialcharacters}) 22 | 23 | \part{Заголовок по-русски} 24 | \label{Заголовокпо-русски} 25 | 26 | И ссылка на Заголовок по-русски (\autoref{Заголовокпо-русски}). 27 | 28 | \part{Test 的 Multibyte} 29 | \label{test的multibyte} 30 | 31 | 10 32 | 33 | \part{Test\_Underscore} 34 | \label{test_underscore} 35 | 36 | Link to Test\_Underscore (\autoref{test_underscore}). 37 | 38 | \input{mmd6-article-footer} 39 | \end{document} 40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Cross-References.text: -------------------------------------------------------------------------------- 1 | title: Cross-References 2 | latexconfig: article 3 | 4 | # A Section # 5 | 6 | # 109&*&#()^ Can Start With Digit # 7 | 8 | # Strip out &%^ characters &*^ # 9 | 10 | [A Section]. 11 | 12 | ## 1 Cross-References: Special Characters!@#$%&*()<>^ ## 13 | 14 | 5 15 | 16 | And now, link to [1 Cross-References: Special Characters!@#$%&*()<>^][] 17 | 18 | # Заголовок по-русски # 19 | 20 | И ссылка на [Заголовок по-русски]. 21 | 22 | # Test 的 Multibyte # 23 | 24 | 10 25 | 26 | # Test_Underscore # 27 | 28 | Link to [Test_Underscore]. 29 | -------------------------------------------------------------------------------- /tests/MMD6Tests/DefinitionLists.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Definition Lists 6 | 7 | 8 | 9 |
10 |
foo
11 |
bar
12 |
*foo bar
13 | 14 |
baz bat*
15 | 16 |
foo
17 |
bar
18 |
foo bar 19 | bar foo
20 | 21 |
baz bat
22 | 23 |
bat
24 |
foo
25 | 26 |
foo
27 |
*foo bar 28 | bar foo
29 | 30 |
baz* bat
31 |
32 | 33 |

foo

34 | 35 |

:foo 36 |

37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/MMD6Tests/DefinitionLists.htmlc: -------------------------------------------------------------------------------- 1 |

title: Definition Lists 2 | latexconfig: article

3 | 4 |

foo 5 | bar 6 | : foo bar 7 | : baz bat

8 | 9 |

foo 10 | bar 11 | : foo bar 12 | bar foo 13 | : baz bat

14 | 15 |

bat 16 | : foo

17 | 18 |

foo 19 | : foo bar 20 | bar foo 21 | : baz bat

22 | 23 |

foo

24 | 25 |

:foo

26 | -------------------------------------------------------------------------------- /tests/MMD6Tests/DefinitionLists.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Definition Lists 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/DefinitionLists.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Definition Lists} 3 | \input{mmd6-article-begin} 4 | 5 | \begin{description} 6 | \item[foo] 7 | 8 | \item[bar] 9 | 10 | *foo bar 11 | 12 | baz bat* 13 | 14 | \item[foo] 15 | 16 | \item[bar] 17 | 18 | \emph{foo bar 19 | bar foo} 20 | 21 | baz bat 22 | 23 | \item[bat] 24 | 25 | \emph{foo} 26 | 27 | \item[foo] 28 | 29 | *foo bar 30 | bar foo 31 | 32 | baz* bat 33 | \end{description} 34 | 35 | foo 36 | 37 | :foo 38 | 39 | 40 | \input{mmd6-article-footer} 41 | \end{document} 42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/DefinitionLists.text: -------------------------------------------------------------------------------- 1 | title: Definition Lists 2 | latexconfig: article 3 | 4 | foo 5 | bar 6 | : *foo bar 7 | : baz bat* 8 | 9 | foo 10 | bar 11 | : *foo bar 12 | bar foo* 13 | : baz bat 14 | 15 | bat 16 | : *foo* 17 | 18 | foo 19 | : *foo bar 20 | bar foo 21 | : baz* bat 22 | 23 | foo 24 | 25 | :foo 26 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Dutch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Dutch 6 | 7 | 8 | 9 |

‘foo’

10 | 11 |

„foo”

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Dutch.htmlc: -------------------------------------------------------------------------------- 1 |

title: Dutch 2 | latexconfig: article 3 | language: nl

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Dutch.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dutch 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Dutch.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Dutch} 3 | \input{mmd6-article-begin} 4 | 5 | `foo' 6 | 7 | „foo'' 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Dutch.text: -------------------------------------------------------------------------------- 1 | title: Dutch 2 | latexconfig: article 3 | language: nl 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.fodt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.fodt -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.html -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.htmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.htmlc -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.opml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.opml -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.tex -------------------------------------------------------------------------------- /tests/MMD6Tests/Encoding-Western.text: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/tests/MMD6Tests/Encoding-Western.text -------------------------------------------------------------------------------- /tests/MMD6Tests/English.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | English 6 | 7 | 8 | 9 |

‘foo’

10 | 11 |

“foo”

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/English.htmlc: -------------------------------------------------------------------------------- 1 |

title: English 2 | latexconfig: article 3 | language: en

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/English.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | English 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/English.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{English} 3 | \input{mmd6-article-begin} 4 | 5 | `foo' 6 | 7 | ``foo'' 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/English.text: -------------------------------------------------------------------------------- 1 | title: English 2 | latexconfig: article 3 | language: en 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Escapes.text: -------------------------------------------------------------------------------- 1 | title: Escapes 2 | latexconfig: article 3 | 4 | \. 5 | 6 | \! 7 | 8 | \? 9 | 10 | \, 11 | 12 | \; 13 | 14 | 5 15 | 16 | \: 17 | 18 | \" 19 | 20 | \' 21 | 22 | \` 23 | 24 | \~ 25 | 26 | 10 27 | 28 | \( 29 | 30 | \) 31 | 32 | \{ 33 | 34 | \} 35 | 36 | \[ 37 | 38 | 15 39 | 40 | \] 41 | 42 | \# 43 | 44 | \$ 45 | 46 | \% 47 | 48 | \+ 49 | 50 | 20 51 | 52 | \- 53 | 54 | \= 55 | 56 | \< 57 | 58 | \> 59 | 60 | \& 61 | 62 | 25 63 | 64 | \@ 65 | 66 | \\ 67 | 68 | \/ 69 | 70 | \^ 71 | 72 | \* 73 | 74 | 30 75 | 76 | \_ 77 | 78 | \| 79 | 80 | \- 81 | \& 82 | \% 83 | \\ 84 | \` 85 | 86 | `\- \& \% \\ \ \ ` 87 | 88 | \*foo\* 89 | 90 | 35 91 | 92 | \_bar\_ 93 | 94 | \`foo\` 95 | 96 | \`foo` 97 | 98 | `foo\ ` 99 | 100 | \``foo\ ` 101 | 102 | 40 103 | 104 | \``foo` 105 | 106 | foo\ bar 107 | 108 | `\\[foo]` 109 | 110 | `\ ` 111 | 112 | `\ ` 113 | 114 | 45 115 | 116 | [foo](https://www\.test\.com/foo?bar=XXX\-YYY&x=400) 117 | -------------------------------------------------------------------------------- /tests/MMD6Tests/FencedCodeBlocks.text: -------------------------------------------------------------------------------- 1 | title: Fenced Code Blocks 2 | latexconfig: article 3 | 4 | ``` 5 | *foo* 6 | ``` 7 | 8 | ```` 9 | *foo* 10 | 11 | bar 12 | ```` 13 | 14 | * foo 15 | 16 | ``` 17 | *foo* 18 | ``` 19 | 20 | * foo 21 | 22 | ```` 23 | *foo* 24 | 25 | bar 26 | ```` 27 | 28 | ``` 29 | \begin{equation}\nabla \times \mathbf{E} = - \frac{\partial \mathbf{B}}{\partial t}\end{equation} 30 | ``` 31 | 32 | ```tex 33 | \begin{equation}\nabla \times \mathbf{E} = - \frac{\partial \mathbf{B}}{\partial t}\end{equation} 34 | ``` 35 | 36 | 5 37 | 38 | ``` 39 |

foo

40 | ``` 41 | 42 | ``` 43 | foo 44 | 45 | bar 46 | 47 | bar 48 | 49 | foo 50 | ``` 51 | 52 | ``` 53 | * foo 54 | + bar 55 | - baz 56 | * foo 57 | + bar 58 | - baz 59 | 60 | 1. foo 61 | 2. bar 62 | 3. baz 63 | ``` 64 | 65 | ``` 66 | # foo 67 | ## bar 68 | ### baz # 69 | #### foo ## 70 | ##### bar ## 71 | ###### baz# 72 | ``` 73 | 74 | ``` 75 | foo 76 | -------------------------------------------------------------------------------- /tests/MMD6Tests/FigureImages.htmlc: -------------------------------------------------------------------------------- 1 |

title: Figure Images 2 | latexconfig: article

3 | 4 |

![foo]

5 | 6 |

![bar][foo]

7 | 8 |

![bar][foo] bar

9 | 10 |

![foo](http://foo.bar/ "foo" width="40px" height="20px")

11 | 12 |

![foo](http://foo.bar/ "foo" width="40px")

13 | 14 |

[foo]: http://foo.bar/ "foo" width="40px" height="20px"

15 | 16 |

5

17 | 18 |

![](http://foo.bar/ width="40px")

19 | 20 |

![](http://foo.bar/ "empty caption with title" width="40px")

21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/FigureImages.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Figure Images 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/FigureImages.text: -------------------------------------------------------------------------------- 1 | title: Figure Images 2 | latexconfig: article 3 | 4 | ![foo] 5 | 6 | ![*bar*][foo] 7 | 8 | ![*bar*][foo] bar 9 | 10 | ![*foo*](http://foo.bar/ "foo" width="40px" height="20px") 11 | 12 | ![*foo*](http://foo.bar/ "foo" width="40px") 13 | 14 | [foo]: http://foo.bar/ "foo" width="40px" height="20px" 15 | 16 | 5 17 | 18 | ![](http://foo.bar/ width="40px") 19 | 20 | ![](http://foo.bar/ "empty caption with title" width="40px") 21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/French.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | French 6 | 7 | 8 | 9 |

'foo’

10 | 11 |

«foo»

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/French.htmlc: -------------------------------------------------------------------------------- 1 |

title: French 2 | latexconfig: article 3 | language: fr

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/French.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | French 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/French.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{French} 3 | \input{mmd6-article-begin} 4 | 5 | 'foo' 6 | 7 | «foo» 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/French.text: -------------------------------------------------------------------------------- 1 | title: French 2 | latexconfig: article 3 | language: fr 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Fuzz.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Fuzz Testing 6 | 7 | 8 | 9 |

Collection of test cases identified by American fuzzy lop.

10 | 11 |

û~~foo~>bar~~}

12 | 13 |
    14 |
  • list
  • 15 |
  • tems
  • 16 |
17 | 18 |

:Escapes

19 | 20 |

[>MM]: MultiMarkdown

21 | 22 |

foo1

23 | 24 |

foo2

25 | 26 |

]: And aÄe footn.IThi1. $

27 | 28 |

[MMD]:

29 | 30 |

f F O O (o o) f o o

31 | 32 |
    33 |
  • foo
  • 34 |
  • foo
  • 35 |
36 | 37 |

(This must be at end of file without trailing newline)

38 | 39 |

A

40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Fuzz.htmlc: -------------------------------------------------------------------------------- 1 |

title: Fuzz Testing 2 | latexconfig: article

3 | 4 |

Collection of test cases identified by American fuzzy lop.

5 | 6 |

û~~foo~>bar~~}

7 | 8 |
    9 |
  • list
  • 10 |
  • tems
  • 11 |
12 | 13 |

:Escapes [escaped]

14 | 15 |

[>MM]: MultiMarkdown

16 | 17 |

[?terí¢ıı[?term]: A term to be defined.

18 | 19 |

foo1

20 | 21 |

foo2

22 | 23 |

]: And aÄe footn.I^Thi1. $

24 | 25 |

[MMD]:

26 | 27 |

f o o f o o

28 | 29 |

[> o o]: F O O

30 | 31 |
    32 |
  • foo
  • 33 |
  • foo
  • 34 |
35 | 36 |

(This must be at end of file without trailing newline)

37 | 38 |

A

39 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Fuzz.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Fuzz Testing 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Fuzz.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Fuzz Testing} 3 | \newacronym{o o}{o o}{F O O} 4 | 5 | \input{mmd6-article-begin} 6 | 7 | Collection of test cases identified by \href{http://lcamtuf.coredump.cx/afl/}{American fuzzy lop}\footnote{\href{http://lcamtuf.coredump.cx/afl/}{http:\slash{}\slash{}lcamtuf.coredump.cx\slash{}afl\slash{}}}. 8 | 9 | û\ensuremath{\sim}\ensuremath{\sim}foo~>bar~~\} 10 | 11 | \begin{itemize} 12 | \item list 13 | 14 | \item tems 15 | 16 | \end{itemize} 17 | 18 | \chapter{:Escapes} 19 | \label{escaped} 20 | 21 | [>MM]: MultiMarkdown 22 | 23 | foo1 (\autoref{ba}) 24 | 25 | foo2 (\autoref{bar}) 26 | 27 | ]: And aÄe footn.I\textsuperscript{Thi1}. \$ 28 | 29 | {[MMD]}: 30 | 31 | f \gls{o o} f \gls{o o} 32 | 33 | \begin{itemize} 34 | \item foo 35 | 36 | \item foo 37 | 38 | \end{itemize} 39 | 40 | (This must be at end of file without trailing newline) 41 | 42 | \part{A} 43 | \label{a} 44 | 45 | \input{mmd6-article-footer} 46 | \end{document} 47 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Fuzz.text: -------------------------------------------------------------------------------- 1 | title: Fuzz Testing 2 | latexconfig: article 3 | 4 | Collection of test cases identified by [American fuzzy lop](http://lcamtuf.coredump.cx/afl/). 5 | 6 | û~~foo~>bar~~} 7 | 8 | * list 9 | * tems 10 | 11 | :Escapes [escaped] 12 | ---------------- 13 | 14 | [>MM\]: MultiMarkdown 15 | 16 | [?terí¢ıı[?term]: A term to be defined. 17 | 18 | [foo1] 19 | 20 | [foo2] 21 | 22 | [foo1]: #ba\ 23 | [foo2]: #bar 24 | 25 | ]: And aÄe footn.I^Thi1. \$ 26 | 27 | [MMD]: 28 | 29 | f o o f o o 30 | 31 | [> o o]: F O O 32 | 33 | * foo 34 | *   foo 35 | 36 | 37 | 38 | (This must be at end of file without trailing newline) 39 | 40 | # A -------------------------------------------------------------------------------- /tests/MMD6Tests/German.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | German 6 | 7 | 8 | 9 |

‚foo‘

10 | 11 |

„foo“

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/German.htmlc: -------------------------------------------------------------------------------- 1 |

title: German 2 | latexconfig: article 3 | language: de

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/German.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | German 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/German.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{German} 3 | \input{mmd6-article-begin} 4 | 5 | ‚foo` 6 | 7 | „foo`` 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/German.text: -------------------------------------------------------------------------------- 1 | title: German 2 | latexconfig: article 3 | language: de 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/GermanGuillemets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | German Guillemets 6 | 7 | 8 | 9 |

›foo‹

10 | 11 |

»foo«

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/GermanGuillemets.htmlc: -------------------------------------------------------------------------------- 1 |

title: German Guillemets 2 | latexconfig: article 3 | language: de 4 | quoteslanguage: germanguillemets

5 | 6 |

'foo'

7 | 8 |

"foo"

9 | 10 |

foo's

11 | 12 |

foo --- bar

13 | 14 |

foo -- bar

15 | 16 |

5

17 | 18 |

foo...

19 | 20 |

[^foo]

21 | 22 |

#bar

23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/GermanGuillemets.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | German Guillemets 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/GermanGuillemets.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{German Guillemets} 3 | \input{mmd6-article-begin} 4 | 5 | ›foo‹ 6 | 7 | »foo« 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/GermanGuillemets.text: -------------------------------------------------------------------------------- 1 | title: German Guillemets 2 | latexconfig: article 3 | language: de 4 | quoteslanguage: germanguillemets 5 | 6 | 'foo' 7 | 8 | "foo" 9 | 10 | foo's 11 | 12 | foo --- bar 13 | 14 | foo -- bar 15 | 16 | 5 17 | 18 | foo... 19 | 20 | [^foo] 21 | 22 | [#bar] 23 | 24 | [#bar]: foo 25 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Glossaries.htmlc: -------------------------------------------------------------------------------- 1 |

title: Glossaries 2 | latexconfig: article

3 | 4 |

foo foo

5 | 6 |

f.o.o. f.o.o.

7 | 8 |

f-o-o f-o-o

9 | 10 |

f o o f o o

11 | 12 |

fo'o fo'o

13 | 14 |

5

15 | 16 |

?bar ?bar

17 | 18 |

?b.a.r. ?b.a.r.

19 | 20 |

?b-a-r ?b-a-r

21 | 22 |

?b a r ?b a r

23 | 24 |

?ba'r ?ba'r

25 | 26 |

10

27 | 28 |

foo bar

29 | 30 |

foo 31 | bar

32 | 33 |

foo bar

34 | 35 |

[?(baz) BAZ]

36 | 37 |

[?foo bar]: FOO BAR

38 | 39 |
BAR FOO
40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Glossaries.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Glossaries 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Glossaries.text: -------------------------------------------------------------------------------- 1 | title: Glossaries 2 | latexconfig: article 3 | 4 | foo foo 5 | 6 | f.o.o. f.o.o. 7 | 8 | f-o-o f-o-o 9 | 10 | f o o f o o 11 | 12 | fo'o fo'o 13 | 14 | 5 15 | 16 | [?bar] [?bar] 17 | 18 | [?b.a.r.] [?b.a.r.] 19 | 20 | [?b-a-r] [?b-a-r] 21 | 22 | [?b a r] [?b a r] 23 | 24 | [?ba'r] [?ba'r] 25 | 26 | 10 27 | 28 | foo bar 29 | 30 | foo 31 | bar 32 | 33 | foo bar 34 | 35 | [?(baz) BAZ] 36 | 37 | 38 | 39 | [?foo]: FOO 40 | [?f.o.o.]: F.O.O. 41 | [?f-o-o]: F-O-O 42 | [?f o o]: F O O 43 | [?fo'o]: FO'O 44 | 45 | [?bar]: BAR 46 | [?b.a.r.]: B.A.R. 47 | [?b-a-r]: B-A-R 48 | [?b a r]: B A R 49 | [?ba'r]: BA'R 50 | 51 | [?foo bar]: FOO BAR 52 | 53 | BAR FOO -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLBlocks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{HTML Blocks} 3 | \input{mmd6-article-begin} 4 | 5 | \emph{bar1} 6 | 7 | foo 8 | 9 | \emph{bar3} 10 | 11 | 12 | \emph{bar5} 13 | 14 | 5 15 | 16 | foo 17 | 18 | \emph{bar5} 19 | 20 | 10 21 | 22 | \part{foo2} 23 | \label{foo2} 24 | 25 | foo (\autoref{foo2}) 26 | 27 | 15 28 | 29 | 32 | 33 | \textbf{foo3} 34 | 35 | 20 36 | 37 | \textbf{foo5} 38 | 39 | \input{mmd6-article-footer} 40 | \end{document} 41 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLComments.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTML Comments 6 | 7 | 8 | 9 |

foo

10 | 11 |

foo

13 | 14 |

foo

17 | 18 |

foo <!– 19 | bar

20 | 21 |

–>

22 | 23 |

foo <!–

24 | 25 |

bar

26 | 27 |

–>

28 | 29 |

5

30 | 31 |
<!-- *foo* -->
32 | 
33 | 34 | 39 | 40 |

foo <!–

41 | 42 |

bar –>

43 | 44 |

<!– foo

45 | 46 |

bar

47 | 48 |

–>

49 | 50 |

foo

51 | 52 | *bar* 55 | 56 | *foo* 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLComments.htmlc: -------------------------------------------------------------------------------- 1 |

title: HTML Comments 2 | latexconfig: article

3 | 4 |

foo

5 | 6 |

foo

8 | 9 |

foo

12 | 13 |

foo <!-- 14 | bar

15 | 16 |

-->

17 | 18 |

foo <!--

19 | 20 |

bar

21 | 22 |

-->

23 | 24 |

5

25 | 26 |
<!-- *foo* -->
27 | 
28 | 29 | 34 | 35 |

foo <!--

36 | 37 |

bar -->

38 | 39 |

<!-- foo

40 | 41 |

bar

42 | 43 |

-->

44 | 45 |

foo

46 | 47 | *bar* 50 | 51 | *foo* 52 | 53 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLComments.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | HTML Comments 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLComments.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{HTML Comments} 3 | \input{mmd6-article-begin} 4 | 5 | foo 6 | 7 | foo 8 | 9 | foo 10 | 11 | foo 15 | 16 | foo 21 | 22 | 5 23 | 24 | \begin{verbatim} 25 | 26 | \end{verbatim} 27 | 28 | foo 31 | 32 | 37 | 38 | \emph{foo} 39 | 40 | \input{mmd6-article-footer} 41 | \end{document} 42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLComments.text: -------------------------------------------------------------------------------- 1 | title: HTML Comments 2 | latexconfig: article 3 | 4 | foo 5 | 6 | foo 8 | 9 | foo 12 | 13 | foo 17 | 18 | foo 23 | 24 | 5 25 | 26 | 27 | 28 | 33 | 34 | foo 37 | 38 | 43 | 44 | *foo* 45 | 46 | *bar* 49 | 50 | *foo* 51 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLInline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTML Inline 6 | 7 | 8 | 9 |

bar

10 | 11 |

bar

12 | 13 |
<div>
14 |     foo
15 | </div>
16 | 
17 | 18 |

test.

19 | 20 |

test.

24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLInline.htmlc: -------------------------------------------------------------------------------- 1 |

title: HTML Inline 2 | latexconfig: article

3 | 4 |

bar

5 | 6 |

bar

7 | 8 |
<div>
 9 |     foo
10 | </div>
11 | 
12 | 13 |

test.

14 | 15 |

test.

19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLInline.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | HTML Inline 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLInline.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{HTML Inline} 3 | \input{mmd6-article-begin} 4 | 5 | \emph{bar} 6 | 7 | \emph{bar} 8 | 9 | \begin{verbatim} 10 |
11 | foo 12 |
13 | \end{verbatim} 14 | 15 | test. 16 | 17 | test. 18 | 19 | \input{mmd6-article-footer} 20 | \end{document} 21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HTMLInline.text: -------------------------------------------------------------------------------- 1 | title: HTML Inline 2 | latexconfig: article 3 | 4 | *bar* 5 | 6 | *bar* 7 | 8 | 9 |
10 | foo 11 |
12 | 13 | test. 14 | 15 | test. 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Headers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Headers 6 | 7 | 8 | 9 |

foo

10 | 11 |

foo

12 | 13 |

foo

14 | 15 |

foo

16 | 17 |
# foo #
18 | 
19 | 20 |

5

21 | 22 |

#foo#

23 | 24 |

#foo #

25 | 26 |

foo # bar

27 | 28 |

# foo #

29 | 30 |

foo

31 | 32 |

10

33 | 34 |

foo

35 | 36 |

foo

37 | 38 |
foo
39 | 40 |
foo
41 | 42 |

####### foo #######

43 | 44 |

15

45 | 46 |
foo
47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Headers.htmlc: -------------------------------------------------------------------------------- 1 |

title: Headers 2 | latexconfig: article

3 | 4 |

foo

5 | 6 |

foo

7 | 8 |

foo

9 | 10 |

foo

11 | 12 |
# foo #
13 | 
14 | 15 |

5

16 | 17 |

#foo#

18 | 19 |

#foo #

20 | 21 |

foo # bar

22 | 23 |

# foo #

24 | 25 |

foo

26 | 27 |

10

28 | 29 |

foo

30 | 31 |

foo

32 | 33 |
foo
34 | 35 |
foo
36 | 37 |

####### foo #######

38 | 39 |

15

40 | 41 |
foo
42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Headers.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Headers 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Headers.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Headers} 3 | \input{mmd6-article-begin} 4 | 5 | \part{foo} 6 | \label{foo} 7 | 8 | \part{foo} 9 | \label{foo} 10 | 11 | \part{foo} 12 | \label{foo} 13 | 14 | \part{foo} 15 | \label{foo} 16 | 17 | \begin{verbatim} 18 | # foo # 19 | \end{verbatim} 20 | 21 | 5 22 | 23 | \#foo\# 24 | 25 | \#foo \# 26 | 27 | \part{foo \# bar} 28 | \label{foobar} 29 | 30 | \# foo \# 31 | 32 | \chapter{foo} 33 | \label{foo} 34 | 35 | 10 36 | 37 | \section{foo} 38 | \label{foo} 39 | 40 | \subsection{foo} 41 | \label{foo} 42 | 43 | \subsubsection{foo} 44 | \label{foo} 45 | 46 | \paragraph{foo} 47 | \label{foo} 48 | 49 | \#\#\#\#\#\#\# foo \#\#\#\#\#\#\# 50 | 51 | 15 52 | 53 | \paragraph{foo} 54 | \label{foo} 55 | 56 | \input{mmd6-article-footer} 57 | \end{document} 58 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Headers.text: -------------------------------------------------------------------------------- 1 | title: Headers 2 | latexconfig: article 3 | 4 | # foo # 5 | 6 | # foo # 7 | 8 | # foo # 9 | 10 | # foo # 11 | 12 | # foo # 13 | 14 | 5 15 | 16 | #foo# 17 | 18 | #foo # 19 | 20 | # foo # bar 21 | 22 | \# foo # 23 | 24 | ## foo ## 25 | 26 | 10 27 | 28 | ### foo ### 29 | 30 | #### foo #### 31 | 32 | ##### foo ##### 33 | 34 | ###### foo ###### 35 | 36 | ####### foo ####### 37 | 38 | 15 39 | 40 | ###### foo ###### -------------------------------------------------------------------------------- /tests/MMD6Tests/HorizontalRules.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Horizontal Rules 6 | 7 | 8 | 9 |

Dashes:

10 | 11 |
12 | 13 |
14 | 15 |
16 | 17 |
18 | 19 |
---
20 | 
21 | 22 |

5

23 | 24 |
25 | 26 |
27 | 28 |
29 | 30 |
31 | 32 |
- - -
33 | 
34 | 35 |

10

36 | 37 |

Asterisks:

38 | 39 |
40 | 41 |
42 | 43 |
44 | 45 |
46 | 47 |
***
48 | 
49 | 50 |

15

51 | 52 |
53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 |
* * *
61 | 
62 | 63 |

20

64 | 65 |

Underscores:

66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 |
74 | 75 |
___
76 | 
77 | 78 |

25

79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 |
87 | 88 |
_ _ _
89 | 
90 | 91 |

30

92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HorizontalRules.htmlc: -------------------------------------------------------------------------------- 1 |

title: Horizontal Rules 2 | latexconfig: article

3 | 4 |

Dashes:

5 | 6 |
7 | 8 |
9 | 10 |
11 | 12 |
13 | 14 |
---
15 | 
16 | 17 |

5

18 | 19 |
20 | 21 |
22 | 23 |
24 | 25 |
26 | 27 |
- - -
28 | 
29 | 30 |

10

31 | 32 |

Asterisks:

33 | 34 |
35 | 36 |
37 | 38 |
39 | 40 |
41 | 42 |
***
43 | 
44 | 45 |

15

46 | 47 |
48 | 49 |
50 | 51 |
52 | 53 |
54 | 55 |
* * *
56 | 
57 | 58 |

20

59 | 60 |

Underscores:

61 | 62 |
63 | 64 |
65 | 66 |
67 | 68 |
69 | 70 |
___
71 | 
72 | 73 |

25

74 | 75 |
76 | 77 |
78 | 79 |
80 | 81 |
82 | 83 |
_ _ _
84 | 
85 | 86 |

30

87 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HorizontalRules.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Horizontal Rules 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/HorizontalRules.text: -------------------------------------------------------------------------------- 1 | title: Horizontal Rules 2 | latexconfig: article 3 | 4 | Dashes: 5 | 6 | --- 7 | 8 | --- 9 | 10 | --- 11 | 12 | --- 13 | 14 | --- 15 | 16 | 5 17 | 18 | - - - 19 | 20 | - - - 21 | 22 | - - - 23 | 24 | - - - 25 | 26 | - - - 27 | 28 | 10 29 | 30 | Asterisks: 31 | 32 | *** 33 | 34 | *** 35 | 36 | *** 37 | 38 | *** 39 | 40 | *** 41 | 42 | 15 43 | 44 | * * * 45 | 46 | * * * 47 | 48 | * * * 49 | 50 | * * * 51 | 52 | * * * 53 | 54 | 20 55 | 56 | Underscores: 57 | 58 | ___ 59 | 60 | ___ 61 | 62 | ___ 63 | 64 | ___ 65 | 66 | ___ 67 | 68 | 25 69 | 70 | _ _ _ 71 | 72 | _ _ _ 73 | 74 | _ _ _ 75 | 76 | _ _ _ 77 | 78 | _ _ _ 79 | 80 | 30 81 | -------------------------------------------------------------------------------- /tests/MMD6Tests/IndentedCodeBlocks.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Indented Code Blocks 6 | 7 | 8 | 9 |
foo
10 | 
11 | 12 |

foo

13 | 14 |
bar
15 | 
16 | 17 |

foo

18 | 19 |

foo

20 | 21 |

5

22 | 23 |

foo

24 | 25 |

foo

26 | 27 |
bar
28 | 
29 | 30 |

foo

31 | 32 |
	bar
33 | 
34 | 35 |

10

36 | 37 |

foo

38 | 39 |
bar
40 | 	bar
41 | 
42 | 43 |

foo

44 | 45 |
bar
46 | 
47 | 48 |

15

49 | 50 |

foo 51 | bar 52 | bar

53 | 54 |

foo

55 | 56 |
bar
57 | 
58 | 59 |

foo

60 | 61 |
bar
62 | 
63 | bar
64 | 
65 | bar
66 | 
67 | 68 |

foo

69 | 70 |
-<>--&\&---...
71 | 
72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/MMD6Tests/IndentedCodeBlocks.htmlc: -------------------------------------------------------------------------------- 1 |

title: Indented Code Blocks 2 | latexconfig: article

3 | 4 |
foo
 5 | 
6 | 7 |

foo

8 | 9 |
bar
10 | 
11 | 12 |

foo

13 | 14 |

foo

15 | 16 |

5

17 | 18 |

foo

19 | 20 |

foo

21 | 22 |
bar
23 | 
24 | 25 |

foo

26 | 27 |
	bar
28 | 
29 | 30 |

10

31 | 32 |

foo

33 | 34 |
bar
35 | 	bar
36 | 
37 | 38 |

foo

39 | 40 |
bar
41 | 
42 | 43 |

15

44 | 45 |

foo 46 | bar 47 | bar

48 | 49 |

foo

50 | 51 |
bar
52 | 
53 | 54 |

foo

55 | 56 |
bar
57 | 
58 | bar
59 | 
60 | bar
61 | 
62 | 63 |

foo

64 | 65 |
-<>--&\&---...
66 | 
67 | -------------------------------------------------------------------------------- /tests/MMD6Tests/IndentedCodeBlocks.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Indented Code Blocks 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/IndentedCodeBlocks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Indented Code Blocks} 3 | \input{mmd6-article-begin} 4 | 5 | \begin{verbatim} 6 | foo 7 | \end{verbatim} 8 | 9 | foo 10 | 11 | \begin{verbatim} 12 | bar 13 | \end{verbatim} 14 | 15 | foo 16 | 17 | foo 18 | 19 | 5 20 | 21 | foo 22 | 23 | foo 24 | 25 | \begin{verbatim} 26 | bar 27 | \end{verbatim} 28 | 29 | foo 30 | 31 | \begin{verbatim} 32 | bar 33 | \end{verbatim} 34 | 35 | 10 36 | 37 | foo 38 | 39 | \begin{verbatim} 40 | bar 41 | bar 42 | \end{verbatim} 43 | 44 | foo 45 | 46 | \begin{verbatim} 47 | bar 48 | \end{verbatim} 49 | 50 | 15 51 | 52 | foo 53 | bar 54 | bar 55 | 56 | foo 57 | 58 | \begin{verbatim} 59 | bar 60 | \end{verbatim} 61 | 62 | foo 63 | 64 | \begin{verbatim} 65 | bar 66 | 67 | bar 68 | 69 | bar 70 | \end{verbatim} 71 | 72 | foo 73 | 74 | \begin{verbatim} 75 | -<>--&\&---... 76 | \end{verbatim} 77 | 78 | \input{mmd6-article-footer} 79 | \end{document} 80 | -------------------------------------------------------------------------------- /tests/MMD6Tests/IndentedCodeBlocks.text: -------------------------------------------------------------------------------- 1 | title: Indented Code Blocks 2 | latexconfig: article 3 | 4 | foo 5 | 6 | foo 7 | 8 | bar 9 | 10 | foo 11 | 12 | foo 13 | 14 | 5 15 | 16 | foo 17 | 18 | foo 19 | 20 | bar 21 | 22 | foo 23 | 24 | bar 25 | 26 | 10 27 | 28 | foo 29 | 30 | bar 31 | bar 32 | 33 | foo 34 | 35 | bar 36 | 37 | 15 38 | 39 | foo 40 | bar 41 | bar 42 | 43 | foo 44 | 45 | bar 46 | 47 | foo 48 | 49 | bar 50 | 51 | bar 52 | 53 | bar 54 | 55 | foo 56 | 57 | -<>--&\&---... 58 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineCitations.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Inline Citations 6 | 7 | 8 | 9 |

Inline. (1) 10 | (2)

11 | 12 |
13 |
14 |
    15 | 16 |
  1. 17 |

    John Doe. A Totally Fake Book 1. Vanity Press, 2006.  ↩︎

    18 |
  2. 19 | 20 |
  3. 21 |

    John Doe. A Totally Fake Book 2. Vanity Press, 2006.  ↩︎

    22 |
  4. 23 | 24 |
25 |
26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineCitations.htmlc: -------------------------------------------------------------------------------- 1 |

title: Inline Citations 2 | latexconfig: article

3 | 4 |

Inline. [#John Doe. A Totally Fake Book 1. Vanity Press, 2006.] 5 | [#John Doe. A Totally Fake Book 2. Vanity Press, 2006.]

6 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineCitations.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Inline Citations 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineCitations.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Inline Citations} 3 | \input{mmd6-article-begin} 4 | 5 | Inline. ~\citep{johndoe.atotallyfakebook1.vanitypress2006.} 6 | ~\citep{johndoe.atotallyfakebook2.vanitypress2006.} 7 | 8 | \begin{thebibliography}{0} 9 | 10 | \bibitem{johndoe.atotallyfakebook1.vanitypress2006.} 11 | John Doe. \emph{A Totally Fake Book 1}. Vanity Press, 2006. 12 | 13 | \bibitem{johndoe.atotallyfakebook2.vanitypress2006.} 14 | John Doe. \emph{A Totally Fake Book 2}. Vanity Press, 2006. 15 | \end{thebibliography} 16 | 17 | \input{mmd6-article-footer} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineCitations.text: -------------------------------------------------------------------------------- 1 | title: Inline Citations 2 | latexconfig: article 3 | 4 | Inline. [#John Doe. *A Totally Fake Book 1*. Vanity Press, 2006.] 5 | [#John Doe. *A Totally Fake Book 2*. Vanity Press, 2006.] 6 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineFootnotes.htmlc: -------------------------------------------------------------------------------- 1 |

title: Inline Footnotes 2 | latexconfig: article

3 | 4 |

Inline.[^foo bar]

5 | 6 |

Inline.[^foo bar 7 | foo 8 | foo.]

9 | 10 |

Inline.[^foo bar]

11 | 12 |

Inline.[^foo][^foo][^bar]

13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineFootnotes.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Inline Footnotes 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineFootnotes.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Inline Footnotes} 3 | \input{mmd6-article-begin} 4 | 5 | Inline.\footnote{foo \emph{bar}} 6 | 7 | Inline.\footnote{foo \emph{bar} 8 | \href{/bar}{foo}\footnote{\href{/bar}{\slash{}bar}} 9 | \textbf{foo}.} 10 | 11 | Inline.\footnote{foo \emph{bar}} 12 | 13 | Inline.\footnote{foo}\footnote{foo}\footnote{bar} 14 | 15 | \input{mmd6-article-footer} 16 | \end{document} 17 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineFootnotes.text: -------------------------------------------------------------------------------- 1 | title: Inline Footnotes 2 | latexconfig: article 3 | 4 | Inline.[^foo *bar*] 5 | 6 | Inline.[^foo *bar* 7 | [foo](/bar) 8 | **foo**.] 9 | 10 | Inline.[^foo *bar*] 11 | 12 | Inline.[^foo][^foo][^bar] 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineImages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Inline Images 6 | 7 | 8 | 9 |

Just a URL.

10 | 11 |

URL and title.

12 | 13 |

URL and title.

14 | 15 |

URL and title.

16 | 17 |

URL and title.

18 | 19 |

5

20 | 21 |

Empty.

22 | 23 |

URL and title.

24 | 25 |

URL and title.

26 | 27 |

URL and title.

28 | 29 |

URL and title.

30 | 31 |

10

32 | 33 |

URL and title.

34 | 35 |

URL and title.

36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineImages.htmlc: -------------------------------------------------------------------------------- 1 |

title: Inline Images 2 | latexconfig: article

3 | 4 |

Just a URL.

5 | 6 |

URL and title.

7 | 8 |

URL and title.

9 | 10 |

URL and title.

11 | 12 |

URL and title.

13 | 14 |

5

15 | 16 |

Empty.

17 | 18 |

URL and title.

19 | 20 |

URL and title.

21 | 22 |

URL and title.

23 | 24 |

URL and title.

25 | 26 |

10

27 | 28 |

URL and title.

29 | 30 |

URL and title.

31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineImages.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Inline Images 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineImages.text: -------------------------------------------------------------------------------- 1 | title: Inline Images 2 | latexconfig: article 3 | 4 | Just a ![URL](/url/). 5 | 6 | ![URL and title](/url/ "title"). 7 | 8 | ![URL and title](/url/ "title preceded by two spaces"). 9 | 10 | ![URL and title](/url/ "title preceded by a tab"). 11 | 12 | ![URL and title](/url/ "title has spaces afterward" ). 13 | 14 | 5 15 | 16 | [Empty](). 17 | 18 | ![**URL** and *title*](/url/ "title"). 19 | 20 | ![URL and title](/url/ "title"). 21 | 22 | ![URL and title](/url/ 'title'). 23 | 24 | ![URL and title](/url/ (title)). 25 | 26 | 10 27 | 28 | ![URL and title](/url/ ""). 29 | 30 | ![URL and title](/url/ "*title*"). 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/InlineLinks.text: -------------------------------------------------------------------------------- 1 | title: Inline Links 2 | latexconfig: article 3 | 4 | Just a [URL](http://url/file.txt). 5 | 6 | [URL and title](/url/file.txt "title"). 7 | 8 | [URL and title](/url/file.txt "title preceded by two spaces"). 9 | 10 | [URL and title](/url/file.txt "title preceded by a tab"). 11 | 12 | [URL and title](/url/file.txt "title has spaces afterward" ). 13 | 14 | 5 15 | 16 | [Empty](). 17 | 18 | [**URL** and *title*](/url/file.txt "title"). 19 | 20 | [URL and title](/url/file.txt "title"). 21 | 22 | [URL and title](/url/file.txt 'title'). 23 | 24 | [URL and title](/url/file.txt (title)). 25 | 26 | 10 27 | 28 | [URL and title](/url/file.txt ""). 29 | 30 | [URL and title](/url/file.txt "*title*"). 31 | 32 | [URL and title] (/url/file.txt "*title*"). 33 | 34 | [URL and title] 35 | (/url/file.txt "*title*"). 36 | 37 | [URL and title]( /url/file.txt "title"). 38 | 39 | 15 40 | 41 | [URL and title]( /url/file.txt "title"). 42 | 43 | [URL and title]( "title"). 44 | 45 | [URL and title]( "title"). 46 | 47 | [URL and title]( "title"). 48 | -------------------------------------------------------------------------------- /tests/MMD6Tests/International.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | International 6 | 7 | 8 | 9 |

été

10 | 11 |

à la

12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/MMD6Tests/International.htmlc: -------------------------------------------------------------------------------- 1 |

title: International 2 | latexconfig: article

3 | 4 |

été

5 | 6 |

à la

7 | -------------------------------------------------------------------------------- /tests/MMD6Tests/International.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | International 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/International.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{International} 3 | \input{mmd6-article-begin} 4 | 5 | été 6 | 7 | à la 8 | 9 | \input{mmd6-article-footer} 10 | \end{document} 11 | -------------------------------------------------------------------------------- /tests/MMD6Tests/International.text: -------------------------------------------------------------------------------- 1 | title: International 2 | latexconfig: article 3 | 4 | été 5 | 6 | à la 7 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Linebreaks.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Linebreaks 6 | 7 | 8 | 9 |

foo 10 | bar

11 | 12 |

foo 13 | bar

14 | 15 |

foo
16 | bar

17 | 18 |

foo
19 | bar

20 | 21 |

foo
22 | bar

23 | 24 |

5

25 | 26 |

foo
27 | bar

28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Linebreaks.htmlc: -------------------------------------------------------------------------------- 1 |

title: Linebreaks 2 | latexconfig: article

3 | 4 |

foo 5 | bar

6 | 7 |

foo 8 | bar

9 | 10 |

foo
11 | bar

12 | 13 |

foo
14 | bar

15 | 16 |

foo
17 | bar

18 | 19 |

5

20 | 21 |

foo
22 | bar

23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Linebreaks.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Linebreaks 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Linebreaks.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Linebreaks} 3 | \input{mmd6-article-begin} 4 | 5 | foo 6 | bar 7 | 8 | foo 9 | bar 10 | 11 | foo\\ 12 | bar 13 | 14 | foo\\ 15 | bar 16 | 17 | foo\\ 18 | bar 19 | 20 | 5 21 | 22 | foo\\ 23 | bar 24 | 25 | \input{mmd6-article-footer} 26 | \end{document} 27 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Linebreaks.text: -------------------------------------------------------------------------------- 1 | title: Linebreaks 2 | latexconfig: article 3 | 4 | foo 5 | bar 6 | 7 | foo 8 | bar 9 | 10 | foo 11 | bar 12 | 13 | foo 14 | bar 15 | 16 | foo\ 17 | bar 18 | 19 | 5 20 | 21 | foo 22 | bar 23 | 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkAttributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Link Attributes 6 | 7 | 8 | 9 |

foo image

10 | 11 |

foo link

12 | 13 |

foo link2

14 | 15 |

foo link3

16 | 17 |
18 | test 19 |
test
20 |
21 | 22 |

5

23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkAttributes.htmlc: -------------------------------------------------------------------------------- 1 |

title: Link Attributes 2 | latexconfig: article

3 | 4 |

foo ![image][]

5 | 6 |

foo [link][]

7 | 8 |

foo [link2][]

9 | 10 |

foo [link3][]

11 | 12 |

![test](http://foo.bar/ "title" width="40px" height=400px)

13 | 14 |

5

15 | 16 |

[image]: http://foo.bar/ "title" width="40px" height=400px 17 | [link]: http://foo.bar/1 class=external 18 | style="border: solid black 1px;" 19 | [link2]: http://foo.bar/2 class=external 20 | style="border: solid black 1px;" 21 | [link3]: http://foo.bar/3 class=external 22 | style="border: solid black 1px;"

23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkAttributes.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Link Attributes 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkAttributes.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Link Attributes} 3 | \input{mmd6-article-begin} 4 | 5 | foo \includegraphics[width=40pt,height=400pt]{http://foo.bar/} 6 | 7 | foo \href{http://foo.bar/1}{link}\footnote{\href{http://foo.bar/1}{http:\slash{}\slash{}foo.bar\slash{}1}} 8 | 9 | foo \href{http://foo.bar/2}{link2}\footnote{\href{http://foo.bar/2}{http:\slash{}\slash{}foo.bar\slash{}2}} 10 | 11 | foo \href{http://foo.bar/3}{link3}\footnote{\href{http://foo.bar/3}{http:\slash{}\slash{}foo.bar\slash{}3}} 12 | 13 | \begin{figure}[htbp] 14 | \centering 15 | \includegraphics[width=40pt,height=400pt]{http://foo.bar/} 16 | \caption[title]{test} 17 | \end{figure} 18 | 19 | 5 20 | 21 | \input{mmd6-article-footer} 22 | \end{document} 23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkAttributes.text: -------------------------------------------------------------------------------- 1 | title: Link Attributes 2 | latexconfig: article 3 | 4 | foo ![image][] 5 | 6 | foo [link][] 7 | 8 | foo [link2][] 9 | 10 | foo [link3][] 11 | 12 | ![test](http://foo.bar/ "title" width="40px" height=400px) 13 | 14 | 5 15 | 16 | 17 | [image]: http://foo.bar/ "title" width="40px" height=400px 18 | [link]: class=external 19 | style="border: solid black 1px;" 20 | [link2]: http://foo.bar/2 class=external 21 | style="border: solid black 1px;" 22 | [link3]: http://foo.bar/3 class=external 23 | style="border: solid black 1px;" 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkVariations.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Link Variations 6 | 7 | 8 | 9 |

Foo Bar

10 | 11 |

Link to Foo Bar.

12 | 13 |

Link to foo bar.

14 | 15 |

Link to foobar.

16 | 17 |

Link to Foo Bar.

18 | 19 |

Link to .

20 | 21 |

5

22 | 23 |

Link to Foo.

24 | 25 |

& link

26 | 27 |

‘%’ Link

28 | 29 |

‘#’ link

30 | 31 |

10

32 | 33 |

_ link

34 | 35 |

~ link

36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkVariations.htmlc: -------------------------------------------------------------------------------- 1 |

title: Link Variations 2 | latexconfig: article

3 | 4 |

Foo Bar

5 | 6 |

Link to [Foo Bar].

7 | 8 |

Link to [foo bar].

9 | 10 |

Link to [foobar].

11 | 12 |

Link to Foo Bar.

13 | 14 |

Link to .

15 | 16 |

5

17 | 18 |

Link to [Foo][Foo Bar].

19 | 20 |

& link

21 | 22 |

'%' Link

23 | 24 |

'#' link

25 | 26 |

10

27 | 28 |

_ link

29 | 30 |

~ link

31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkVariations.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Link Variations 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/LinkVariations.text: -------------------------------------------------------------------------------- 1 | title: Link Variations 2 | latexconfig: article 3 | 4 | ## Foo Bar ## 5 | 6 | Link to [Foo Bar]. 7 | 8 | Link to [foo bar]. 9 | 10 | Link to [foobar]. 11 | 12 | Link to [Foo Bar](#foobar). 13 | 14 | Link to [](#foobar). 15 | 16 | 5 17 | 18 | Link to [Foo][Foo Bar]. 19 | 20 | [& link](http://example.com/?bar=foo&foo=bar) 21 | 22 | ['%' Link](http://example.com/%25%20link) 23 | 24 | ['#' link](http://example.com/#foo) 25 | 26 | 10 27 | 28 | [_ link](http://example.com/_foo) 29 | 30 | [~ link](http://example.com/~foo) -------------------------------------------------------------------------------- /tests/MMD6Tests/ListEdge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | List Edge 6 | 7 | 8 | 9 |
    10 |
  • foo

  • 11 |
  • bar

  • 12 |
  • foo

    13 | 14 |
      15 |
    • bar
    • 16 |
  • 17 |
18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ListEdge.htmlc: -------------------------------------------------------------------------------- 1 |

title: List Edge 2 | latexconfig: article

3 | 4 |
    5 |
  • foo

  • 6 |
  • bar

  • 7 |
  • foo

    8 | 9 |
      10 |
    • bar
    • 11 |
  • 12 |
13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ListEdge.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | List Edge 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ListEdge.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{List Edge} 3 | \input{mmd6-article-begin} 4 | 5 | \begin{itemize} 6 | \item foo 7 | 8 | \item bar 9 | 10 | \item foo 11 | 12 | \begin{itemize} 13 | \item bar 14 | 15 | \end{itemize} 16 | 17 | \end{itemize} 18 | 19 | \input{mmd6-article-footer} 20 | \end{document} 21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ListEdge.text: -------------------------------------------------------------------------------- 1 | title: List Edge 2 | latexconfig: article 3 | 4 | - foo 5 | 6 | * bar 7 | * foo 8 | * bar -------------------------------------------------------------------------------- /tests/MMD6Tests/MMDHeaderandFooter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MMD Header and Footer 6 | HTML header. 7 | 8 | 9 | 10 |

MultiMarkdown header.

11 | 12 |

Main Body

13 | 14 |

MultiMarkdown footer.

HTML footer. 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MMDHeaderandFooter.htmlc: -------------------------------------------------------------------------------- 1 |

title: MMD Header and Footer 2 | latexconfig: article 3 | MMD Header: {{header.txt}} 4 | MMD Footer: {{footer.txt}} 5 | HTML Header: HTML header. 6 | HTML Footer: HTML footer. 7 | LaTeX Header: \LaTeX \emph{header} 8 | ODF Header: ODF header.

9 | 10 |

Main Body

11 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MMDHeaderandFooter.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | MMD Header and Footer 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MMDHeaderandFooter.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{MMD Header and Footer} 3 | \LaTeX \emph{header} 4 | \input{mmd6-article-begin} 5 | 6 | MultiMarkdown \emph{header}. 7 | 8 | Main Body 9 | 10 | MultiMarkdown \emph{footer}. 11 | 12 | \input{mmd6-article-footer} 13 | \end{document} 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MMDHeaderandFooter.text: -------------------------------------------------------------------------------- 1 | title: MMD Header and Footer 2 | latexconfig: article 3 | MMD Header: {{header.txt}} 4 | MMD Footer: {{footer.txt}} 5 | HTML Header: HTML header. 6 | HTML Footer: HTML footer. 7 | LaTeX Header: \LaTeX \emph{header} 8 | ODF Header: ODF header. 9 | 10 | 11 | Main Body 12 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Metadata.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | *foo* "bar" 6 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 |

foo: bar

16 | 17 |

foo

18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Metadata.htmlc: -------------------------------------------------------------------------------- 1 |

title: foo "bar" 2 | empty: 3 | css: http://foo.com/bar.css 4 | htmlheader: 7 | latexleader: mmd6-article-leader 8 | latexbegin: mmd6-article-begin 9 | latexfooter: mmd6-article-footer 10 | foo: bar 11 | foo bar 12 | foo bar 13 | foo: bar 14 | htmlheader level: 2 15 | latexheader level: 2 16 | baseheader level: 3 17 | multiline: first line
18 | second line

19 | 20 |

foo: bar

21 | 22 |

foo

23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Metadata.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | *foo* "bar" 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Metadata.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{*foo* "bar"} 3 | \def\empty{} 4 | \def\foo{bar foo bar foo bar} 5 | \def\multiline{first line\\ 6 | second line} 7 | \input{mmd6-article-begin} 8 | 9 | foo: bar 10 | 11 | \chapter{foo} 12 | \label{foo} 13 | 14 | \input{mmd6-article-footer} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Metadata.text: -------------------------------------------------------------------------------- 1 | title: *foo* "bar" 2 | empty: 3 | css: http://foo.com/bar.css 4 | htmlheader: 7 | latexleader: mmd6-article-leader 8 | latexbegin: mmd6-article-begin 9 | latexfooter: mmd6-article-footer 10 | foo: bar 11 | foo bar 12 | foo bar 13 | foo: *bar* 14 | htmlheader level: 2 15 | latexheader level: 2 16 | baseheader level: 3 17 | multiline: first line\ 18 | second line 19 | 20 | foo: bar 21 | 22 | # foo # 23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MetadataYAML.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Metadata with YAML 6 | 7 | 8 | 9 |
10 | 11 |

foo

12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MetadataYAML.htmlc: -------------------------------------------------------------------------------- 1 |
2 | 3 |

title: Metadata with YAML 4 | latexconfig: article

5 | 6 |
7 | 8 |

foo

9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MetadataYAML.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Metadata with YAML 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MetadataYAML.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Metadata with YAML} 3 | \input{mmd6-article-begin} 4 | 5 | \begin{center}\rule{3in}{0.4pt}\end{center} 6 | 7 | foo 8 | 9 | \input{mmd6-article-footer} 10 | \end{document} 11 | -------------------------------------------------------------------------------- /tests/MMD6Tests/MetadataYAML.text: -------------------------------------------------------------------------------- 1 | --- 2 | title: Metadata with YAML 3 | latexconfig: article 4 | --- 5 | 6 | --- 7 | 8 | foo 9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedDefinitionLists.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Nested Definition Lists 6 | 7 | 8 | 9 |
10 |
bat
11 |

foo

12 | 13 |

bar

14 | 15 |
*foo*
16 | 
17 |
18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedDefinitionLists.htmlc: -------------------------------------------------------------------------------- 1 |

title: Nested Definition Lists 2 | latexconfig: article

3 | 4 |

bat 5 | : foo

6 | 7 |
bar
 8 | 
 9 | 	*foo*
10 | 
11 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedDefinitionLists.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nested Definition Lists 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedDefinitionLists.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Nested Definition Lists} 3 | \input{mmd6-article-begin} 4 | 5 | \begin{description} 6 | \item[bat] 7 | 8 | \emph{foo} 9 | 10 | bar 11 | 12 | \begin{verbatim} 13 | *foo* 14 | \end{verbatim} 15 | \end{description} 16 | 17 | \input{mmd6-article-footer} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedDefinitionLists.text: -------------------------------------------------------------------------------- 1 | title: Nested Definition Lists 2 | latexconfig: article 3 | 4 | bat 5 | : *foo* 6 | 7 | bar 8 | 9 | *foo* 10 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedLists.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nested Lists 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/NestedLists.text: -------------------------------------------------------------------------------- 1 | title: Nested Lists 2 | latexconfig: article 3 | 4 | * foo 5 | * bar 6 | * foo 7 | * bar 8 | * foo 9 | * bar 10 | 11 | bar 12 | 13 | * foo 14 | 15 | * bar 16 | * foo 17 | 18 | * bar 19 | * foo 20 | 21 | * bar 22 | 23 | bar 24 | 25 | * foo 26 | * bar 27 | 28 | * foo 29 | * bar 30 | 31 | * foo 32 | * bar 33 | 34 | 5 35 | 36 | * foo 37 | * bar 38 | 39 | * foo 40 | * bar 41 | 42 | * foo 43 | * bar 44 | 45 | 46 | bar 47 | 48 | * foo 49 | 50 | * bar 51 | 52 | * foo 53 | 54 | * bar 55 | 56 | * foo 57 | 58 | * bar 59 | 60 | bar 61 | 62 | -------------------------------------------------------------------------------- /tests/MMD6Tests/RawSource.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Raw Source 6 | 7 | 8 | 9 |

*foo*{*}

10 | 11 |

*foo*

12 | 13 |

14 | 15 |

16 | 17 |

*foo*

18 | 19 |

5

20 | 21 |
*foo*
22 | 
23 | 24 | *foo* 25 | 26 | *foo* 27 | 28 |

10

29 | 30 | *foo* 31 | 32 | *bar* 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/MMD6Tests/RawSource.htmlc: -------------------------------------------------------------------------------- 1 |

title: Raw Source 2 | latexconfig: article

3 | 4 |

*foo*{*}

5 | 6 |

*foo*{=html}

7 | 8 |

*foo*{=latex}

9 | 10 |

*foo*{=odt}

11 | 12 |

*foo*{=*}

13 | 14 |

5

15 | 16 |

{*} 17 | *foo*

18 | 19 |

{=html} 20 | *foo*

21 | 22 |

{=latex} 23 | *foo*

24 | 25 |

{=odt} 26 | *foo*

27 | 28 |

{=*} 29 | *foo*

30 | 31 |

10

32 | 33 |

```{=*} 34 | foo

35 | 36 |

bar

37 | -------------------------------------------------------------------------------- /tests/MMD6Tests/RawSource.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Raw Source 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/RawSource.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Raw Source} 3 | \input{mmd6-article-begin} 4 | 5 | \texttt{*foo*}\{*\} 6 | 7 | 8 | 9 | *foo* 10 | 11 | 12 | 13 | *foo* 14 | 15 | 5 16 | 17 | \begin{lstlisting}[language={*}] 18 | *foo* 19 | \end{lstlisting} 20 | 21 | *foo* 22 | 23 | *foo* 24 | 25 | 10 26 | 27 | *foo* 28 | 29 | *bar* 30 | 31 | 32 | \input{mmd6-article-footer} 33 | \end{document} 34 | -------------------------------------------------------------------------------- /tests/MMD6Tests/RawSource.text: -------------------------------------------------------------------------------- 1 | title: Raw Source 2 | latexconfig: article 3 | 4 | `*foo*`{*} 5 | 6 | `*foo*`{=html} 7 | 8 | `*foo*`{=latex} 9 | 10 | `*foo*`{=odt} 11 | 12 | `*foo*`{=*} 13 | 14 | 5 15 | 16 | ```{*} 17 | *foo* 18 | ``` 19 | 20 | ```{=html} 21 | *foo* 22 | ``` 23 | 24 | ```{=latex} 25 | *foo* 26 | ``` 27 | 28 | ```{=odt} 29 | *foo* 30 | ``` 31 | 32 | ```{=*} 33 | *foo* 34 | ``` 35 | 36 | 10 37 | 38 | ```{=*} 39 | *foo* 40 | 41 | *bar* 42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceFootnotes.htmlc: -------------------------------------------------------------------------------- 1 |

title: Reference Footnotes 2 | latexconfig: article

3 | 4 |

foo.^bar

5 | 6 |

foo.^bar2

7 | 8 |

foo.^bar3

9 | 10 |

foo.^bar3

11 | 12 |
*bar*
13 | 
14 | * bat
15 | 
16 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceFootnotes.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reference Footnotes 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceFootnotes.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Reference Footnotes} 3 | \input{mmd6-article-begin} 4 | 5 | foo.\footnote{\emph{foo}} 6 | 7 | foo.\footnote{\emph{foo 8 | bar}} 9 | 10 | foo.\footnote{foo 11 | 12 | \emph{bar} 13 | 14 | \begin{itemize} 15 | \item bat 16 | 17 | \end{itemize}} 18 | 19 | foo.\footnote{foo 20 | 21 | \emph{bar} 22 | 23 | \begin{itemize} 24 | \item bat 25 | 26 | \end{itemize}} 27 | 28 | \input{mmd6-article-footer} 29 | \end{document} 30 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceFootnotes.text: -------------------------------------------------------------------------------- 1 | title: Reference Footnotes 2 | latexconfig: article 3 | 4 | foo.[^bar] 5 | 6 | foo.[^bar2] 7 | 8 | foo.[^bar3] 9 | 10 | foo.[^bar3] 11 | 12 | [^bar]: *foo* 13 | [^bar2]: *foo 14 | bar* 15 | [^bar3]: foo 16 | 17 | *bar* 18 | 19 | * bat 20 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceImages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Reference Images 6 | 7 | 8 | 9 |

Test foo.

10 | 11 |

Test foo.

12 | 13 |

Test foo.

14 | 15 |

Test foo.

16 | 17 |

Test foo.

18 | 19 |

5

20 | 21 |

Test foo.

22 | 23 |

Test foo.

24 | 25 |

Test foo.

26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceImages.htmlc: -------------------------------------------------------------------------------- 1 |

title: Reference Images 2 | latexconfig: article

3 | 4 |

Test foo.

5 | 6 |

Test foo.

7 | 8 |

Test foo.

9 | 10 |

Test foo.

11 | 12 |

Test foo.

13 | 14 |

5

15 | 16 |

Test foo.

17 | 18 |

Test foo.

19 | 20 |

Test foo.

21 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceImages.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reference Images 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceImages.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Reference Images} 3 | \input{mmd6-article-begin} 4 | 5 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.1/}. 6 | 7 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.1/}. 8 | 9 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.3/}. 10 | 11 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.4/}. 12 | 13 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.4/}. 14 | 15 | 5 16 | 17 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.6/}. 18 | 19 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.0/}. 20 | 21 | Test \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://test.0/}. 22 | 23 | \input{mmd6-article-footer} 24 | \end{document} 25 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceImages.text: -------------------------------------------------------------------------------- 1 | title: Reference Images 2 | latexconfig: article 3 | 4 | Test ![*foo*][bar]. 5 | 6 | Test ![*foo*][BAR]. 7 | 8 | Test ![*foo*][foobar]. 9 | 10 | Test ![*foo*][foo bar]. 11 | 12 | Test ![*foo*][foo bar]. 13 | 14 | 5 15 | 16 | Test ![*foo*][long]. 17 | 18 | Test ![foo][]. 19 | 20 | Test ![foo]. 21 | 22 | 23 | [foo]: http://test.0/ 24 | [bar]: http://test.1/ 25 | [BAR]: http://test.2/ 26 | [foobar]: http://test.3/ "title" 27 | [foo bar]: http://test.4/ 28 | [foo bar]: http://test.5/ "" 29 | [long]: http://test.6/ 30 | "title" 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/ReferenceLinks.text: -------------------------------------------------------------------------------- 1 | title: Reference Links 2 | latexconfig: article 3 | 4 | [*foo*][bar]. 5 | 6 | [*foo*][BAR]. 7 | 8 | [*foo*][foobar]. 9 | 10 | [*foo*][foo bar]. 11 | 12 | [*foo*][foo bar]. 13 | 14 | 5 15 | 16 | [*foo*][long]. 17 | 18 | [foo][]. 19 | 20 | [foo]. 21 | 22 | [[foo]][bar] 23 | 24 | [[foo]][] 25 | 26 | 10 27 | 28 | [[foo][bar]][] 29 | 30 | [foo][bar] 31 | 32 | [foo] [bar] 33 | 34 | [foo] 35 | [bar] 36 | 37 | [Markdown] 38 | 39 | 15 40 | 41 | [angle1] 42 | 43 | [angle2] 44 | 45 | [angle3] 46 | 47 | [angle4] 48 | 49 | [angle5] 50 | 51 | 20 52 | 53 | [angle6] 54 | 55 | 56 | [foo]: http://test.0/ 57 | [bar]: http://test.1/file.txt 58 | [BAR]: http://test.2/ 59 | [foobar]: http://test.3/file.txt "title" 60 | [foo bar]: http://test.4/ 61 | [foo bar]: http://test.5/ "" 62 | [long]: http://test.6/ 63 | "title" 64 | [Markdown]: http://daringfireball.net/projects/markdown/ "Daring Fireball: 65 | Markdown" 66 | 67 | [angle1]: 68 | [angle2]: 69 | [angle3]: 70 | [angle4]: 71 | [angle5]: 72 | [angle6]: 73 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SetextHeaders.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Setext Headers 6 | 7 | 8 | 9 |

foo bar

10 | 11 |

foo bar

12 | 13 |

foo 14 | bar

15 | 16 |

foo 17 | bar

18 | 19 |

foo

20 | 21 |

bar

22 | 23 |

5

24 | 25 |

foo

26 | 27 |

bar

28 | 29 |
foo
30 | ====
31 | 
32 | 33 |
34 | 35 |
36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SetextHeaders.htmlc: -------------------------------------------------------------------------------- 1 |

title: Setext Headers 2 | latexconfig: article

3 | 4 |

foo bar

5 | 6 |

foo bar

7 | 8 |

foo 9 | bar

10 | 11 |

foo 12 | bar

13 | 14 |

foo

15 | 16 |

bar

17 | 18 |

5

19 | 20 |

foo

21 | 22 |

bar

23 | 24 |

```` 25 | foo

26 | 27 |

````

28 | 29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SetextHeaders.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Setext Headers 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SetextHeaders.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Setext Headers} 3 | \input{mmd6-article-begin} 4 | 5 | \part{foo bar} 6 | \label{foobar} 7 | 8 | \chapter{foo \emph{bar}} 9 | \label{foobar} 10 | 11 | \part{foo 12 | bar} 13 | \label{foobar} 14 | 15 | \chapter{foo 16 | bar} 17 | \label{foobar} 18 | 19 | \part{foo} 20 | \label{foo} 21 | 22 | bar 23 | 24 | 5 25 | 26 | \chapter{foo} 27 | \label{foo} 28 | 29 | bar 30 | 31 | \begin{verbatim} 32 | foo 33 | ==== 34 | \end{verbatim} 35 | 36 | \begin{center}\rule{3in}{0.4pt}\end{center} 37 | 38 | \begin{center}\rule{3in}{0.4pt}\end{center} 39 | 40 | \input{mmd6-article-footer} 41 | \end{document} 42 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SetextHeaders.text: -------------------------------------------------------------------------------- 1 | title: Setext Headers 2 | latexconfig: article 3 | 4 | foo bar 5 | ======= 6 | 7 | foo *bar* 8 | ------- 9 | 10 | foo 11 | bar 12 | === 13 | 14 | foo 15 | bar 16 | --- 17 | 18 | foo 19 | === 20 | bar 21 | 22 | 5 23 | 24 | foo 25 | --- 26 | bar 27 | 28 | 29 | ```` 30 | foo 31 | ==== 32 | ```` 33 | 34 | ==== 35 | 36 | ---- 37 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SmartQuotes.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Smart Quotes} 3 | \input{mmd6-article-begin} 4 | 5 | `foo' 6 | 7 | ``foo'' 8 | 9 | ``foo'' `bar' 10 | 11 | `foo' ``bar'' 12 | 13 | `.foo' 14 | 15 | 5 16 | 17 | "foo". 18 | 19 | 'foo'. 20 | 21 | `foo' 22 | 23 | ``foo'' 24 | 25 | ```foo''' 26 | 27 | 10 28 | 29 | ``'' foo ``''? 30 | 31 | '' foo ''? 32 | 33 | isn't 34 | 35 | foo -- bar 36 | 37 | foo --- bar 38 | 39 | 15 40 | 41 | 1--2 42 | 43 | 1--2 44 | 45 | 1---3 46 | 47 | \texttt{-{}-} 48 | 49 | \texttt{-{}-{}-} 50 | 51 | 20 52 | 53 | {\ldots} 54 | 55 | {\ldots} 56 | 57 | \texttt{...} 58 | 59 | \texttt{. . .} 60 | 61 | l'année l'année 62 | 63 | 25 64 | 65 | l'été l'année 66 | 67 | l'été l'été 68 | 69 | l'année l'été 70 | 71 | foo's and bar's 72 | 73 | \texttt{foo}'s and \texttt{bar}'s 74 | 75 | 30 76 | 77 | foo(`bar') 78 | 79 | foo(``bar'') 80 | 81 | foo-bar 82 | 83 | \begin{itemize} 84 | \item foo-bar 85 | 86 | \item foo-bar 87 | 88 | \end{itemize} 89 | 90 | How wide a printer? 24''? 48''? 54''? 91 | 92 | \input{mmd6-article-footer} 93 | \end{document} 94 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SmartQuotes.text: -------------------------------------------------------------------------------- 1 | title: Smart Quotes 2 | latexconfig: article 3 | 4 | 'foo' 5 | 6 | "foo" 7 | 8 | "foo" 'bar' 9 | 10 | 'foo' "bar" 11 | 12 | '.foo' 13 | 14 | 5 15 | 16 | \"foo\". 17 | 18 | \'foo\'. 19 | 20 | `foo' 21 | 22 | ``foo'' 23 | 24 | ```foo''' 25 | 26 | 10 27 | 28 | "" foo ""? 29 | 30 | '' foo ''? 31 | 32 | isn't 33 | 34 | foo -- bar 35 | 36 | foo --- bar 37 | 38 | 15 39 | 40 | 1-2 41 | 42 | 1--2 43 | 44 | 1---3 45 | 46 | `--` 47 | 48 | `---` 49 | 50 | 20 51 | 52 | ... 53 | 54 | . . . 55 | 56 | `...` 57 | 58 | `. . .` 59 | 60 | l'année l'année 61 | 62 | 25 63 | 64 | l'été l'année 65 | 66 | l'été l'été 67 | 68 | l'année l'été 69 | 70 | foo's and bar's 71 | 72 | `foo`'s and `bar`'s 73 | 74 | 30 75 | 76 | foo('bar') 77 | 78 | foo("bar") 79 | 80 | foo-bar 81 | 82 | * foo-bar 83 | * foo-bar 84 | 85 | How wide a printer? 24"? 48"? 54"? 86 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Spanish.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Spanish 6 | 7 | 8 | 9 |

‘foo’

10 | 11 |

«foo»

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Spanish.htmlc: -------------------------------------------------------------------------------- 1 |

title: Spanish 2 | latexconfig: article 3 | language: es

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Spanish.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Spanish 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Spanish.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Spanish} 3 | \input{mmd6-article-begin} 4 | 5 | `foo' 6 | 7 | «foo» 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Spanish.text: -------------------------------------------------------------------------------- 1 | title: Spanish 2 | latexconfig: article 3 | language: es 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SpecialCharacters.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Special Characters 6 | 7 | 8 | 9 |

{foo}

10 | 11 |

[foo]

12 | 13 |

{{foo}}

14 | 15 |

[[foo]]

16 | 17 |

(foo)

18 | 19 |

5

20 | 21 |

|foo|

22 | 23 |

\foo

24 | 25 | 26 | 27 |

%

28 | 29 |

%

30 | 31 |

10

32 | 33 |

& % # _ { } ~ ^ \

34 | 35 |

&

36 | 37 |

%

38 | 39 |

#

40 | 41 |

_

42 | 43 |

15

44 | 45 |

{

46 | 47 |

}

48 | 49 |

~

50 | 51 |

^

52 | 53 |

\\

54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SpecialCharacters.htmlc: -------------------------------------------------------------------------------- 1 |

title: Special Characters 2 | latexconfig: article

3 | 4 |

{foo}

5 | 6 |

[foo]

7 | 8 |

{{foo}}

9 | 10 |

[[foo]]

11 | 12 |

(foo)

13 | 14 |

5

15 | 16 |

|foo|

17 | 18 |

\foo

19 | 20 | 21 | 22 |

%

23 | 24 |

%

25 | 26 |

10

27 | 28 |

& % # _ { } ~ ^ \

29 | 30 |

&

31 | 32 |

%

33 | 34 |

#

35 | 36 |

_

37 | 38 |

15

39 | 40 |

{

41 | 42 |

}

43 | 44 |

~

45 | 46 |

^

47 | 48 |

\\

49 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SpecialCharacters.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Special Characters 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SpecialCharacters.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Special Characters} 3 | \input{mmd6-article-begin} 4 | 5 | \{foo\} 6 | 7 | {[foo]} 8 | 9 | \{\{foo\}\} 10 | 11 | {[{[foo]}]} 12 | 13 | (foo) 14 | 15 | 5 16 | 17 | \textbar{}foo\textbar{} 18 | 19 | \textbackslash{}foo 20 | 21 | \% 22 | 23 | \texttt{\%} 24 | 25 | 10 26 | 27 | \& \% \# \_ \{ \} \ensuremath{\sim} \^{} \textbackslash{} 28 | 29 | \texttt{\&} 30 | 31 | \texttt{\%} 32 | 33 | \texttt{\#} 34 | 35 | \texttt{\_} 36 | 37 | 15 38 | 39 | \texttt{\{} 40 | 41 | \texttt{\}} 42 | 43 | \texttt{\ensuremath{\sim}} 44 | 45 | \texttt{\^{}} 46 | 47 | \texttt{\textbackslash{}\textbackslash{}} 48 | 49 | \input{mmd6-article-footer} 50 | \end{document} 51 | -------------------------------------------------------------------------------- /tests/MMD6Tests/SpecialCharacters.text: -------------------------------------------------------------------------------- 1 | title: Special Characters 2 | latexconfig: article 3 | 4 | {foo} 5 | 6 | [foo] 7 | 8 | {{foo}} 9 | 10 | [[foo]] 11 | 12 | (foo) 13 | 14 | 5 15 | 16 | |foo| 17 | 18 | \foo\ 19 | 20 | 21 | 22 | % 23 | 24 | `%` 25 | 26 | 10 27 | 28 | & % # _ { } ~ ^ \\ 29 | 30 | `&` 31 | 32 | `%` 33 | 34 | `#` 35 | 36 | `_` 37 | 38 | 15 39 | 40 | `{` 41 | 42 | `}` 43 | 44 | `~` 45 | 46 | `^` 47 | 48 | `\\` 49 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Superscript.htmlc: -------------------------------------------------------------------------------- 1 |

title: Superscript 2 | latexconfig: article

3 | 4 |

x^2.

5 | 6 |

x^2xz.

7 | 8 |

x^2.^

9 | 10 |

x^2 3^

11 | 12 |

x^2 3^2

13 | 14 |

5

15 | 16 |

x~z.

17 | 18 |

x~xyz.

19 | 20 |

z~z.~

21 | 22 |

~/Library/MultiMarkdown

23 | 24 |

^test

25 | 26 |

10

27 | 28 |

x^y

29 | 30 |

x~y

31 | 32 |

x~2 3~

33 | 34 |

x~2 3~2

35 | 36 |

H~2~O

37 | 38 |

15

39 | 40 |

CH~3~CH~2~CH~2~CH~3~

41 | 42 |

CH~3~CH~2~CH~2~CH~3

43 | 44 |

\pi^2

45 | 46 |

\pi^2^

47 | 48 |

CH~4

49 | 50 |

20

51 | 52 |

CH~4~

53 | 54 |

^238^U

55 | 56 |

Ca^2+^

57 | 58 |

~t~p~x~

59 | 60 |

^23^Na^1+^

61 | 62 |

25

63 | 64 |

Na^1+

65 | 66 |

Na^1+^

67 | 68 |

Na^+

69 | 70 |

Na^+^

71 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Superscript.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Superscript 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Superscript.text: -------------------------------------------------------------------------------- 1 | title: Superscript 2 | latexconfig: article 3 | 4 | x^2. 5 | 6 | x^2xz. 7 | 8 | x^2.^ 9 | 10 | x^2 3^ 11 | 12 | x^2 3^2 13 | 14 | 5 15 | 16 | x~z. 17 | 18 | x~xyz. 19 | 20 | z~z.~ 21 | 22 | ~/Library/MultiMarkdown 23 | 24 | ^test 25 | 26 | 10 27 | 28 | x\^y 29 | 30 | x\~y 31 | 32 | x~2 3~ 33 | 34 | x~2 3~2 35 | 36 | H~2~O 37 | 38 | 15 39 | 40 | CH~3~CH~2~CH~2~CH~3~ 41 | 42 | CH~3~CH~2~CH~2~CH~3 43 | 44 | `\pi^2` 45 | 46 | `\pi^2^` 47 | 48 | `CH~4` 49 | 50 | 20 51 | 52 | `CH~4~` 53 | 54 | ^238^U 55 | 56 | Ca^2+^ 57 | 58 | ~t~p~x~ 59 | 60 | ^23^Na^1+^ 61 | 62 | 25 63 | 64 | Na^1+ 65 | 66 | Na^1+^ 67 | 68 | Na^+ 69 | 70 | Na^+^ 71 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Swedish.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Swedish 6 | 7 | 8 | 9 |

’foo’

10 | 11 |

”foo”

12 | 13 |

foo’s

14 | 15 |

foo — bar

16 | 17 |

foo – bar

18 | 19 |

5

20 | 21 |

foo…

22 | 23 |

1

24 | 25 |

(1)

26 | 27 |
28 |
29 |
    30 | 31 |
  1. 32 |

    foo  ↩︎

    33 |
  2. 34 | 35 |
36 |
37 | 38 |
39 |
40 |
    41 | 42 |
  1. 43 |

    foo  ↩︎

    44 |
  2. 45 | 46 |
47 |
48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Swedish.htmlc: -------------------------------------------------------------------------------- 1 |

title: Swedish 2 | latexconfig: article 3 | language: sv

4 | 5 |

'foo'

6 | 7 |

"foo"

8 | 9 |

foo's

10 | 11 |

foo --- bar

12 | 13 |

foo -- bar

14 | 15 |

5

16 | 17 |

foo...

18 | 19 |

[^foo]

20 | 21 |

#bar

22 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Swedish.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Swedish 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Swedish.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Swedish} 3 | \input{mmd6-article-begin} 4 | 5 | 'foo' 6 | 7 | ''foo'' 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo{\ldots} 18 | 19 | \footnote{foo} 20 | 21 | ~\citep{bar} 22 | 23 | \begin{thebibliography}{0} 24 | 25 | \bibitem{bar} 26 | foo 27 | \end{thebibliography} 28 | 29 | \input{mmd6-article-footer} 30 | \end{document} 31 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Swedish.text: -------------------------------------------------------------------------------- 1 | title: Swedish 2 | latexconfig: article 3 | language: sv 4 | 5 | 'foo' 6 | 7 | "foo" 8 | 9 | foo's 10 | 11 | foo --- bar 12 | 13 | foo -- bar 14 | 15 | 5 16 | 17 | foo... 18 | 19 | [^foo] 20 | 21 | [#bar] 22 | 23 | [#bar]: foo 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/TableofContents.htmlc: -------------------------------------------------------------------------------- 1 |

title: Table of Contents 2 | latexconfig: article

3 | 4 |

{{TOC}}

5 | 6 |

{{TOC:2}}

7 | 8 |

{{TOC:2-3}}

9 | 10 |

foo {{TOC}}

11 | 12 |

foo {{TOC:2}}

13 | 14 |

foo {{TOC:2-3}}

15 | 16 |
{{TOC}}
17 | 
18 | {{TOC:2}}
19 | 
20 | {{TOC:2-3}}
21 | 
22 | 23 |

Second Level

24 | 25 |

{{TOC}}

26 | 27 |

First Level

28 | 29 |

Second Level b

30 | 31 |

Third Level

32 | 33 |

Second Level c

34 | 35 |

First Level b

36 | 37 |

Third Level b

38 | 39 |

Second level d

40 | 41 |

Third level d

42 | 43 |

Fourth level d

44 | 45 |

{{TOC}}

46 | 47 |

First level [First Level e]

48 | 49 |

Second level [Second Level e]

50 | -------------------------------------------------------------------------------- /tests/MMD6Tests/TableofContents.text: -------------------------------------------------------------------------------- 1 | title: Table of Contents 2 | latexconfig: article 3 | 4 | {{TOC}} 5 | 6 | {{TOC:2}} 7 | 8 | {{TOC:2-3}} 9 | 10 | 11 | foo {{TOC}} 12 | 13 | foo {{TOC:2}} 14 | 15 | foo {{TOC:2-3}} 16 | 17 | 18 | {{TOC}} 19 | 20 | {{TOC:2}} 21 | 22 | {{TOC:2-3}} 23 | 24 | 25 | 26 | ## Second Level ## 27 | 28 | {{TOC}} 29 | 30 | # First Level # 31 | 32 | ## Second Level b ## 33 | 34 | ### Third Level ### 35 | 36 | ## Second Level c ## 37 | 38 | # First Level b # 39 | 40 | ### Third Level b ### 41 | 42 | ## Second level d ## 43 | 44 | ### Third level d ## 45 | 46 | #### Fourth level d #### 47 | 48 | {{TOC}} 49 | 50 | # First level [First Level e] # 51 | 52 | ## Second level [Second Level e] ## 53 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Transclusion.htmlc: -------------------------------------------------------------------------------- 1 |

title: Transclusion 2 | latexconfig: article 3 | transclude base: .

4 | 5 |

{{foo.txt}}

6 | 7 |

{{bar.txt}}

8 | 9 |

{{transclusion/bat.*}}

10 | 11 |

{{transclusion/baz.txt}}

12 | 13 |

{{transclusion/baz2.txt}}

14 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Transclusion.text: -------------------------------------------------------------------------------- 1 | title: Transclusion 2 | latexconfig: article 3 | transclude base: . 4 | 5 | {{foo.txt}} 6 | 7 | {{bar.txt}} 8 | 9 | {{transclusion/bat.*}} 10 | 11 | {{transclusion/baz.txt}} 12 | 13 | {{transclusion/baz2.txt}} -------------------------------------------------------------------------------- /tests/MMD6Tests/Variables.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Variables 6 | 7 | 8 | 9 | 10 | 11 |

foo: bar

12 | 13 |

bar foo bar foo bar

14 | 15 |

[%bar]

16 | 17 |

**foo**

18 | 19 |

article

20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Variables.htmlc: -------------------------------------------------------------------------------- 1 |

title: Variables 2 | latexconfig: article 3 | foo: bar 4 | foo bar 5 | foo bar 6 | bat: foo

7 | 8 |

foo: bar

9 | 10 |

[%foo]

11 | 12 |

[%bar]

13 | 14 |

[%bat]

15 | 16 |

[%latex config]

17 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Variables.opml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Variables 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Variables.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-article-leader} 2 | \def\mytitle{Variables} 3 | \def\foo{bar foo bar foo bar} 4 | \def\bat{**foo**} 5 | \input{mmd6-article-begin} 6 | 7 | foo: bar 8 | 9 | bar foo bar foo bar 10 | 11 | {[%bar]} 12 | 13 | **foo** 14 | 15 | article 16 | 17 | \input{mmd6-article-footer} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /tests/MMD6Tests/Variables.text: -------------------------------------------------------------------------------- 1 | title: Variables 2 | latexconfig: article 3 | foo: bar 4 | foo bar 5 | foo bar 6 | bat: **foo** 7 | 8 | foo: bar 9 | 10 | [%foo] 11 | 12 | [%bar] 13 | 14 | [%bat] 15 | 16 | [%latex config] 17 | -------------------------------------------------------------------------------- /tests/MMD6Tests/bar.txt: -------------------------------------------------------------------------------- 1 | Title: bar 2 | transclude base: transclusion 3 | 4 | This text is included in `bar.txt`. 5 | 6 | This can be transcluded without causing an infinite loop -- {{../foo.txt}} 7 | 8 | ``` 9 | {{nometa.txt}} 10 | ``` 11 | 12 | ``` 13 | {{nometa-bom8.txt}} 14 | ``` 15 | -------------------------------------------------------------------------------- /tests/MMD6Tests/foo.txt: -------------------------------------------------------------------------------- 1 | Title: foo 2 | 3 | This text is included in `foo.txt`. 4 | 5 | This should not be transcluded to avoid an infinite loop -- {{foo.txt}} 6 | -------------------------------------------------------------------------------- /tests/MMD6Tests/footer.txt: -------------------------------------------------------------------------------- 1 | MultiMarkdown *footer*. -------------------------------------------------------------------------------- /tests/MMD6Tests/header.txt: -------------------------------------------------------------------------------- 1 | MultiMarkdown *header*. 2 | -------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/bar.txt: -------------------------------------------------------------------------------- 1 | --- 2 | Title: bar 3 | --- 4 | 5 | This text is included in `transclusion\bar.txt`. 6 | 7 | foo can no longer be found -- {{foo.txt}} 8 | -------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/bat.html: -------------------------------------------------------------------------------- 1 |

This is HTML.

-------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/baz.txt: -------------------------------------------------------------------------------- 1 | Title: baz 2 | 3 | This text is included in `transclusion/baz.txt`. 4 | 5 | This should pull in `bar.txt`, *if* run from the parent directory, since it 6 | does *not* override the `transclude base` metadata. 7 | 8 | {{bar.txt}} 9 | -------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/baz2.txt: -------------------------------------------------------------------------------- 1 | Title: baz 2 | transclude base: . 3 | 4 | This text is included in `transclusion/baz2.txt`. 5 | 6 | This should pull in `transclusion/bar.txt`, *even if* run from the parent 7 | directory, since it overrides the `transclude base` metadata. 8 | 9 | {{bar.txt}} 10 | -------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/nometa-bom8.txt: -------------------------------------------------------------------------------- 1 | This is a file with no metadata. -------------------------------------------------------------------------------- /tests/MMD6Tests/transclusion/nometa.txt: -------------------------------------------------------------------------------- 1 | This is a file with no metadata. -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/README.md: -------------------------------------------------------------------------------- 1 | Title: LaTeX Support Files 2 | Author: Fletcher T. Penney 3 | Date: 2017-03-27 4 | 5 | 6 | ## Introduction ## 7 | 8 | This folder includes the LaTeX support files for MMD. They have been renamed 9 | for MMD v6. 10 | 11 | The files are organized into directories using a naming convention compatible 12 | with the MMD 6 `LaTeX Config` metadata key: 13 | 14 | TItle: Some Title 15 | LaTeX Config: article 16 | 17 | Each configuration would have three files, named: 18 | 19 | 1. mmd6-foo-leader.tex 20 | 2. mmd6-foo-begin.tex 21 | 3. mmd6-foo-footer.tex 22 | 23 | (where `foo` is the name of the configuration) 24 | 25 | Each of these files can reference other files, and the common configuration 26 | files used in the default setups are stored in the `shared` directory. 27 | 28 | 29 | ## Installation ## 30 | 31 | These files need to go in your `texmf` folder, wherever that may be. 32 | 33 | With MacTeX on Mac OS X: 34 | 35 | ~/Library/texmf/tex/latex/mmd 36 | 37 | On most *nix accounts, you can use: 38 | 39 | ~/texmf/tex/latex/mmd 40 | 41 | I don't remember off the top of my head where your texmf folder belongs in 42 | Windows. 43 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/article/mmd6-article-begin.tex: -------------------------------------------------------------------------------- 1 | % 2 | % For setup that must follow metadata included in the document 3 | % 4 | 5 | \usepackage[ 6 | plainpages=false, 7 | pdfpagelabels, 8 | pdftitle={\mytitle}, 9 | pagebackref, 10 | pdfauthor={\myauthor}, 11 | pdfkeywords={\mykeywords} 12 | ]{hyperref} 13 | \usepackage{memhfixc} 14 | 15 | 16 | \input{mmd6-title} 17 | 18 | 19 | \begin{document} 20 | 21 | \VerbatimFootnotes 22 | 23 | \title{\latextitle} 24 | \author{\myauthor} 25 | 26 | \ifx\mydate\undefined 27 | \else 28 | \date{\mydate} 29 | \fi 30 | 31 | \mainmatter 32 | \maketitle 33 | 34 | 35 | % Copyright 36 | \setlength{\parindent}{0pt} 37 | 38 | \ifx\mycopyright\undefined 39 | \else 40 | \textcopyright{} \mycopyright 41 | \fi 42 | 43 | \setlength{\parindent}{1em} 44 | 45 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/article/mmd6-article-footer.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure LaTeX to produce an article using the memoir class 3 | % 4 | 5 | \input{mmd6-memoir-footer} 6 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/article/mmd6-article-leader.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure LaTeX to produce an article using the memoir class 3 | % 4 | 5 | \documentclass[oneside,article]{memoir} 6 | 7 | \input{mmd6-memoir-setup} 8 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/Portfolio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/texmf/tex/latex/mmd6/beamer/Portfolio.png -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/Vintage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fletcher/MultiMarkdown-6/8b81672c2355c41296773ece36077558b3fe7adf/texmf/tex/latex/mmd6/beamer/Vintage.png -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/beamerthemekeynote-portfolio.sty: -------------------------------------------------------------------------------- 1 | % By Ed Long 2 | % http://www.ucl.ac.uk/~ucbpeal/latexposter.html 3 | 4 | \usetheme{default} 5 | \usepackage{mathpazo} 6 | \setbeamertemplate{background canvas}{\includegraphics 7 | [width=\paperwidth]{Portfolio.png}} 8 | \setbeamercolor{structure}{fg=white} 9 | \setbeamerfont{structure}{family = \rmfamily} 10 | \setbeamerfont{title}{size = \Huge} 11 | \usefonttheme{structuresmallcapsserif} 12 | \usefonttheme{serif} 13 | \setbeamercolor{normal text}{fg=white} 14 | 15 | \setbeamertemplate{navigation symbols}{} % no nav symbols 16 | \setbeamercolor{titlelike}{parent=structure,fg=white} % no box on titlepage 17 | \setbeamertemplate{footline}[page number]{} % remove bottom bars 18 | \setbeamertemplate{headline}{} % remove top bars -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/beamerthemekeynote-vintage.sty: -------------------------------------------------------------------------------- 1 | % By Ed Long 2 | % http://www.ucl.ac.uk/~ucbpeal/latexposter.html 3 | 4 | \usetheme{default} 5 | %\usepackage{texnansi} 6 | %\usepackage{gtamacdidot} 7 | 8 | \definecolor{textcolour}{rgb}{0.37,0.34,0.27} 9 | 10 | \setbeamertemplate{background canvas}{\includegraphics 11 | [width=\paperwidth]{Vintage.png}} 12 | \setbeamercolor{structure}{fg=textcolour} 13 | \setbeamertemplate{items}[circle] 14 | \setbeamerfont{structure}{family = \rmfamily} 15 | 16 | \setbeamertemplate{frametitle} 17 | { 18 | \begin{centering} 19 | \vspace{0.3cm} 20 | \huge 21 | \insertframetitle 22 | \par 23 | \end{centering} 24 | } 25 | 26 | \setbeamerfont{title}{size = \Huge} 27 | \usefonttheme{structuresmallcapsserif} 28 | \usefonttheme{serif} 29 | \setbeamercolor{normal text}{fg=textcolour} 30 | 31 | \setbeamertemplate{navigation symbols}{} % no nav symbols 32 | \setbeamercolor{titlelike}{parent=structure,fg=textcolour} % no box on titlepage 33 | \setbeamertemplate{footline}[page number]{} % remove bottom bars 34 | \setbeamertemplate{headline}{} % remove top bars -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/mmd6-beamer-begin.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Get ready for the actual document 3 | % 4 | 5 | % 6 | % Use default MMD metadata for beamer equivalents 7 | % 8 | 9 | \ifx\subtitle\undefined 10 | \else 11 | \oldSubtitle{\subtitle} 12 | \fi 13 | 14 | \ifx\affiliation\undefined 15 | \else 16 | \institute{\affiliation} 17 | \fi 18 | 19 | \ifx\mydate\undefined 20 | \def\mydate{\today} 21 | \else 22 | \date{\mydate} 23 | \fi 24 | 25 | \ifx\event\undefined 26 | \else 27 | \date[\mydate]{\mydate~ / \event } 28 | \fi 29 | 30 | 31 | %\input{mmd6-title} 32 | 33 | % Show "current/total" slide counter in footer 34 | \title[\mytitle\hspace{2em}\insertframenumber/ 35 | \inserttotalframenumber]{\mytitle} 36 | 37 | 38 | \author{\myauthor} 39 | \addtolength{\parskip}{\baselineskip} 40 | 41 | \ifx\theme\undefined 42 | \else 43 | \usetheme{\theme} 44 | \fi 45 | 46 | \begin{document} 47 | \frame{\setlength\parskip{0pt}\titlepage} 48 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/beamer/mmd6-beamer-footer.tex: -------------------------------------------------------------------------------- 1 | % 2 | % MultiMarkdown beamer class footer file 3 | % 4 | 5 | % Back Matter 6 | \if@mainmatter 7 | \backmatter 8 | \fi 9 | 10 | \ifx\bibliocommand\undefined 11 | \else 12 | \part{Bibliography} 13 | \begin{frame}[allowframebreaks] 14 | \frametitle{Bibliography} 15 | \bibliographystyle{\bibliostyle} 16 | \def\newblock{} 17 | \bibliocommand 18 | \end{frame} 19 | \fi 20 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-footer.tex: -------------------------------------------------------------------------------- 1 | % 2 | % MultiMarkdown memoir class footer file 3 | % 4 | 5 | \signature 6 | 7 | \input{mmd6-memoir-footer} -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-leader.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure LaTeX to produce a PDF letter using the memoir class 3 | % 4 | \documentclass[oneside,article]{memoir} 5 | 6 | % Default logo settings to avoid errors 7 | \def\logoheight{1.7in} 8 | \def\coverlogo{} 9 | 10 | 11 | \usepackage{xcolor} % Allow for color (annotations) 12 | 13 | \definecolor{accent}{HTML}{000000} 14 | \definecolor{returnaddress}{HTML}{000000} 15 | \def\usexelatex{true} 16 | 17 | \input{mmd6-memoir-setup} 18 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/manuscript/mmd6-manuscript-footer.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-memoir-footer} 2 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/manuscript/mmd6-manuscript-leader.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure LaTeX to produce an article using the memoir class 3 | % 4 | 5 | \documentclass[10pt,oneside]{memoir} 6 | \usepackage{layouts}[2001/04/29] 7 | \usepackage{manuscript} 8 | 9 | % Use default packages for memoir setup 10 | \input{mmd6-manuscript-packages} 11 | \usepackage{glossaries} 12 | 13 | 14 | % Configure default metadata to avoid errors 15 | \input{mmd6-default-metadata} 16 | 17 | \def\agent{} 18 | \def\address{} 19 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/memoir-book/mmd6-memoir-book-begin.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Get ready for the actual document 3 | % 4 | 5 | \usepackage[ 6 | plainpages=false, 7 | pdfpagelabels, 8 | pdftitle={\mytitle}, 9 | pagebackref, 10 | pdfauthor={\myauthor}, 11 | pdfkeywords={\mykeywords} 12 | ]{hyperref} 13 | \usepackage{memhfixc} 14 | 15 | 16 | \input{mmd6-title} 17 | \title{\mytitle} 18 | \author{\myauthor} 19 | 20 | \ifx\mydate\undefined 21 | \else 22 | \date{\mydate} 23 | \fi 24 | 25 | 26 | \ifx\theme\undefined 27 | \else 28 | \usetheme{\theme} 29 | \fi 30 | 31 | \begin{document} 32 | 33 | \VerbatimFootnotes 34 | 35 | 36 | \chapterstyle{\mychapterstyle} 37 | \pagestyle{\mypagestyle} 38 | 39 | % Frontmatter 40 | \frontmatter 41 | 42 | % Title Page 43 | \maketitle 44 | \clearpage 45 | 46 | \input{mmd6-memoir-copyright} 47 | 48 | \tableofcontents 49 | %\listoffigures 50 | %\listoftables 51 | 52 | 53 | \mainmatter 54 | 55 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/memoir-book/mmd6-memoir-book-footer.tex: -------------------------------------------------------------------------------- 1 | % 2 | % MultiMarkdown default footer file 3 | % 4 | 5 | 6 | % Back Matter 7 | \if@mainmatter 8 | we're in main 9 | \backmatter 10 | \fi 11 | 12 | 13 | % Bibliography 14 | 15 | \ifx\bibliocommand\undefined 16 | \else 17 | \bibliographystyle{\bibliostyle} 18 | \bibliocommand 19 | \fi 20 | 21 | 22 | 23 | % Glossary 24 | \printglossaries 25 | 26 | 27 | % Index 28 | \printindex 29 | 30 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/memoir-book/mmd6-memoir-book-leader.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure LaTeX to produce a PDF "book" using the memoir class 3 | % 4 | 5 | \documentclass[10pt,oneside]{memoir} 6 | 7 | \input{mmd6-memoir-setup} 8 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-criticmarkup.tex: -------------------------------------------------------------------------------- 1 | % CriticMarkup Support 2 | \usepackage{soul} 3 | \usepackage{xargs} 4 | \usepackage{todonotes} 5 | \newcommandx{\cmnote}[2][1=]{\linespread{1.0}\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}} 6 | 7 | % Use \ul instead of \underline since we are using soul 8 | \let\underline\ul 9 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-default-metadata.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Configure default metadata in case it's missing to avoid errors 3 | % 4 | 5 | \def\myauthor{Author} 6 | \def\defaultemail{} 7 | \def\defaultposition{} 8 | \def\defaultdepartment{} 9 | \def\defaultaddress{} 10 | \def\defaultphone{} 11 | \def\defaultfax{} 12 | \def\defaultweb{} 13 | \def\defaultaffiliation{} 14 | 15 | \def\mytitle{Title} 16 | \def\subtitle{} 17 | \def\mykeywords{} 18 | 19 | 20 | \def\bibliostyle{plain} 21 | % \def\bibliocommand{} 22 | 23 | \def\myrecipient{} 24 | 25 | % Overwrite with your own if desired 26 | %\input{ftp-metadata} 27 | 28 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-manuscript-packages.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Default packages for memoir documents created by MultiMarkdown 3 | % 4 | 5 | \usepackage{fancyvrb} % Allow \verbatim et al. in footnotes 6 | \usepackage{graphicx} % To enable including graphics in pdf's 7 | \usepackage{booktabs} % Better tables 8 | \usepackage{tabulary} % Support longer table cells 9 | \usepackage{xcolor} % Allow for color (annotations) 10 | \usepackage{listings} % Allow for source code highlighting 11 | \usepackage[sort&compress]{natbib} % Better bibliography support 12 | \usepackage[normalem]{ulem} % Support strikethrough 13 | 14 | \input{mmd6-criticmarkup} 15 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-memoir-copyright.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Copyright Page 3 | % 4 | 5 | \vspace*{\fill} 6 | \setlength{\parindent}{0pt} 7 | 8 | \ifx\mycopyright\undefined 9 | \else 10 | \textcopyright{} \mycopyright 11 | \fi 12 | 13 | \begin{center} 14 | \framebox{ \parbox[t]{1.5in}{\centering Formatted for \LaTeX \\ 15 | by MultiMarkdown 6}} 16 | \end{center} 17 | 18 | \setlength{\parindent}{1em} 19 | \clearpage -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-memoir-footer.tex: -------------------------------------------------------------------------------- 1 | % 2 | % MultiMarkdown default footer file 3 | % 4 | 5 | 6 | % Back Matter 7 | \if@mainmatter 8 | we're in main 9 | \backmatter 10 | \fi 11 | 12 | 13 | % Bibliography 14 | 15 | \ifx\bibliocommand\undefined 16 | \else 17 | \bibliographystyle{\bibliostyle} 18 | \bibliocommand 19 | \fi 20 | 21 | 22 | 23 | % Glossary 24 | \printglossaries 25 | 26 | 27 | % Index 28 | \printindex 29 | 30 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-memoir-layout-8.5x11.tex: -------------------------------------------------------------------------------- 1 | % 2 | % 8.5 x 11 layout for memoir-based documents 3 | % 4 | 5 | 6 | %%% need more space for ToC page numbers 7 | \setpnumwidth{2.55em} 8 | \setrmarg{3.55em} 9 | 10 | %%% need more space for ToC section numbers 11 | \cftsetindents{part}{0em}{3em} 12 | \cftsetindents{chapter}{0em}{3em} 13 | \cftsetindents{section}{3em}{3em} 14 | \cftsetindents{subsection}{4.5em}{3.9em} 15 | \cftsetindents{subsubsection}{8.4em}{4.8em} 16 | \cftsetindents{paragraph}{10.7em}{5.7em} 17 | \cftsetindents{subparagraph}{12.7em}{6.7em} 18 | 19 | %%% need more space for LoF numbers 20 | \cftsetindents{figure}{0em}{3.0em} 21 | 22 | %%% and do the same for the LoT 23 | \cftsetindents{table}{0em}{3.0em} 24 | 25 | %%% set up the page layout 26 | \settrimmedsize{\stockheight}{\stockwidth}{*} % Use entire page 27 | \settrims{0pt}{0pt} 28 | 29 | \setlrmarginsandblock{1.5in}{1.5in}{*} 30 | \setulmarginsandblock{1.5in}{1.5in}{*} 31 | 32 | \setmarginnotes{17pt}{51pt}{\onelineskip} 33 | \setheadfoot{\onelineskip}{2\onelineskip} 34 | \setheaderspaces{*}{2\onelineskip}{*} 35 | \checkandfixthelayout -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-memoir-packages.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Default packages for memoir documents created by MultiMarkdown 3 | % 4 | 5 | \usepackage{fancyvrb} % Allow \verbatim et al. in footnotes 6 | \usepackage{graphicx} % To enable including graphics in pdf's 7 | \usepackage{booktabs} % Better tables 8 | \usepackage{tabulary} % Support longer table cells 9 | \usepackage[T1]{fontenc} % Use T1 font encoding for accented characters 10 | \usepackage[utf8]{inputenc} % For UTF-8 support 11 | \usepackage{xcolor} % Allow for color (annotations) 12 | \usepackage{listings} % Allow for source code highlighting 13 | \usepackage[sort&compress]{natbib} % Better bibliography support 14 | \usepackage[normalem]{ulem} % Support strikethrough 15 | 16 | \input{mmd6-criticmarkup} 17 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-memoir-setup.tex: -------------------------------------------------------------------------------- 1 | % 2 | % Generic Configuration for memoir-based documents 3 | % 4 | 5 | \usepackage{layouts}[2001/04/29] 6 | 7 | 8 | % In case we need a glossary, or index 9 | \usepackage[acronym]{glossaries} 10 | \glstoctrue 11 | \makeglossaries 12 | \makeindex 13 | 14 | 15 | % Basic page layout configuration 16 | \def\mychapterstyle{default} 17 | \def\mypagestyle{headings} 18 | 19 | 20 | % Use 8.5 x 11 inch page layout 21 | \input{mmd6-memoir-layout-8.5x11} 22 | 23 | 24 | % Use default packages for memoir setup 25 | \input{mmd6-memoir-packages} 26 | 27 | 28 | % Configure default metadata to avoid errors 29 | \input{mmd6-default-metadata} 30 | 31 | 32 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/shared/mmd6-tufte-footer.tex: -------------------------------------------------------------------------------- 1 | 2 | 3 | % Back Matter 4 | \if@mainmatter 5 | we're in main 6 | \backmatter 7 | \else 8 | \newpage 9 | \fi 10 | 11 | 12 | 13 | % Bibliography 14 | 15 | \ifx\bibliocommand\undefined 16 | \else 17 | \bibliographystyle{\bibliostyle} 18 | \bibliocommand 19 | \fi 20 | 21 | 22 | % Glossary 23 | \renewcommand*{\acronymname}{Abbreviations} 24 | \printglossaries 25 | 26 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-begin.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-title} 2 | 3 | \title{\latextitle} 4 | \author{\myauthor} 5 | 6 | \ifx\mydate\undefined 7 | \else 8 | \date{\mydate} 9 | \fi 10 | 11 | \begin{document} 12 | \maketitle 13 | 14 | \tableofcontents 15 | %\listoffigures 16 | %\listoftables 17 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-footer.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-tufte-footer} 2 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-begin.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-title} 2 | 3 | \title{\latextitle} 4 | \author{\myauthor} 5 | 6 | \ifx\mydate\undefined 7 | \else 8 | \date{\mydate} 9 | \fi 10 | 11 | \begin{document} 12 | \maketitle 13 | 14 | -------------------------------------------------------------------------------- /texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-footer.tex: -------------------------------------------------------------------------------- 1 | \input{mmd6-tufte-footer} 2 | -------------------------------------------------------------------------------- /tools/Toolchain-MinGW-w64-32bit.cmake: -------------------------------------------------------------------------------- 1 | # Settings for compiling for Windows 32-bit machines using MinGW-w64 2 | 3 | set (IS_CROSSCOMPILING "YES") 4 | set (IS_32_BIT "32-") 5 | 6 | set (CMAKE_SYSTEM_NAME Windows) 7 | 8 | set (CMAKE_C_COMPILER i686-w64-mingw32-gcc) 9 | set (CMAKE_CXX_COMPILER i686-w64-mingw32-g++) 10 | set (CMAKE_RC_COMPILER i686-w64-mingw32-windres) 11 | 12 | set (CMAKE_FIND_ROOT_PATH /usr/bin) 13 | -------------------------------------------------------------------------------- /tools/Toolchain-MinGW-w64-64bit.cmake: -------------------------------------------------------------------------------- 1 | # Settings for compiling for Windows 64-bit machines using MinGW-w64 2 | 3 | set (IS_CROSSCOMPILING "YES") 4 | 5 | set (CMAKE_SYSTEM_NAME Windows) 6 | 7 | set (CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) 8 | set (CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) 9 | set (CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) 10 | 11 | set (CMAKE_FIND_ROOT_PATH /usr/bin) 12 | -------------------------------------------------------------------------------- /tools/Toolchain-mingw32.cmake: -------------------------------------------------------------------------------- 1 | # Settings for compiling for Windows 32-bit machines 2 | 3 | set (IS_CROSSCOMPILING "YES") 4 | set (IS_32_BIT "32-") 5 | 6 | set (CMAKE_SYSTEM_NAME Windows) 7 | 8 | set (CMAKE_C_COMPILER i586-mingw32msvc-gcc) 9 | set (CMAKE_CXX_COMPILER i586-mingw32msvc-g++) 10 | set (CMAKE_RC_COMPILER i586-mingw32msvc-windres) 11 | 12 | set (CMAKE_FIND_ROOT_PATH /usr/bin) 13 | -------------------------------------------------------------------------------- /update_git_modules: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This command can be run any time to ensure that all submodules are on 4 | # the most recent commit for the configured branch, as set up 5 | # in the `link_git_modules` script. 6 | 7 | git submodule foreach git pull origin 8 | --------------------------------------------------------------------------------