From 404e90e73ebdb6ecca01ae0b18e684a5f8fe83b3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 23 Mar 2020 03:02:41 +0000 Subject: CTAN sync 202003230302 --- macros/generic/markdown/LICENSE | 42 - macros/generic/markdown/Makefile | 130 -- macros/generic/markdown/README.md | 70 +- macros/generic/markdown/docstrip.cfg | 4 +- macros/generic/markdown/examples/README.md | 7 - macros/generic/markdown/examples/context-mkii.pdf | Bin 237090 -> 0 bytes macros/generic/markdown/examples/context-mkiv.pdf | Bin 67910 -> 0 bytes macros/generic/markdown/examples/example.md | 2 +- macros/generic/markdown/examples/latex-luatex.pdf | Bin 63088 -> 0 bytes macros/generic/markdown/examples/latex-pdftex.pdf | Bin 265094 -> 0 bytes macros/generic/markdown/examples/latex-xetex.pdf | Bin 60564 -> 0 bytes macros/generic/markdown/latexmkrc | 4 - macros/generic/markdown/markdown.dtx | 47 +- macros/generic/markdown/markdown.html | 2292 ++++++++++---------- macros/generic/markdown/markdown.md | 5 +- macros/generic/markdown/markdown.pdf | Bin 429871 -> 431227 bytes macros/generic/markdown/tests/README.md | 17 - macros/generic/markdown/tests/support/README.md | 4 - .../generic/markdown/tests/support/latex-setup.tex | 162 -- .../generic/markdown/tests/support/plain-setup.tex | 142 -- macros/generic/markdown/tests/support/setup.tex | 79 - macros/generic/markdown/tests/templates/README.md | 20 - .../markdown/tests/templates/context/COMMANDS.m4 | 2 - .../markdown/tests/templates/context/README.md | 2 - .../markdown/tests/templates/context/input.tex.m4 | 11 - .../tests/templates/context/verbatim.tex.m4 | 13 - .../markdown/tests/templates/latex/COMMANDS.m4 | 3 - .../markdown/tests/templates/latex/README.md | 1 - .../markdown/tests/templates/latex/input.tex.m4 | 14 - .../tests/templates/latex/verbatim-starred.tex.m4 | 17 - .../markdown/tests/templates/latex/verbatim.tex.m4 | 17 - .../markdown/tests/templates/plain/COMMANDS.m4 | 3 - .../markdown/tests/templates/plain/README.md | 1 - .../markdown/tests/templates/plain/input.tex.m4 | 10 - .../markdown/tests/templates/plain/verbatim.tex.m4 | 12 - macros/generic/markdown/tests/test.sh | 58 - .../tests/testfiles/CommonMark_0.26/README.md | 2 - .../testfiles/CommonMark_0.26/fenced-code.test | 315 --- .../tests/testfiles/Markdown_1.0.3/README.md | 2 - .../testfiles/Markdown_1.0.3/amps-encoding.test | 36 - .../tests/testfiles/Markdown_1.0.3/auto-links.test | 52 - .../Markdown_1.0.3/backslash-escapes.test | 192 -- .../blockquotes-with-code-blocks.test | 21 - .../testfiles/Markdown_1.0.3/code-blocks.test | 18 - .../tests/testfiles/Markdown_1.0.3/code-spans.test | 4 - ...rd-wrapped-paragraphs-with-list-like-lines.test | 12 - .../testfiles/Markdown_1.0.3/horizontal-rules.test | 132 -- .../Markdown_1.0.3/links-inline-style.test | 50 - .../Markdown_1.0.3/links-reference-style.test | 176 -- .../Markdown_1.0.3/links-shortcut-references.test | 42 - .../Markdown_1.0.3/literal-quotes-in-titles.test | 21 - .../markdown-documentation-basics.test | 436 ---- .../markdown-documentation-syntax.test | 1518 ------------- .../Markdown_1.0.3/nested-blockquotes.test | 14 - .../ordered-and-unordered-lists.test | 323 --- .../Markdown_1.0.3/strong-and-em-together.test | 17 - .../tests/testfiles/Markdown_1.0.3/tabs.test | 39 - .../tests/testfiles/PHP_Markdown/README.md | 2 - .../tests/testfiles/PHP_Markdown/auto-links.test | 16 - .../testfiles/PHP_Markdown/backslash-escapes.test | 19 - .../PHP_Markdown/code-block-in-a-list-item.test | 31 - .../PHP_Markdown/code-block-on-second-line.test | 6 - .../testfiles/PHP_Markdown/email-auto-links.test | 16 - .../tests/testfiles/PHP_Markdown/emphasis.test | 272 --- .../testfiles/PHP_Markdown/empty-list-item.test | 97 - .../tests/testfiles/PHP_Markdown/headers.test | 18 - .../testfiles/PHP_Markdown/horizontal-rules.test | 51 - .../testfiles/PHP_Markdown/links-inline-style.test | 9 - .../tests/testfiles/PHP_Markdown/md5-hashes.test | 22 - .../testfiles/PHP_Markdown/mixed-ols-and-uls.test | 47 - .../tests/testfiles/PHP_Markdown/nesting.test | 30 - .../testfiles/PHP_Markdown/parens-in-url.test | 52 - .../testfiles/PHP_Markdown/php-specific-bugs.test | 39 - .../PHP_Markdown/quotes-in-attributes.test | 29 - .../tests/testfiles/PHP_Markdown/tables.test | 327 --- .../tests/testfiles/PHP_Markdown/tight-blocks.test | 30 - macros/generic/markdown/tests/testfiles/README.md | 21 - .../tests/testfiles/lunamark-markdown/README.md | 2 - .../lunamark-markdown/blank-before-code-fence.test | 57 - .../lunamark-markdown/breakable-blockquotes.test | 19 - .../testfiles/lunamark-markdown/cache-dir.test | 12 - .../lunamark-markdown/citations-escapes.test | 73 - .../lunamark-markdown/citations-nbsps.test | 85 - .../lunamark-markdown/citations-no-nbsps.test | 85 - .../citations-trailing-punctuation.test | 115 - .../content-blocks-language-map.test | 16 - .../lunamark-markdown/content-blocks.test | 64 - .../lunamark-markdown/empty-code-spans.test | 24 - .../testfiles/lunamark-markdown/fenced-code.test | 27 - .../lunamark-markdown/header-attributes.test | 37 - .../tests/testfiles/lunamark-markdown/html.test | 53 - .../tests/testfiles/lunamark-markdown/hybrid.test | 43 - .../lunamark-markdown/inline-footnotes.test | 17 - .../no-blank-before-code-fence.test | 57 - .../no-breakable-blockquotes.test | 15 - .../testfiles/lunamark-markdown/no-citations.test | 31 - .../testfiles/lunamark-markdown/no-code-spans.test | 9 - .../lunamark-markdown/no-content-blocks.test | 32 - .../lunamark-markdown/no-fenced-code.test | 22 - .../lunamark-markdown/no-header-attributes.test | 35 - .../tests/testfiles/lunamark-markdown/no-html.test | 53 - .../testfiles/lunamark-markdown/no-hybrid.test | 65 - .../lunamark-markdown/no-inline-footnotes.test | 16 - .../lunamark-markdown/no-pipe-tables.test | 41 - .../lunamark-markdown/no-shift-headings.test | 35 - .../testfiles/lunamark-markdown/no-slice.test | 251 --- .../lunamark-markdown/no-start-number.test | 41 - .../lunamark-markdown/no-strip-percent-signs.test | 10 - .../lunamark-markdown/no-table-captions.test | 79 - .../lunamark-markdown/no-tight-lists.test | 19 - .../lunamark-markdown/no-underscores.test | 15 - .../shift-headings-backwards.test | 37 - .../lunamark-markdown/shift-headings-forward.test | 37 - .../lunamark-markdown/slice-conclusion.test | 155 -- .../lunamark-markdown/slice-existing-section.test | 182 -- .../slice-nonexisting-section.test | 141 -- .../testfiles/lunamark-markdown/slice-preface.test | 148 -- .../lunamark-markdown/slice-two-sections.test | 278 --- .../testfiles/lunamark-markdown/start-number.test | 39 - .../lunamark-markdown/table-captions.test | 76 - .../testfiles/lunamark-markdown/tight-lists.test | 18 - .../markdown/tests/testfiles/lunamark/README.md | 2 - .../testfiles/lunamark/backticks-in-links.test | 8 - .../lunamark/case-insensitive-references.test | 10 - .../testfiles/lunamark/consecutive-lists.test | 19 - .../tests/testfiles/lunamark/definition-lists.test | 200 -- .../tests/testfiles/lunamark/hash-enumerators.test | 11 - .../lunamark/indented-code-in-list-item.test | 16 - .../tests/testfiles/lunamark/list-spacing.test | 42 - .../tests/testfiles/lunamark/lists-and-hrules.test | 18 - .../markdown/tests/testfiles/lunamark/notes.test | 27 - .../lunamark/reference-defined-in-blockquote.test | 12 - .../lunamark/require-blank-before-blockquote.test | 5 - .../lunamark/require-blank-before-header.test | 6 - .../markdown/tests/testfiles/lunamark/smart.test | 7 - .../markdown/tests/testfiles/lunamark/unicode.test | 10 - 136 files changed, 1224 insertions(+), 9582 deletions(-) delete mode 100644 macros/generic/markdown/LICENSE delete mode 100644 macros/generic/markdown/Makefile delete mode 100644 macros/generic/markdown/examples/README.md delete mode 100644 macros/generic/markdown/examples/context-mkii.pdf delete mode 100644 macros/generic/markdown/examples/context-mkiv.pdf delete mode 100644 macros/generic/markdown/examples/latex-luatex.pdf delete mode 100644 macros/generic/markdown/examples/latex-pdftex.pdf delete mode 100644 macros/generic/markdown/examples/latex-xetex.pdf delete mode 100644 macros/generic/markdown/latexmkrc delete mode 100644 macros/generic/markdown/tests/README.md delete mode 100644 macros/generic/markdown/tests/support/README.md delete mode 100644 macros/generic/markdown/tests/support/latex-setup.tex delete mode 100644 macros/generic/markdown/tests/support/plain-setup.tex delete mode 100644 macros/generic/markdown/tests/support/setup.tex delete mode 100644 macros/generic/markdown/tests/templates/README.md delete mode 100644 macros/generic/markdown/tests/templates/context/COMMANDS.m4 delete mode 100644 macros/generic/markdown/tests/templates/context/README.md delete mode 100644 macros/generic/markdown/tests/templates/context/input.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/context/verbatim.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/latex/COMMANDS.m4 delete mode 100644 macros/generic/markdown/tests/templates/latex/README.md delete mode 100644 macros/generic/markdown/tests/templates/latex/input.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/plain/COMMANDS.m4 delete mode 100644 macros/generic/markdown/tests/templates/plain/README.md delete mode 100644 macros/generic/markdown/tests/templates/plain/input.tex.m4 delete mode 100644 macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 delete mode 100755 macros/generic/markdown/tests/test.sh delete mode 100644 macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test delete mode 100644 macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test delete mode 100644 macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test delete mode 100644 macros/generic/markdown/tests/testfiles/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/README.md delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/notes.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/smart.test delete mode 100644 macros/generic/markdown/tests/testfiles/lunamark/unicode.test (limited to 'macros/generic') diff --git a/macros/generic/markdown/LICENSE b/macros/generic/markdown/LICENSE deleted file mode 100644 index 72d52c06d9..0000000000 --- a/macros/generic/markdown/LICENSE +++ /dev/null @@ -1,42 +0,0 @@ -Copyright (C) 2009-2016 John MacFarlane, Hans Hagen - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Copyright (C) 2016-2018 Vít Novotný - -This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3 -of this license or (at your option) any later version. -The latest version of this license is in - - http://www.latex-project.org/lppl.txt - -and version 1.3 or later is part of all distributions of LaTeX -version 2005/12/01 or later. - -This work has the LPPL maintenance status `maintained'. -The Current Maintainer of this work is Vít Novotný. - -Send bug reports, requests for additions and questions -either to the GitHub issue tracker at - - https://github.com/witiko/markdown/issues - -or to the e-mail address . diff --git a/macros/generic/markdown/Makefile b/macros/generic/markdown/Makefile deleted file mode 100644 index 5c210f83e4..0000000000 --- a/macros/generic/markdown/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -.PHONY: all clean implode dist test examples -AUXFILES=markdown.bbl markdown.cb markdown.cb2 markdown.glo markdown.bbl \ - markdown.run.xml markdown.bib markdown.markdown.in markdown.markdown.lua \ - markdown.markdown.out -AUXDIRS=_minted-markdown _markdown_markdown -TDSARCHIVE=markdown.tds.zip -CTANARCHIVE=markdown.ctan.zip -DISTARCHIVE=markdown.zip -ARCHIVES=$(TDSARCHIVE) $(CTANARCHIVE) $(DISTARCHIVE) -EXAMPLES_RESOURCES=examples/example.md examples/scientists.csv -EXAMPLES_SOURCES=examples/context.tex examples/latex.tex -EXAMPLES=examples/context-mkii.pdf examples/context-mkiv.pdf \ - examples/latex-pdftex.pdf examples/latex-luatex.pdf examples/latex-xetex.pdf -TESTS=tests/test.sh tests/support/*.tex tests/templates/*/*.tex.m4 \ - tests/templates/*/COMMANDS.m4 tests/testfiles/*/*.test -MAKES=Makefile $(addsuffix /Makefile, $(SUBDIRECTORIES)) latexmkrc -READMES=README.md LICENSE examples/README.md tests/README.md \ - tests/support/README.md tests/templates/README.md tests/testfiles/README.md \ - tests/templates/*/README.md tests/testfiles/*/README.md -DTXARCHIVE=markdown.dtx -VERSION=$(shell sed -rn '/^\\def\\markdownVersion\{/s/[^{]*\{(.*)\}.*/\1/p' <$(DTXARCHIVE)) -LASTMODIFIED=$(shell sed -rn '/^\\def\\markdownLastModified\{/s/[^{]*\{(.*)\}.*/\1/p' <$(DTXARCHIVE)) -INSTALLER=markdown.ins docstrip.cfg -TECHNICAL_DOCUMENTATION=markdown.pdf -MARKDOWN_USER_MANUAL=markdown.md markdown.css -HTML_USER_MANUAL=markdown.html markdown.css -USER_MANUAL=$(MARKDOWN_USER_MANUAL) $(HTML_USER_MANUAL) -DOCUMENTATION=$(TECHNICAL_DOCUMENTATION) $(USER_MANUAL) -INSTALLABLES=markdown.lua markdown-cli.lua markdown.tex markdown.sty t-markdown.tex -MAKEABLES=$(TECHNICAL_DOCUMENTATION) $(USER_MANUAL) $(INSTALLABLES) $(EXAMPLES) -RESOURCES=$(DOCUMENTATION) $(EXAMPLES_RESOURCES) $(EXAMPLES_SOURCES) $(EXAMPLES) \ - $(MAKES) $(READMES) $(INSTALLER) $(DTXARCHIVE) $(TESTS) -EVERYTHING=$(RESOURCES) $(INSTALLABLES) - -# This is the default pseudo-target. It typesets the manual, -# the examples, and extracts the package files. -all: $(MAKEABLES) - $(MAKE) clean - -# This target extracts the source files out of the DTX archive. -$(INSTALLABLES) $(MARKDOWN_USER_MANUAL): $(INSTALLER) $(DTXARCHIVE) - xetex $< - -# This target typesets the manual. -$(TECHNICAL_DOCUMENTATION): $(DTXARCHIVE) $(INSTALLABLES) - latexmk -interaction=nonstopmode $< - -# These targets typeset the examples. -$(EXAMPLES): $(EXAMPLE_SOURCES) examples/example.tex $(INSTALLABLES) - $(MAKE) -C examples $(notdir $@) - -examples/example.tex: $(INSTALLABLES) - $(MAKE) -C examples $(notdir $@) - -# This target converts the markdown user manual to an HTML page. -%.html: %.md %.css - awk '{ \ - filename = gensub(/^\/(.*\.md)$$/, "\\1", "g"); \ - if(filename != $$0) \ - system("cat " filename); \ - else \ - print($$0); \ - }' <$< | \ - sed -e 's#\\markdownVersion{}#$(VERSION)#g' \ - -e 's#\\markdownLastModified{}#$(LASTMODIFIED)#g' \ - -e 's#\\TeX{}#TeX#g' \ - -e 's#\\LaTeX{}#LaTeX#g' \ - -e 's#\\Hologo{ConTeXt}#ConTeXt#g' \ - -e 's#\\Opt{\([^}]*\)}#**`\1`**#g' -e 's#\\,# #g' \ - -e 's#\\meta{\([^}]*\)}#\⟨*\1*\⟩#g' \ - -e 's#\\acro{\([^}]*\)}#\1#g' \ - -e 's#;-)##g' \ - -e 's#\\envm{\([^}]*\)}#`\1`#g' -e 's#\\envmdef{\([^}]*\)}#`\1`#g' \ - -e 's#\\m{\([^}]*\)}#`\\\1`#g' -e 's#\\mdef{\([^}]*\)}#`\\\1`#g' | \ - pandoc -f markdown -t html -N -s --toc --toc-depth=3 --css=$(word 2, $^) >$@ - -# This pseudo-target runs all the tests in the `tests/` directory. -test: - $(MAKE) -C tests - -# This pseudo-target produces the distribution archives. -dist: implode - $(MAKE) $(ARCHIVES) - $(MAKE) clean - -# This target produces the TeX directory structure archive. -$(TDSARCHIVE): $(DTXARCHIVE) $(INSTALLABLES) $(DOCUMENTATION) - @# Installing the macro package. - mkdir -p tex/generic/markdown tex/luatex/markdown tex/latex/markdown \ - tex/context/third/markdown scripts/markdown - cp markdown.lua tex/luatex/markdown/ - cp markdown-cli.lua scripts/markdown/ - cp markdown.sty tex/latex/markdown/ - cp markdown.tex tex/generic/markdown/ - cp t-markdown.tex tex/context/third/markdown/ - @# Installing the documentation. - mkdir -p doc/generic/markdown doc/latex/markdown/examples \ - doc/context/third/markdown/examples - cp $(DOCUMENTATION) doc/generic/markdown/ - cp examples/context.tex $(EXAMPLES_RESOURCES) doc/context/third/markdown/examples/ - cp examples/latex.tex $(EXAMPLES_RESOURCES) doc/latex/markdown/examples/ - @# Installing the sources. - mkdir -p source/generic/markdown - cp $(DTXARCHIVE) $(INSTALLER) source/generic/markdown - zip -r -v -nw $@ doc scripts source tex - rm -rf doc scripts source tex - -# This target produces the distribution archive. -$(DISTARCHIVE): $(EVERYTHING) $(TDSARCHIVE) - -ln -s . markdown - zip -MM -r -v -nw $@ $(addprefix markdown/,$(EVERYTHING)) $(TDSARCHIVE) - rm -f markdown - -# This target produces the CTAN archive. -$(CTANARCHIVE): $(RESOURCES) $(TDSARCHIVE) - -ln -s . markdown - zip -MM -r -v -nw $@ $(addprefix markdown/,$(RESOURCES)) $(TDSARCHIVE) - rm -f markdown - -# This pseudo-target removes any existing auxiliary files and directories. -clean: - latexmk -c $(DTXARCHIVE) - rm -f $(AUXFILES) - rm -rf ${AUXDIRS} - $(MAKE) -C examples clean - -# This pseudo-target removes any makeable files. -implode: clean - rm -f $(MAKEABLES) $(ARCHIVES) - $(MAKE) -C examples implode diff --git a/macros/generic/markdown/README.md b/macros/generic/markdown/README.md index 44c963a2da..d29e20c875 100644 --- a/macros/generic/markdown/README.md +++ b/macros/generic/markdown/README.md @@ -10,8 +10,9 @@ The Markdown package converts [markdown][] markup to TeX commands. The functionality is provided both as a Lua module, and as plain TeX, LaTeX, and ConTeXt macro packages that can be used to directly typeset TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. 😉 +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown syntax +is encouraged. 😉 [markdown]: https://daringfireball.net/projects/markdown/basics/ "Daring Fireball: Markdown Basics" @@ -38,6 +39,8 @@ For further information, consult one of the following: 4. My journal articles published by [TUGboat][]: - [Using Markdown inside TeX documents][tb119], and - [Markdown 2.7.0: Towards lightweight markup in TeX][tb124]. +5. My journal articles published by [CSTUG][] (in Czech): + - [Rendering Markdown inside TeX Documents][10.5300/2016-1-4/78]. [overleaf-1]: https://www.overleaf.com/learn/latex/Articles/How_to_write_in_Markdown_on_Overleaf "How to write in Markdown on Overleaf" [overleaf-2]: https://www.overleaf.com/learn/latex/Articles/Markdown_into_LaTeX_with_Style "Markdown into LaTeX with Style" @@ -47,7 +50,9 @@ For further information, consult one of the following: [overleaf-6]: https://www.overleaf.com/latex/examples/using-markdown-in-latex-documents/whdrnpcpnwrm "Using Markdown in LaTeX documents" [tb119]: https://www.tug.org/members/TUGboat/tb38-2/tb119novotny.pdf "Using Markdown inside TeX documents" - [tb124]: https://www.tug.org/TUGboat/production/40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" + [tb124]: https://www.tug.org/members/TUGboat/tb40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" + + [10.5300/2016-1-4/78]: https://doi.org/10.5300/2016-1-4/78 "Rendering Markdown inside TeX Documents" [install]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#installation "Markdown Package User Manual" [liantze]: http://liantze.penguinattack.org/ "Rants from the Lab" @@ -55,18 +60,40 @@ For further information, consult one of the following: [overleaf]: https://www.overleaf.com/ "Overleaf: Real-time Collaborative Writing and Publishing Tools with Integrated PDF Preview" [techdoc]: http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf "A Markdown Interpreter for TeX" [tugboat]: https://www.tug.org/tugboat/ "TUGboat - Communications of the TeX Users Group" + [cstug]: https://www.cstug.cz/ "Československé sdružení uživatelů TeXu" + +Acknowledgements +---------------- + +| Logo | Acknowledgement | +| ------------- | ------------- | +| [][fimu] | I gratefully acknowledge the funding from the [Faculty of Informatics][fimu] at the [Masaryk University][mu] in Brno, Czech Republic, for the development of the Markdown package. | +| [][overleaf] | Extensive user documentation for the Markdown package was kindly written by [Lian Tze Lim][liantze] and published by [Overleaf][]. | +| [][omedym] | Support for content slicing (Lua options [`shiftHeadings`][option-shift-headings] and [`slice`][option-slice]) and pipe tables (Lua options [`pipeTables`][option-pipe-tables] and [`tableCaptions`][option-table-captions]) was graciously sponsored by [David Vins][dvins] and [Omedym][]. | + + [dvins]: https://github.com/dvins "David Vins" + [fimu]: https://www.fi.muni.cz/index.html.en "Faculty of Informatics, Masaryk University" + [mu]: https://www.muni.cz/en "Masaryk University" + [Omedym]: https://www.omedym.com/ "Omedym" + + [option-pipe-tables]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#pipe-tables "Markdown Package User Manual" + [option-shift-headings]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#option-shiftheadings "Markdown Package User Manual" + [option-slice]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#slice "Markdown Package User Manual" + [option-table-captions]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#option-tablecaptions "Markdown Package User Manual" Contributing ------------ -Apart from the example markdown documents and tests, which are placed in the -`examples/` and `tests/` directories, the complete source code and -documentation of the package are placed in the `markdown.dtx` document -following the literate programming paradigm. +Apart from the example markdown documents, tests, and continuous integration, +which are placed in the `examples/`, `tests/`, and `.circleci/` directories, +the complete source code and documentation of the package are placed in the +`markdown.dtx` document following the [literate programming][] paradigm. +Some useful commands, such as building the release archives and typesetting +the documentation, are placed in the `Makefile` file for ease of maintenance. When the file `markdown.ins` is interpreted using a Unicode-aware TeX engine, such as XeTeX (`xetex markdown.ins`) or LuaTeX (`luatex markdown.ins`), several files are produced from the `markdown.dtx` document. In `markdown.dtx`, the -boundaries between the produced files are marked up using a XML-like syntax +boundaries between the produced files are marked up using an XML-like syntax provided by the [DocStrip][] plain TeX package. Running the [LaTeXMK][] tool on the `markdown.dtx` file @@ -76,25 +103,8 @@ documentation is placed inside TeX comments and marked up using the [ltxdockit][] LaTeX document class. Support for typesetting the documentation is provided by the [doc][] LaTeX package. - [doc]: https://ctan.org/pkg/doc "doc – Format LaTeX documentation" - [DocStrip]: https://ctan.org/pkg/docstrip "docstrip – Remove comments from file" - [LaTeXMK]: https://ctan.org/pkg/latexmk "latexmk – Fully automated LaTeX document generation" - [ltxdockit]: https://ctan.org/pkg/ltxdockit "ltxdockit – Documentation support" - -Acknowledgements ----------------- -I gratefully acknowledge the funding from the [Faculty of Informatics][fimu] -at the [Masaryk University][mu] in Brno, Czech Republic, for the development of -the Markdown package. - -Support for content slicing (Lua options `shiftHeadings` and `slice`) and pipe -tables (Lua options `pipeTables` and `tableCaptions`) was graciously sponsored -by [David Vins][dvins] and [Omedym][]. - -Extensive user documentation of the Markdown package was kindly written by -[Lian Tze Lim][liantze] and published by [Overleaf][]. - - [dvins]: https://github.com/dvins "David Vins" - [fimu]: https://www.fi.muni.cz/index.html.en "Faculty of Informatics, Masaryk University" - [mu]: https://www.muni.cz/en "Masaryk University" - [Omedym]: https://www.omedym.com/ "Omedym" + [doc]: https://ctan.org/pkg/doc "doc – Format LaTeX documentation" + [DocStrip]: https://ctan.org/pkg/docstrip "docstrip – Remove comments from file" + [LaTeXMK]: https://ctan.org/pkg/latexmk "latexmk – Fully automated LaTeX document generation" + [literate programming]: https://en.wikipedia.org/wiki/Literate_programming "Literate programming" + [ltxdockit]: https://ctan.org/pkg/ltxdockit "ltxdockit – Documentation support" diff --git a/macros/generic/markdown/docstrip.cfg b/macros/generic/markdown/docstrip.cfg index a03b51c87b..60f15d3935 100644 --- a/macros/generic/markdown/docstrip.cfg +++ b/macros/generic/markdown/docstrip.cfg @@ -22,7 +22,7 @@ -- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE^^J% -- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.^^J% -- ^^J% --- Copyright (C) 2016-2019 Vít Novotný^^J% +-- Copyright (C) 2016-2020 Vít Novotný^^J% -- ^^J% -- This work may be distributed and/or modified under the^^J% -- conditions of the LaTeX Project Public License, either version 1.3^^J% @@ -62,7 +62,7 @@ \let\luapostamble\empty \declarepreamble\texpreamble -Copyright (C) 2016-2019 Vít Novotný +Copyright (C) 2016-2020 Vít Novotný This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/generic/markdown/examples/README.md b/macros/generic/markdown/examples/README.md deleted file mode 100644 index 0d32d16ec4..0000000000 --- a/macros/generic/markdown/examples/README.md +++ /dev/null @@ -1,7 +0,0 @@ -This directory contains example LaTeX and ConTeXt documents. These documents -can be typeset by running the GNU `make` program in this directory. It is -expected that your TeX installation contains the `pdflatex`, `xelatex`, -`lualatex`, `texexec`, and `context` executables. - -The `markdown.dtx` file in the root directory contains documentation in the -markdown language and can also serve as an example LaTeX document. diff --git a/macros/generic/markdown/examples/context-mkii.pdf b/macros/generic/markdown/examples/context-mkii.pdf deleted file mode 100644 index a17e5fc469..0000000000 Binary files a/macros/generic/markdown/examples/context-mkii.pdf and /dev/null differ diff --git a/macros/generic/markdown/examples/context-mkiv.pdf b/macros/generic/markdown/examples/context-mkiv.pdf deleted file mode 100644 index ad965f37fe..0000000000 Binary files a/macros/generic/markdown/examples/context-mkiv.pdf and /dev/null differ diff --git a/macros/generic/markdown/examples/example.md b/macros/generic/markdown/examples/example.md index 8aeb423a20..f0be0cddfa 100644 --- a/macros/generic/markdown/examples/example.md +++ b/macros/generic/markdown/examples/example.md @@ -15,7 +15,7 @@ This is a text paragraph containing an ellipsis ... and followed by a horizontal This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") + ![example image](example-image.png "An example image from Martin Scharrer's mwe package") /scientists.csv (The great minds of the 19th century rendered via a content block) diff --git a/macros/generic/markdown/examples/latex-luatex.pdf b/macros/generic/markdown/examples/latex-luatex.pdf deleted file mode 100644 index 1ce6e43d49..0000000000 Binary files a/macros/generic/markdown/examples/latex-luatex.pdf and /dev/null differ diff --git a/macros/generic/markdown/examples/latex-pdftex.pdf b/macros/generic/markdown/examples/latex-pdftex.pdf deleted file mode 100644 index f5eca2597a..0000000000 Binary files a/macros/generic/markdown/examples/latex-pdftex.pdf and /dev/null differ diff --git a/macros/generic/markdown/examples/latex-xetex.pdf b/macros/generic/markdown/examples/latex-xetex.pdf deleted file mode 100644 index 3c9f0ff75d..0000000000 Binary files a/macros/generic/markdown/examples/latex-xetex.pdf and /dev/null differ diff --git a/macros/generic/markdown/latexmkrc b/macros/generic/markdown/latexmkrc deleted file mode 100644 index 34d796211e..0000000000 --- a/macros/generic/markdown/latexmkrc +++ /dev/null @@ -1,4 +0,0 @@ -$pdflatex = 'lualatex --shell-escape %O %S'; -$pdf_mode = 1; -$postscript_mode = 0; -$dvi_mode = 0; diff --git a/macros/generic/markdown/markdown.dtx b/macros/generic/markdown/markdown.dtx index 71c06b8154..0cf9f4f9ac 100644 --- a/macros/generic/markdown/markdown.dtx +++ b/macros/generic/markdown/markdown.dtx @@ -535,8 +535,9 @@ The [Markdown package][pkg] converts [markdown][] markup to \TeX{} commands. The functionality is provided both as a Lua module and as plain \TeX{}, \LaTeX{}, and \Hologo{ConTeXt} macro packages that can be used to directly typeset \TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. ;-) +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown +syntax is encouraged. ;-) [markdown]: https://daringfireball.net/projects/markdown/basics/ (Daring Fireball: Markdown Basics) @@ -569,11 +570,11 @@ documentation][techdoc]. % \fi % \begin{macrocode} local metadata = { - version = "2.8.1", + version = "2.8.2", comment = "A module for the conversion from markdown to plain TeX", author = "John MacFarlane, Hans Hagen, Vít Novotný", copyright = {"2009-2016 John MacFarlane, Hans Hagen", - "2016-2019 Vít Novotný"}, + "2016-2020 Vít Novotný"}, license = "LPPL 1.3" } @@ -5659,8 +5660,8 @@ pdftex --shell-escape document.tex % % \end{markdown} % \begin{macrocode} -\def\markdownLastModified{2019/04/30}% -\def\markdownVersion{2.8.1}% +\def\markdownLastModified{2020/03/20}% +\def\markdownVersion{2.8.2}% % \end{macrocode} % \par % \begin{markdown} @@ -5796,7 +5797,7 @@ interfaces. % of the document being typeset. % % The expansion of this macro must not contain quotation marks (`"`) or -% backslash symbols (`extbackslash`). Mind that \TeX{} engines tend to +% backslash symbols (`\`). Mind that \TeX{} engines tend to % put quotation marks around \m{jobname}, when it contains spaces. % % \end{markdown} @@ -6939,6 +6940,8 @@ following content: \catcode`\^^A=14 \global\def\markdownRendererImage#1#2#3#4{^^A \immediate\write18{^^A +``` +``` sh if printf '%s' "#3" | grep -q ^http; then OUTPUT="$(printf '%s' "#3" | md5sum | cut -d' ' -f1).^^A $(printf '%s' "#3" | sed 's/.*[.]//')"; @@ -6950,6 +6953,8 @@ following content: else printf '%s%%' "#3" > \jobname.fetched; fi^^A +``` +``` tex }^^A {^^A \everyeof={\noexpand}^^A @@ -13701,6 +13706,7 @@ function M.writer.new(options) % \begin{macrocode} function self.verbatim(s) if not self.is_writing then return "" end + s = string.gsub(s, '[\r\n%s]*$', '') local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim") return {"\\markdownRendererInputVerbatim{",name,"}"} end @@ -13716,6 +13722,7 @@ function M.writer.new(options) % \begin{macrocode} function self.fencedCode(i, s) if not self.is_writing then return "" end + s = string.gsub(s, '[\r\n%s]*$', '') local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim") return {"\\markdownRendererInputFencedCode{",name,"}{",i,"}"} end @@ -14978,7 +14985,8 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline % % \end{markdown} % \begin{macrocode} - larsers.Str = parsers.normalchar^1 / writer.string + larsers.Str = (parsers.normalchar * (parsers.normalchar + parsers.at)^0) + / writer.string larsers.Symbol = (parsers.specialchar - parsers.tightblocksep) / writer.string @@ -15650,7 +15658,14 @@ if metadata.version ~= md.metadata.version then "markdown.lua " .. md.metadata.version .. ".") end local convert = md.new(options) -local output = convert(input:gsub("\r\n?", "\n")) +% \end{macrocode} +% \begin{markdown} +% Since the Lua converter expects \acro{unix} line endings, normalize the +% input. Also add a line ending at the end of the file in case the input file +% has none. +% \end{markdown} +% \begin{macrocode} +local output = convert(input:gsub("\r\n?", "\n") .. "\n") if output_filename then local output_file = io.open(output_filename, "w") @@ -16016,7 +16031,10 @@ local convert = md.new(\markdownLuaOptions) |markdownInfo{The ending token sequence was found}@ |immediate|closeout|markdownOutputFileStream@ |endgroup@ - |markdownInput|markdownOptionInputTempFileName@ + |markdownInput{@ + |markdownOptionOutputDir@ + /|markdownOptionInputTempFileName@ + }@ #2}@ |fi@ % \end{macrocode} @@ -16285,16 +16303,15 @@ local convert = md.new(\markdownLuaOptions) |closein|markdownInputFileStream |markdownLuaExecute{% |markdownPrepare - local input = assert(io.open("% - |markdownOptionOutputDir - /#1", "r"):read("*a")) + local input = assert(io.open("#1", "r"):read("*a")) % \end{macrocode} % \begin{markdown} % Since the Lua converter expects \acro{unix} line endings, normalize the -% input. +% input. Also add a line ending at the end of the file in case the input file +% has none. % \end{markdown} % \begin{macrocode} - print(convert(input:gsub("\r\n?", "\n")))}}% + print(convert(input:gsub("\r\n?", "\n") .. "\n"))}}% |endgroup % \end{macrocode} % \iffalse diff --git a/macros/generic/markdown/markdown.html b/macros/generic/markdown/markdown.html index e6ed568bff..cc1c9fe59f 100644 --- a/macros/generic/markdown/markdown.html +++ b/macros/generic/markdown/markdown.html @@ -86,7 +86,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni

Markdown Package User Manual

Vít Novotný

-

v2.8.1 (2019/04/30)

+

v2.8.2 (2020/03/20)

1 Introduction

-

The Markdown package converts markdown markup to TeX commands. The functionality is provided both as a Lua module and as plain TeX, LaTeX, and ConTeXt macro packages that can be used to directly typeset documents containing markdown markup. Unlike other convertors, the Markdown package makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged.

+

The Markdown package converts markdown markup to TeX commands. The functionality is provided both as a Lua module and as plain TeX, LaTeX, and ConTeXt macro packages that can be used to directly typeset documents containing markdown markup. Unlike other convertors, the Markdown package does not require any external programs, and makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged.

This document is a user manual for the Markdown package. It provides tutorials and code examples. For an in-depth description of the package requirements, interfaces, and implementation, please refer to the technical documentation.

1.1 Requirements

The package requires a working TeX distribution. TeX Live ≥ 2013 is known to work and so are recent installation of MikTeX. If you are using a minimal installation of a TeX distribution, please consult the technical documentation for a detailed list of required packages.

@@ -3766,33 +3766,33 @@ multiple paragraphs \catcode`\%=12 \catcode`\^^A=14 \global\def\markdownRendererImage#1#2#3#4{^^A - \immediate\write18{^^A - if printf '%s' "#3" | grep -q ^http; then - OUTPUT="$(printf '%s' "#3" | md5sum | cut -d' ' -f1).^^A - $(printf '%s' "#3" | sed 's/.*[.]//')"; - if ! [ -e "$OUTPUT" ]; then - wget -O "$OUTPUT" '#3' || rm "$OUTPUT"; - convert "$OUTPUT" png:"$OUTPUT"; - fi; - printf '%s%%' "$OUTPUT" > \jobname.fetched; - else - printf '%s%%' "#3" > \jobname.fetched; - fi^^A - }^^A - {^^A - \everyeof={\noexpand}^^A - \edef\filename{\@@input"\jobname.fetched" }^^A - \includegraphics[width=\textwidth]{\filename}^^A - }^^A -} -\endgroup -\begin{document} -\begin{markdown} -![TUGboat](https://tug.org/tugboat/noword.jpg) -\end{markdown} -\end{document} -

Next, invoke LuaTeX from the terminal:

- + \immediate\write18{^^A + + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following content. This assumes that you use a Unix-like operating system with Bourne or Bourne again shell as the default shell of the current user. It also assumes that the md5sum, wget, and convert binaries are installed and that the TeX engine has shell access.

@@ -3804,30 +3804,30 @@ multiple paragraphs

Note that you will need to place place a markdown-languages.json file inside your working directory or inside your local TeX directory structure. In this file, you will define a mapping between filename extensions and the language names recognized by your favorite syntax highlighter; there may exist other creative uses beside syntax highlighting. The Languages.json file provided by Anton Sotkov is a good starting point.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- +

Create also a text document named markdown-languages.json with the following content:

- +

Next, invoke LuaTeX from the terminal:

- +

A PDF document named document.pdf should be produced and contain the following text:

This is document.tex, the document that we are currently typesetting.

@@ -3836,33 +3836,33 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is document.tex, the document that we are currently typesetting.

@@ -3871,31 +3871,31 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- +

Create also a text document named markdown-languages.json with the following content:

- +

Next, invoke LuaTeX from the terminal:

- +

A PDF document named document.pdf should be produced and contain the following text:

This is document.tex, the document that we are currently typesetting.

@@ -3911,50 +3911,50 @@ multiple paragraphs

The \markdownRendererUlEndTight macro represents the end of a bulleted list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the tightLists option is false. The macro receives no arguments.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -3967,55 +3967,55 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -4028,51 +4028,51 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -4093,68 +4093,68 @@ multiple paragraphs

The \markdownRendererOlEndTight macro represents the end of an ordered list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the tightLists option is false. The macro receives no arguments.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -4167,71 +4167,71 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -4244,69 +4244,69 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- +

Next, invoke LuaTeX from the terminal:

- +

A PDF document named document.pdf should be produced and contain the following text:

This is a tight list (the first item, the second item, and the third item).

@@ -4329,132 +4329,33 @@ multiple paragraphs

The \markdownRendererDlEndTight macro represents the end of a definition list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the tightLists option is false. The macro receives no arguments.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

-
\input markdown
-\def\markdownOptionDefinitionLists{true}
-\def\markdownOptionTightLists{true}
-
-\def\markdownRendererInterblockSeparator{%
-  :%
-  \def\markdownRendererInterblockSeparator{\par}%
-}
-\def\markdownRendererDlBeginTight{%
-  \begingroup
-  \parindent=0pt
-}
-\def\markdownRendererDlItem#1{%
-  \par{\bf#1}%
-  \def\markdownRendererDlDefinitionEnd{%
-    ,
-    \def\markdownRendererDlDefinitionEnd{%
-      , and
-      \def\markdownRendererDlDefinitionEnd{.}%
-    }%
-  }%
-}
-\def\markdownRendererDlItemEnd{}
-\def\markdownRendererDlDefinitionBegin{\par--\kern 0.5em}
-\def\markdownRendererDlEndTight{\endgroup}
-
-\markdownBegin
-This is a tight definition list
-
-Coffee
-:   black hot drink
-:   prepared from roasted coffee beans
-:   one of the most traded agricultural commodities in the world
-
-Milk
-:   white cold drink
-:   nutrient-rich
-:   produced on an industrial scale
-\markdownEnd
-
-\def\markdownRendererInterblockSeparator{%
-  \def\markdownRendererInterblockSeparator{\par}%
-}
-\def\markdownRendererDlBegin{}
-\def\markdownRendererDlItem#1{%
-  . #1 is a
-  \def\markdownRendererDlDefinitionBegin{%
-    \def\markdownRendererDlDefinitionBegin{%
-      ,
-      \def\markdownRendererDlDefinitionBegin{, and }%
-    }%
-  }%
-}
-\def\markdownRendererDlItemEnd{}
-\def\markdownRendererDlDefinitionEnd{}
-\def\markdownRendererDlEnd{.}
-
-\markdownBegin
-This is a loose definition list
-
-Coffee
-
-:   black hot drink
-
-:   prepared from roasted coffee beans
-
-:   one of the most traded agricultural commodities in the world
-
-Milk
-
-:   white cold drink
-
-:   nutrient-rich
-
-:   produced on an industrial scale
-\markdownEnd
-
-\bye
-

Next, invoke LuaTeX from the terminal:

- -

A PDF document named document.pdf should be produced and contain the following text:

-
-

This is a tight definition list:

-

Coffee

-
    -
  • black hot drink,
  • -
  • prepared from roasted coffee beans, and
  • -
  • one of the most traded agricultural commodities in the world.
  • -
-

Milk

-
    -
  • white cold drink,
  • -
  • nutrient-rich, and
  • -
  • produced on an industrial scale.
  • -
-

This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.

-
-
LaTeX Example
-

Using a text editor, create a text document named document.tex with the following content:

-
\documentclass{article}
-\usepackage[definitionLists, tightLists]{markdown}
-\begin{document}
+
\input markdown
+\def\markdownOptionDefinitionLists{true}
+\def\markdownOptionTightLists{true}
 
-\begin{markdown*}{
-  renderers = {
-    interblockSeparator = {%
-      :%
-      \def\markdownRendererInterblockSeparator{\par}%
-    },
-    dlBeginTight = {\begin{description}},
-    dlItem = {%
-      \item[#1]
-      \begin{itemize}
-      \def\markdownRendererDlDefinitionEnd{%
-        ,
-        \def\markdownRendererDlDefinitionEnd{%
-          , and
-          \def\markdownRendererDlDefinitionEnd{.}%
-        }%
-      }%
-    },
-    dlItemEnd = {\end{itemize}},
-    dlDefinitionBegin = \item,
-    dlEndTight = {\end{description}},
-  },
-}
+\def\markdownRendererInterblockSeparator{%
+  :%
+  \def\markdownRendererInterblockSeparator{\par}%
+}
+\def\markdownRendererDlBeginTight{%
+  \begingroup
+  \parindent=0pt
+}
+\def\markdownRendererDlItem#1{%
+  \par{\bf#1}%
+  \def\markdownRendererDlDefinitionEnd{%
+    ,
+    \def\markdownRendererDlDefinitionEnd{%
+      , and
+      \def\markdownRendererDlDefinitionEnd{.}%
+    }%
+  }%
+}
+\def\markdownRendererDlItemEnd{}
+\def\markdownRendererDlDefinitionBegin{\par--\kern 0.5em}
+\def\markdownRendererDlEndTight{\endgroup}
+
+\markdownBegin
 This is a tight definition list
 
 Coffee
@@ -4466,50 +4367,48 @@ multiple paragraphs
 :   white cold drink
 :   nutrient-rich
 :   produced on an industrial scale
-\end{markdown*}
+\markdownEnd
 
-\begin{markdown*}{
-  renderers = {
-    interblockSeparator = {%
-      \def\markdownRendererInterblockSeparator{\par}%
-    },
-    dlBegin = {},
-    dlItem = {%
-      . #1 is a
-      \def\markdownRendererDlDefinitionBegin{%
-        \def\markdownRendererDlDefinitionBegin{%
-          ,
-          \def\markdownRendererDlDefinitionBegin{, and }%
-        }%
-      }%
-    },
-    dlItemEnd = {},
-    dlDefinitionEnd = {},
-    dlEnd = {.},
-  },
-}
-This is a loose definition list
+\def\markdownRendererInterblockSeparator{%
+  \def\markdownRendererInterblockSeparator{\par}%
+}
+\def\markdownRendererDlBegin{}
+\def\markdownRendererDlItem#1{%
+  . #1 is a
+  \def\markdownRendererDlDefinitionBegin{%
+    \def\markdownRendererDlDefinitionBegin{%
+      ,
+      \def\markdownRendererDlDefinitionBegin{, and }%
+    }%
+  }%
+}
+\def\markdownRendererDlItemEnd{}
+\def\markdownRendererDlDefinitionEnd{}
+\def\markdownRendererDlEnd{.}
+
+\markdownBegin
+This is a loose definition list
+
+Coffee
 
-Coffee
+:   black hot drink
 
-:   black hot drink
+:   prepared from roasted coffee beans
 
-:   prepared from roasted coffee beans
+:   one of the most traded agricultural commodities in the world
 
-:   one of the most traded agricultural commodities in the world
+Milk
 
-Milk
+:   white cold drink
 
-:   white cold drink
+:   nutrient-rich
 
-:   nutrient-rich
-
-:   produced on an industrial scale
-\end{markdown*}
-
-\end{document}
-

Next, invoke LuaTeX from the terminal:

- +: produced on an industrial scale +\markdownEnd + +\bye
+

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight definition list:

@@ -4527,87 +4426,188 @@ multiple paragraphs

This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.

-
ConTeXt Example
+
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

-
\usemodule[t][markdown]
-\def\markdownOptionDefinitionLists{true}
-\def\markdownOptionTightLists{true}
-\starttext
-
-\def\markdownRendererInterblockSeparator{%
-  :%
-  \def\markdownRendererInterblockSeparator{\par}%
-}
-\def\markdownRendererDlBeginTight{}
-\def\markdownRendererDlItem#1{%
-  \par{\bf#1}%
-  \startitemize
-  \def\markdownRendererDlDefinitionEnd{%
-    ,
-    \def\markdownRendererDlDefinitionEnd{%
-      , and
-      \def\markdownRendererDlDefinitionEnd{.}%
-    }%
-  }%
-}
-\def\markdownRendererDlItemEnd{\stopitemize}
-\def\markdownRendererDlDefinitionBegin{\item}
-\def\markdownRendererDlEndTight{}
-
-\startmarkdown
-This is a tight definition list
-
-Coffee
-:   black hot drink
-:   prepared from roasted coffee beans
-:   one of the most traded agricultural commodities in the world
-
-Milk
-:   white cold drink
-:   nutrient-rich
-:   produced on an industrial scale
-\stopmarkdown
-
-\def\markdownRendererInterblockSeparator{%
-  \def\markdownRendererInterblockSeparator{\par}%
-}
-\def\markdownRendererDlBegin{}
-\def\markdownRendererDlItem#1{%
-  . #1 is a
-  \def\markdownRendererDlDefinitionBegin{%
-    \def\markdownRendererDlDefinitionBegin{%
-      ,
-      \def\markdownRendererDlDefinitionBegin{, and }%
-    }%
-  }%
-}
-\def\markdownRendererDlItemEnd{}
-\def\markdownRendererDlDefinitionEnd{}
-\def\markdownRendererDlEnd{.}
-
-\startmarkdown
-This is a loose definition list
-
-Coffee
-
-:   black hot drink
-
-:   prepared from roasted coffee beans
-
-:   one of the most traded agricultural commodities in the world
-
-Milk
-
-:   white cold drink
-
-:   nutrient-rich
-
-:   produced on an industrial scale
-\stopmarkdown
+
+:   produced on an industrial scale
+\end{markdown*}
+
+\end{document}

Next, invoke LuaTeX from the terminal:

- + +

A PDF document named document.pdf should be produced and contain the following text:

+
+

This is a tight definition list:

+

Coffee

+
    +
  • black hot drink,
  • +
  • prepared from roasted coffee beans, and
  • +
  • one of the most traded agricultural commodities in the world.
  • +
+

Milk

+
    +
  • white cold drink,
  • +
  • nutrient-rich, and
  • +
  • produced on an industrial scale.
  • +
+

This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.

+
+
ConTeXt Example
+

Using a text editor, create a text document named document.tex with the following content:

+
\usemodule[t][markdown]
+\def\markdownOptionDefinitionLists{true}
+\def\markdownOptionTightLists{true}
+\starttext
+
+\def\markdownRendererInterblockSeparator{%
+  :%
+  \def\markdownRendererInterblockSeparator{\par}%
+}
+\def\markdownRendererDlBeginTight{}
+\def\markdownRendererDlItem#1{%
+  \par{\bf#1}%
+  \startitemize
+  \def\markdownRendererDlDefinitionEnd{%
+    ,
+    \def\markdownRendererDlDefinitionEnd{%
+      , and
+      \def\markdownRendererDlDefinitionEnd{.}%
+    }%
+  }%
+}
+\def\markdownRendererDlItemEnd{\stopitemize}
+\def\markdownRendererDlDefinitionBegin{\item}
+\def\markdownRendererDlEndTight{}
+
+\startmarkdown
+This is a tight definition list
+
+Coffee
+:   black hot drink
+:   prepared from roasted coffee beans
+:   one of the most traded agricultural commodities in the world
+
+Milk
+:   white cold drink
+:   nutrient-rich
+:   produced on an industrial scale
+\stopmarkdown
+
+\def\markdownRendererInterblockSeparator{%
+  \def\markdownRendererInterblockSeparator{\par}%
+}
+\def\markdownRendererDlBegin{}
+\def\markdownRendererDlItem#1{%
+  . #1 is a
+  \def\markdownRendererDlDefinitionBegin{%
+    \def\markdownRendererDlDefinitionBegin{%
+      ,
+      \def\markdownRendererDlDefinitionBegin{, and }%
+    }%
+  }%
+}
+\def\markdownRendererDlItemEnd{}
+\def\markdownRendererDlDefinitionEnd{}
+\def\markdownRendererDlEnd{.}
+
+\startmarkdown
+This is a loose definition list
+
+Coffee
+
+:   black hot drink
+
+:   prepared from roasted coffee beans
+
+:   one of the most traded agricultural commodities in the world
+
+Milk
+
+:   white cold drink
+
+:   nutrient-rich
+
+:   produced on an industrial scale
+\stopmarkdown
+
+\stoptext
+

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a tight definition list:

@@ -4629,17 +4629,17 @@ multiple paragraphs

The \markdownRendererEmphasis macro represents an emphasized span of text. The macro receives a single argument that corresponds to the emphasized span of text.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is emphasis.

@@ -4647,23 +4647,23 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is emphasis.

@@ -4671,18 +4671,18 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is emphasis.

@@ -4693,29 +4693,29 @@ multiple paragraphs

The \markdownRendererBlockQuoteBegin macro represents the beginning of a block quote. The macro receives no arguments.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

A quote from William Shakespeare’s King Lear:

@@ -4725,26 +4725,26 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

A quote from William Shakespeare’s King Lear:

@@ -4754,21 +4754,21 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

A quote from William Shakespeare’s King Lear:

@@ -4782,71 +4782,71 @@ multiple paragraphs

The \markdownRendererInputFencedCode macro represents a fenced code block. This macro will only be produced, when the fencedCode option is true. The macro receives two arguments that correspond to the filename of a file contaning the code block contents and to the code fence infostring.

LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text except for the filename, which may differ:

The following code is contained in file ./_markdown_document/882453149edcf288976647f6fe147ada.verbatim:

- +

The following code in Python contained in file ./_markdown_document/cf2a96e2120cef5b1fae5fea36fcc27b.verbatim:

- +

2.3.1.16 Heading Renderers

The \markdownRendererHeadingOne macro represents a first level heading. The macro receives a single argument that corresponds to the heading text.

@@ -4857,79 +4857,79 @@ multiple paragraphs

The \markdownRendererHeadingSix macro represents a sixth level heading. The macro receives a single argument that corresponds to the heading text.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

65536

LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

65536

ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

65536

@@ -4938,18 +4938,18 @@ multiple paragraphs

The \markdownRendererHorizontalRule macro represents a horizontal rule. The macro receives no arguments.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is the first page.

@@ -4958,24 +4958,24 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is the first page.

@@ -4984,19 +4984,19 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is the first page.

@@ -5007,63 +5007,63 @@ multiple paragraphs

The \markdownRendererFootnote macro represents a footnote. This macro will only be produced, when the footnotes option is true. The macro receives a single argument that corresponds to the footnote text.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is some text (and this is a footnote) and this is some other text (and this is some other footnote).

LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is some text (and this is a footnote) and this is some other text (and this is some other footnote).

ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is some text (and this is a footnote) and this is some other text (and this is some other footnote).

@@ -5072,63 +5072,13 @@ multiple paragraphs

The \markdownRendererCite macro represents a string of one or more parenthetical citations. This macro will only be produced, when the citations option is true. The macro receives the parameter {number of citations} followed by {prenote}{postnote}{name} repeated ⟨number of citations⟩ times. The ⟨suppress author⟩ parameter is either the token -, when the author’s name is to be suppressed, or + otherwise.

LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- -

A PDF document named document.pdf should be produced and contain the following text:

-
-

This is a parenthesized citation abrahams90 with a prefix see and a postfix pp. > 12, and a citation eijkhout91 with a postfix pp. 34.

-
-

2.3.1.20 Text Citations Renderer

-

The \markdownRendererTextCite macro represents a string of one or more text citations. This macro will only be produced, when the citations option is true. The macro receives parameters in the same format as the \markdownRendererCite macro.

-
LaTeX Example
-

Using a text editor, create a text document named document.tex with the following content:

Next, invoke LuaTeX from the terminal:

A PDF document named document.pdf should be produced and contain the following text:

+

This is a parenthesized citation abrahams90 with a prefix see and a postfix pp. > 12, and a citation eijkhout91 with a postfix pp. 34.

+
+

2.3.1.20 Text Citations Renderer

+

The \markdownRendererTextCite macro represents a string of one or more text citations. This macro will only be produced, when the citations option is true. The macro receives parameters in the same format as the \markdownRendererCite macro.

+
LaTeX Example
+

Using a text editor, create a text document named document.tex with the following content:

+ +

Next, invoke LuaTeX from the terminal:

+ +

A PDF document named document.pdf should be produced and contain the following text:

+

This is a text citation abrahams90 with a postfix pp. 12, and a citation eijkhout91 with a prefix also.

2.3.1.21 Table Renderer

@@ -5178,67 +5178,67 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

This is a table with caption Demonstration of pipe table syntax that is 4 colums wide and 4 rows long. As for the alignment, column number 1 is right-aligned, column number 2 is left-aligned, column number 3 has default alignment, and column number 4 is centered. In row 1, column number 1 says Right, column number 2 says Left, column number 3 says Default, and column number 4 says Center. In row 2, column number 1 says 12, column number 2 says 12, column number 3 says 12, and column number 4 says 12. In row 3, column number 1 says 123, column number 2 says 123, column number 3 says 123, and column number 4 says 123. In row 4, column number 1 says 1, column number 2 says 1, column number 3 says 1, and column number 4 says 1.

@@ -5247,23 +5247,23 @@ multiple paragraphs

By default, token renderers point to package-defined TeX macros, further referred to as prototypes, which provide useful default definitions.

Plain TeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

Packages can specify token renderer prototypes.

@@ -5271,28 +5271,28 @@ multiple paragraphs
LaTeX Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

Packages can specify token renderer prototypes.

@@ -5300,24 +5300,24 @@ multiple paragraphs
ConTeXt Example

Using a text editor, create a text document named document.tex with the following content:

- -

Next, invoke LuaTeX from the terminal:

- + +

Next, invoke LuaTeX from the terminal:

+

A PDF document named document.pdf should be produced and contain the following text:

Packages can specify token renderer prototypes.

diff --git a/macros/generic/markdown/markdown.md b/macros/generic/markdown/markdown.md index ddd8c67dcd..2a184c3f25 100644 --- a/macros/generic/markdown/markdown.md +++ b/macros/generic/markdown/markdown.md @@ -14,8 +14,9 @@ The [Markdown package][pkg] converts [markdown][] markup to \TeX{} commands. The functionality is provided both as a Lua module and as plain \TeX{}, \LaTeX{}, and \Hologo{ConTeXt} macro packages that can be used to directly typeset \TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. ;-) +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown +syntax is encouraged. ;-) [markdown]: https://daringfireball.net/projects/markdown/basics/ (Daring Fireball: Markdown Basics) diff --git a/macros/generic/markdown/markdown.pdf b/macros/generic/markdown/markdown.pdf index d166468833..4d8394cebd 100644 Binary files a/macros/generic/markdown/markdown.pdf and b/macros/generic/markdown/markdown.pdf differ diff --git a/macros/generic/markdown/tests/README.md b/macros/generic/markdown/tests/README.md deleted file mode 100644 index 53db58776b..0000000000 --- a/macros/generic/markdown/tests/README.md +++ /dev/null @@ -1,17 +0,0 @@ -This directory contains the testing framework of the Markdown package. Tests -act as an ensurance that changes to the package did not introduce new bugs. - -The `test.sh` shell script is used to run the individual tests. To run one or -more tests, execute the `test.sh` script with the pathnames of one or more test -files as the arguments. Test files can be recognized by the `.test` suffix and -reside inside the `testfiles/` directory. The Markdown package needs to be -[installed][install] before running the tests. - - [install]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#installation "Markdown Package User Manual" - -Each time a commit is made to the Git repository of the project, this test -suite is ran by a continuous integration service. -The current status is: -[![CircleCI](https://circleci.com/gh/Witiko/markdown/tree/master.svg)][CircleCI] - - [CircleCI]: https://circleci.com/gh/Witiko/markdown/tree/master (CircleCI) diff --git a/macros/generic/markdown/tests/support/README.md b/macros/generic/markdown/tests/support/README.md deleted file mode 100644 index d06e40a921..0000000000 --- a/macros/generic/markdown/tests/support/README.md +++ /dev/null @@ -1,4 +0,0 @@ -This directory contains support files. Support files should be available to the -TeX source code that is being typeset during a test. These are mainly files -containing TeX source code that is common for all the TeX source code -templates. diff --git a/macros/generic/markdown/tests/support/latex-setup.tex b/macros/generic/markdown/tests/support/latex-setup.tex deleted file mode 100644 index be002d6ec8..0000000000 --- a/macros/generic/markdown/tests/support/latex-setup.tex +++ /dev/null @@ -1,162 +0,0 @@ -renderers = {% - interblockSeparator = {% - \TYPE{interblockSeparator}% - \GOBBLE}, - lineBreak = {% - \TYPE{lineBreak}% - \GOBBLE}, - ellipsis = {% - \TYPE{ellipsis}% - \GOBBLE}, - nbsp = {% - \TYPE{nbsp}% - \GOBBLE}, - leftBrace = {% - \TYPE{leftBrace}% - \GOBBLE}, - rightBrace = {% - \TYPE{rightBrace}% - \GOBBLE}, - dollarSign = {% - \TYPE{dollarSign}% - \GOBBLE}, - percentSign = {% - \TYPE{percentSign}% - \GOBBLE}, - ampersand = {% - \TYPE{ampersand}% - \GOBBLE}, - underscore = {% - \TYPE{underscore}% - \GOBBLE}, - hash = {% - \TYPE{hash}% - \GOBBLE}, - circumflex = {% - \TYPE{circumflex}% - \GOBBLE}, - backslash = {% - \TYPE{backslash}% - \GOBBLE}, - tilde = {% - \TYPE{tilde}% - \GOBBLE}, - pipe = {% - \TYPE{pipe}% - \GOBBLE}, - codeSpan = {% - \TYPE{codeSpan: #1}}, - link = {% - \TYPE{BEGIN link}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END link}}, - image = {% - \TYPE{BEGIN image}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END image}}, - contentBlock = {% - \TYPE{BEGIN contentBlock}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlock}% - }, - contentBlockOnlineImage = {% - \TYPE{BEGIN contentBlockOnlineImage}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlockOnlineImage}% - }, - contentBlockCode = {% - \TYPE{BEGIN contentBlockCode}% - \TYPE{- suffix: #1}% - \TYPE{- language: #2}% - \TYPE{- URI: #3}% - \TYPE{- title: #5}% - \TYPE{END contentBlockCode}% - }, - ulBegin = {% - \TYPE{ulBegin}}, - ulBeginTight = {% - \TYPE{ulBeginTight}}, - ulItem = {% - \TYPE{ulItem}}, - ulItemEnd = {% - \TYPE{ulItemEnd}}, - ulEnd = {% - \TYPE{ulEnd}}, - ulEndTight = {% - \TYPE{ulEndTight}}, - olBegin = {% - \TYPE{olBegin}}, - olBeginTight = {% - \TYPE{olBeginTight}}, - olItem = {% - \TYPE{olItem}}, - olItemEnd = {% - \TYPE{olItemEnd}}, - olItemWithNumber = {% - \TYPE{olItemWithNumber: #1}}, - olEnd = {% - \TYPE{olEnd}}, - olEndTight = {% - \TYPE{olEndTight}}, - dlBegin = {% - \TYPE{dlBegin}}, - dlBeginTight = {% - \TYPE{dlBeginTight}}, - dlItem = {% - \TYPE{dlItem: #1}}, - dlItemEnd = {% - \TYPE{dlItemEnd}}, - dlDefinitionBegin = {% - \TYPE{dlDefinitionBegin}}, - dlDefinitionEnd = {% - \TYPE{dlDefinitionEnd}}, - dlEnd = {% - \TYPE{dlEnd}}, - dlEndTight = {% - \TYPE{dlEndTight}}, - emphasis = {% - \TYPE{emphasis: #1}}, - strongEmphasis = {% - \TYPE{strongEmphasis: #1}}, - blockQuoteBegin = {% - \TYPE{blockQuoteBegin}}, - blockQuoteEnd = {% - \TYPE{blockQuoteEnd}}, - inputVerbatim = {% - \TYPE{inputVerbatim: #1}}, - inputFencedCode = {% - \TYPE{BEGIN fencedCode}% - \TYPE{- src: #1}% - \TYPE{- infostring: #2}% - \TYPE{END fencedCode}}, - headingOne = {% - \TYPE{headingOne: #1}}, - headingTwo = {% - \TYPE{headingTwo: #1}}, - headingThree = {% - \TYPE{headingThree: #1}}, - headingFour = {% - \TYPE{headingFour: #1}}, - headingFive = {% - \TYPE{headingFive: #1}}, - headingSix = {% - \TYPE{headingSix: #1}}, - horizontalRule = {% - \TYPE{horizontalRule}}, - footnote = {% - \TYPE{footnote: #1}}, - cite = {% - \CITATIONS{#1}}, - textCite = {% - \TEXTCITATIONS{#1}}, - table = {% - \TABLE{#1}{#2}{#3}} -} diff --git a/macros/generic/markdown/tests/support/plain-setup.tex b/macros/generic/markdown/tests/support/plain-setup.tex deleted file mode 100644 index 1c163781e7..0000000000 --- a/macros/generic/markdown/tests/support/plain-setup.tex +++ /dev/null @@ -1,142 +0,0 @@ -\def\markdownRendererInterblockSeparator#1{% - \TYPE{interblockSeparator}}% -\def\markdownRendererLineBreak#1{% - \TYPE{lineBreak}}% -\def\markdownRendererEllipsis#1{% - \TYPE{ellipsis}}% -\def\markdownRendererNbsp#1{% - \TYPE{nbsp}}% -\def\markdownRendererLeftBrace#1{% - \TYPE{leftBrace}}% -\def\markdownRendererRightBrace#1{% - \TYPE{rightBrace}}% -\def\markdownRendererDollarSign#1{% - \TYPE{dollarSign}}% -\def\markdownRendererPercentSign#1{% - \TYPE{percentSign}}% -\def\markdownRendererAmpersand#1{% - \TYPE{ampersand}}% -\def\markdownRendererUnderscore#1{% - \TYPE{underscore}}% -\def\markdownRendererHash#1{% - \TYPE{hash}}% -\def\markdownRendererCircumflex#1{% - \TYPE{circumflex}}% -\def\markdownRendererBackslash#1{% - \TYPE{backslash}}% -\def\markdownRendererTilde#1{% - \TYPE{tilde}}% -\def\markdownRendererPipe#1{% - \TYPE{pipe}}% -\def\markdownRendererCodeSpan#1{% - \TYPE{codeSpan: #1}}% -\def\markdownRendererLink#1#2#3#4{% - \TYPE{BEGIN link}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END link}}% -\def\markdownRendererImage#1#2#3#4{% - \TYPE{BEGIN image}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END image}}% -\def\markdownRendererContentBlock#1#2#3#4{% - \TYPE{BEGIN contentBlock}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlock}}% -\def\markdownRendererContentBlockOnlineImage#1#2#3#4{% - \TYPE{BEGIN contentBlockOnlineImage}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlockOnlineImage}}% -\def\markdownRendererContentBlockCode#1#2#3#4#5{% - \TYPE{BEGIN contentBlockCode}% - \TYPE{- suffix: #1}% - \TYPE{- language: #2}% - \TYPE{- URI: #3}% - \TYPE{- title: #5}% - \TYPE{END contentBlockCode}}% -\def\markdownRendererUlBegin{% - \TYPE{ulBegin}}% -\def\markdownRendererUlBeginTight{% - \TYPE{ulBeginTight}}% -\def\markdownRendererUlItem{% - \TYPE{ulItem}}% -\def\markdownRendererUlItemEnd{% - \TYPE{ulItemEnd}}% -\def\markdownRendererUlEnd{% - \TYPE{ulEnd}}% -\def\markdownRendererUlEndTight{% - \TYPE{ulEndTight}}% -\def\markdownRendererOlBegin{% - \TYPE{olBegin}}% -\def\markdownRendererOlBeginTight{% - \TYPE{olBeginTight}}% -\def\markdownRendererOlItem{% - \TYPE{olItem}}% -\def\markdownRendererOlItemEnd{% - \TYPE{olItemEnd}}% -\def\markdownRendererOlItemWithNumber#1{% - \TYPE{olItemWithNumber: #1}}% -\def\markdownRendererOlEnd{% - \TYPE{olEnd}}% -\def\markdownRendererOlEndTight{% - \TYPE{olEndTight}}% -\def\markdownRendererDlBegin{% - \TYPE{dlBegin}}% -\def\markdownRendererDlBeginTight{% - \TYPE{dlBeginTight}}% -\def\markdownRendererDlItem#1{% - \TYPE{dlItem: #1}}% -\def\markdownRendererDlItemEnd{% - \TYPE{dlItemEnd}}% -\def\markdownRendererDlDefinitionBegin{% - \TYPE{dlDefinitionBegin}}% -\def\markdownRendererDlDefinitionEnd{% - \TYPE{dlDefinitionEnd}}% -\def\markdownRendererDlEnd{% - \TYPE{dlEnd}}% -\def\markdownRendererDlEndTight{% - \TYPE{dlEndTight}}% -\def\markdownRendererEmphasis#1{% - \TYPE{emphasis: #1}}% -\def\markdownRendererStrongEmphasis#1{% - \TYPE{strongEmphasis: #1}}% -\def\markdownRendererBlockQuoteBegin{% - \TYPE{blockQuoteBegin}}% -\def\markdownRendererBlockQuoteEnd{% - \TYPE{blockQuoteEnd}}% -\def\markdownRendererInputVerbatim#1{% - \TYPE{inputVerbatim: #1}}% -\def\markdownRendererInputFencedCode#1#2{% - \TYPE{BEGIN fencedCode}% - \TYPE{- src: #1}% - \TYPE{- infostring: #2}% - \TYPE{END fencedCode}}% -\def\markdownRendererHeadingOne#1{% - \TYPE{headingOne: #1}}% -\def\markdownRendererHeadingTwo#1{% - \TYPE{headingTwo: #1}}% -\def\markdownRendererHeadingThree#1{% - \TYPE{headingThree: #1}}% -\def\markdownRendererHeadingFour#1{% - \TYPE{headingFour: #1}}% -\def\markdownRendererHeadingFive#1{% - \TYPE{headingFive: #1}}% -\def\markdownRendererHeadingSix#1{% - \TYPE{headingSix: #1}}% -\def\markdownRendererHorizontalRule{% - \TYPE{horizontalRule}}% -\def\markdownRendererFootnote#1{% - \TYPE{footnote: #1}}% -\def\markdownRendererCite#1{% - \CITATIONS{#1}}% -\def\markdownRendererTextCite#1{% - \TEXTCITATIONS{#1}}% -\def\markdownRendererTable#1#2#3{% - \TABLE{#1}{#2}{#3}}% diff --git a/macros/generic/markdown/tests/support/setup.tex b/macros/generic/markdown/tests/support/setup.tex deleted file mode 100644 index 60a943d2ac..0000000000 --- a/macros/generic/markdown/tests/support/setup.tex +++ /dev/null @@ -1,79 +0,0 @@ -\long\def\TYPE#1{% - \begingroup - \long\def\TYPE##1{(##1)}% - \immediate\write128{TEST INPUT BEGIN}% - \immediate\write128{#1}% - \immediate\write128{TEST INPUT END}% - \endgroup}% -\def\GOBBLE#1{}% - -% Table parsing -\newcount\ROWCOUNTER -\newcount\COLCOUNTER - -\def\DOROW#1{% - \COLCOUNTER=1% - \DOCOL#1 - \advance\ROWCOUNTER by 1\relax - \ifnum\ROWCOUNTER>\ROWTOTAL\relax - \TYPE{END table}% - \expandafter\GOBBLE - \fi\DOROW}% -\def\DOCOL#1{% - \ifnum\ROWCOUNTER=0 - \TYPE{- alignment of column \the\COLCOUNTER: #1}% - \else - \TYPE{- row \the\ROWCOUNTER, column \the\COLCOUNTER: #1}% - \fi - \advance\COLCOUNTER by 1\relax - \ifnum\COLCOUNTER>\COLTOTAL\relax - \expandafter\GOBBLE - \fi\DOCOL}% -\def\TABLE#1#2#3{% - \ROWCOUNTER=0% - \def\ROWTOTAL{#2}% - \def\COLTOTAL{#3}% - \TYPE{BEGIN table (#2 rows, #3 columns)}% - \TYPE{- caption: #1}% - \DOROW}% - -% Citations parsing -\newcount\CITATIONSCOUNTER - -%% Regular citations -\def\DOCITATIONS#1#2#3#4{% - \advance\CITATIONSCOUNTER by 1\relax - \CITE{#1}{#2}{#3}{#4}% - \ifnum\CITATIONSCOUNTER>\CITATIONSTOTAL\relax - \expandafter\GOBBLE - \fi\DOCITATIONS}% -\def\CITE#1#2#3#4{% - \TYPE{BEGIN cite}% - \TYPE{- suppressAuthor: \if#1+false\else true\fi}% - \TYPE{- prenote: #2}% - \TYPE{- postnote: #3}% - \TYPE{- name: #4}% - \TYPE{END cite}}% -\def\CITATIONS#1{% - \CITATIONSCOUNTER=1% - \def\CITATIONSTOTAL{#1}% - \DOCITATIONS}% - -%% Text citations -\def\DOTEXTCITATIONS#1#2#3#4{% - \advance\CITATIONSCOUNTER by 1\relax - \TEXTCITE{#1}{#2}{#3}{#4}% - \ifnum\CITATIONSCOUNTER>\CITATIONSTOTAL\relax - \expandafter\GOBBLE - \fi\DOTEXTCITATIONS}% -\def\TEXTCITE#1#2#3#4{% - \TYPE{BEGIN textCite}% - \TYPE{- suppressAuthor: \if#1+false\else true\fi}% - \TYPE{- prenote: #2}% - \TYPE{- postnote: #3}% - \TYPE{- name: #4}% - \TYPE{END textCite}}% -\def\TEXTCITATIONS#1{% - \CITATIONSCOUNTER=1% - \def\CITATIONSTOTAL{#1}% - \DOTEXTCITATIONS}% diff --git a/macros/generic/markdown/tests/templates/README.md b/macros/generic/markdown/tests/templates/README.md deleted file mode 100644 index f56802cf7b..0000000000 --- a/macros/generic/markdown/tests/templates/README.md +++ /dev/null @@ -1,20 +0,0 @@ -This directory contains subdirectories, which correspond to individual TeX -formats. These subdirectories contain TeX source code templates, which -can be recognized by the `.tex.m4` suffix, and a file named `COMMANDS.m4`. - -The TeX source code templates are documents that will be typeset as a part of -every test. Before being typeset, the TeX source code templates will be -pre-processed using the m4 macro preprocessor with the following macro -definitions: - - 1. `TEST_SETUP_FILENAME` corresponds to the name of the file containing the - test setup TeX source code. - 2. `TEST_INPUT_FILENAME` corresponds to the name of the file containing the - test markdown source code. - -The `COMMANDS.m4` file contains a newline-separated list of commands that will -be used to typeset the pre-processed TeX source code templates. Before use, -the commands will preprocessed with the following macro definitions: - - 1. `TEST_FILENAME` corresponds to the name of the pre-processed TeX source - code template that is being typeset. diff --git a/macros/generic/markdown/tests/templates/context/COMMANDS.m4 b/macros/generic/markdown/tests/templates/context/COMMANDS.m4 deleted file mode 100644 index d427cd3513..0000000000 --- a/macros/generic/markdown/tests/templates/context/COMMANDS.m4 +++ /dev/null @@ -1,2 +0,0 @@ -texexec --passon="--shell-escape --8bit --interaction=nonstopmode" TEST_FILENAME -context --nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/context/README.md b/macros/generic/markdown/tests/templates/context/README.md deleted file mode 100644 index 5acb21c88f..0000000000 --- a/macros/generic/markdown/tests/templates/context/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains TeX source code templates for the ConTeXt Mark II and -ConteXt Mark IV formats. diff --git a/macros/generic/markdown/tests/templates/context/input.tex.m4 b/macros/generic/markdown/tests/templates/context/input.tex.m4 deleted file mode 100644 index 527b73cf9f..0000000000 --- a/macros/generic/markdown/tests/templates/context/input.tex.m4 +++ /dev/null @@ -1,11 +0,0 @@ -% Load the package. -\usemodule[t][markdown] -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\starttext - \markdownInput{TEST_INPUT_FILENAME}% -\stoptext diff --git a/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 deleted file mode 100644 index 6d19154972..0000000000 --- a/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 +++ /dev/null @@ -1,13 +0,0 @@ -% Load the package. -\usemodule[t][markdown] -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\starttext - \startmarkdown -undivert(TEST_INPUT_FILENAME)dnl - \stopmarkdown -\stoptext diff --git a/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 b/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 deleted file mode 100644 index 767145adc5..0000000000 --- a/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 +++ /dev/null @@ -1,3 +0,0 @@ -pdflatex --shell-escape --interaction=nonstopmode TEST_FILENAME -xelatex --shell-escape --8bit --interaction=nonstopmode TEST_FILENAME -lualatex --interaction=nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/latex/README.md b/macros/generic/markdown/tests/templates/latex/README.md deleted file mode 100644 index e62b4a40fa..0000000000 --- a/macros/generic/markdown/tests/templates/latex/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains TeX source code templates for the LaTeX format. diff --git a/macros/generic/markdown/tests/templates/latex/input.tex.m4 b/macros/generic/markdown/tests/templates/latex/input.tex.m4 deleted file mode 100644 index 324f4e7bf1..0000000000 --- a/macros/generic/markdown/tests/templates/latex/input.tex.m4 +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\expandafter\markdownInput\expandafter[\LATEXOPTIONS]{TEST_INPUT_FILENAME}% -\end{document} diff --git a/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 b/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 deleted file mode 100644 index 5f1434869f..0000000000 --- a/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\let\ea\expandafter -\ea\begin\ea{\ea m\ea a\ea r\ea k\ea d\ea o\ea w\ea n\ea *\ea}\ea{\LATEXOPTIONS} -undivert(TEST_INPUT_FILENAME)dnl -\end{markdown*} -\end{document} diff --git a/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 deleted file mode 100644 index 737d49def7..0000000000 --- a/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -\expandafter\markdownSetup\expandafter{\LATEXOPTIONS} -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\begin{markdown} -undivert(TEST_INPUT_FILENAME)dnl -\end{markdown} -\end{document} diff --git a/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 b/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 deleted file mode 100644 index 50745b8a63..0000000000 --- a/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 +++ /dev/null @@ -1,3 +0,0 @@ -pdftex --shell-escape --interaction=nonstopmode TEST_FILENAME -xetex --shell-escape --8bit --interaction=nonstopmode TEST_FILENAME -luatex --interaction=nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/plain/README.md b/macros/generic/markdown/tests/templates/plain/README.md deleted file mode 100644 index 779102ed26..0000000000 --- a/macros/generic/markdown/tests/templates/plain/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains TeX source code templates for the plain TeX format. diff --git a/macros/generic/markdown/tests/templates/plain/input.tex.m4 b/macros/generic/markdown/tests/templates/plain/input.tex.m4 deleted file mode 100644 index b2ef1b560d..0000000000 --- a/macros/generic/markdown/tests/templates/plain/input.tex.m4 +++ /dev/null @@ -1,10 +0,0 @@ -% Load the package. -\input markdown\relax -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\markdownInput{TEST_INPUT_FILENAME}% -\bye diff --git a/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 deleted file mode 100644 index fd87725c06..0000000000 --- a/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 +++ /dev/null @@ -1,12 +0,0 @@ -% Load the package. -\input markdown\relax -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\markdownBegin -undivert(TEST_INPUT_FILENAME)dnl -\markdownEnd -\bye diff --git a/macros/generic/markdown/tests/test.sh b/macros/generic/markdown/tests/test.sh deleted file mode 100755 index c32b8274a2..0000000000 --- a/macros/generic/markdown/tests/test.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Run a test for each testfile passed as an argument. If a testfile does not -# contain the expected test result, generate one. -set -e -BUILDDIR=`mktemp -d` -trap 'rm -rf $BUILDDIR' INT TERM -for TESTFILE; do - printf 'Testfile %s\n' $TESTFILE - for FORMAT in templates/*/; do - printf ' Format %s\n' $FORMAT - for TEMPLATE in ${FORMAT}*.tex.m4; do - printf ' Template %s\n' $TEMPLATE - m4 -DTEST_FILENAME=test.tex <$FORMAT/COMMANDS.m4 | - (while read COMMAND; do - printf ' Command %s\n' "$COMMAND" - - # Set up the testing directory. - cp support/* $TESTFILE $BUILDDIR - cd $BUILDDIR - sed -r '/^\s*<<<\s*$/{x;q}' \ - <${TESTFILE##*/} >test-setup.tex - sed -rn '/^\s*<<<\s*$/,/^\s*>>>\s*$/{/^\s*(<<<|>>>)\s*$/!p}' \ - <${TESTFILE##*/} >test-input.md - sed -n '/^\s*>>>\s*$/,${/^\s*>>>\s*$/!p}' \ - <${TESTFILE##*/} >test-expected.log - m4 -DTEST_SETUP_FILENAME=test-setup.tex \ - -DTEST_INPUT_FILENAME=test-input.md <"$OLDPWD"/$TEMPLATE >test.tex - - # Run the test, filter the output and concatenate adjacent lines. - eval $COMMAND >/dev/null 2>&1 || - { cat test.markdown.err 1>&2 2>/dev/null; exit 1; } - sed -nr '/^\s*TEST INPUT BEGIN\s*$/,/^\s*TEST INPUT END\s*$/{ - /^\s*TEST INPUT (BEGIN|END)\s*$/!H - /^\s*TEST INPUT END\s*$/{s/.*//;x;s/\n//g;p} - }' test-actual.log - - # If the testfile does not contain an expected outcome, use the current - # outcome and update the testfile. - if ! grep -q '^\s*>>>\s*$' <${TESTFILE##*/}; then - cp test-actual.log test-expected.log - (cat ${TESTFILE##*/} && printf '>>>\n' - cat test-expected.log) >"$OLDPWD"/$TESTFILE - printf ' Added the expected test outcome to the testfile.\n' - fi - - # Compare the expected outcome against the actual outcome. - diff -c $BUILDDIR/test-expected.log $BUILDDIR/test-actual.log # || -# (sed -n '1,/^\s*>>>\s*$/p' <${TESTFILE##*/} && -# cat test-actual.log) >"$OLDPWD"/$TESTFILE - - # Clean up the testing directory. - cd "$OLDPWD" - find $BUILDDIR -mindepth 1 -exec rm -rf {} + # && break - done) # && break - done # && break - done -done -rm -rf $BUILDDIR diff --git a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md b/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md deleted file mode 100644 index 7ae2191762..0000000000 --- a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were taken from the -CommonMark project specification. diff --git a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test b/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test deleted file mode 100644 index 98cb973956..0000000000 --- a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test +++ /dev/null @@ -1,315 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -Here is a simple example with backticks: - -``` -< - > -``` - -With tildes: - -~~~ -< - > -~~~ - -The closing code fence must use the same character as the opening fence: - -``` -aaa -~~~ -``` - -~~~ -aaa -``` -~~~ - -The closing code fence must be at least as long as the opening fence: - -```` -aaa -``` -`````` - -~~~~ -aaa -~~~ -~~~~ - -Unclosed code blocks are closed by the end of the document (or the enclosing block quote or list item): - -> ``` -> aaa - -bbb - -A code block can have all empty lines as its content - -``` - - -``` - -A code block can be empty: -``` -``` - -Fences can be indented. If the opening fence is indented, content lines will have equivalent opening indentation removed, if present: - ``` - aaa -aaa -``` - - ``` -aaa - aaa -aaa - ``` - - ``` - aaa - aaa - aaa - ``` - -Four spaces indentation produces an indented code block: - - ``` - aaa - ``` - -Closing fences may be indented by 0-3 spaces, and their indentation need not match that of the opening fence: - -``` -aaa - ``` - - ``` -aaa - ``` - -This is not a closing fence, because it is indented 4 spaces: - -``` -aaa - ``` -``` - -Code fences (opening and closing) cannot contain internal spaces: - -``` ``` -aaa - -``` -aaa -``` ``` -``` - -~~~~~~ -aaa -~~~ ~~ -~~~~~~ - -foo -``` -bar -``` -baz - -Other blocks can also occur before and after fenced code blocks without an intervening blank line: - -foo ---- -~~~ -bar -~~~ -# baz - -An info string can be provided after the opening code fence. Opening and closing spaces will be stripped, and the first word, prefixed with language-, is used as the value for the class attribute of the code element within the enclosing pre element. - -```ruby -def foo(x) - return 3 -end -``` - -~~~~ ruby startline=3 $%@#$ -def foo(x) - return 3 -end -~~~~~~~ - -````; -```` - -Info strings for backtick code blocks cannot contain backticks: - -``` aa ``` -foo - -Closing code fences cannot have info strings: - -``` -``` aaa -``` - -Unclosed code blocks are closed by the end of the document (or the enclosing block quote or list item): - -````` - -``` -aaa ->>> -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/40aeb3c06faa194425865c43b0818cf3.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/40aeb3c06faa194425865c43b0818cf3.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/162c3a1e89dc98bb7c0e223462144172.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/a109a04c348f12d1fc1e55dc6cd3153d.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/a109a04c348f12d1fc1e55dc6cd3153d.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/162c3a1e89dc98bb7c0e223462144172.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -blockQuoteBegin -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -blockQuoteEnd -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/e1c06d85ae7b8b032bef47e42e4c08f9.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/d41d8cd98f00b204e9800998ecf8427e.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/4b44563cc9886576b6589dd730cbc397.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/f084b3953e4a48b5425a11074ae99e3c.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/8a70ce8c35179c24412d9271f69da1fd.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/04338967b57abaf5489d4de2ca3d5d75.verbatim -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5fcf96d052f67d3d8a648cb90cc39193.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -codeSpan: -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/baeea0ffee491579d17a52cb85675edf.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/42935760431e4eb4ddd8a8bcc5e54a23.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -interblockSeparator -headingTwo: foo -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: -END fencedCode -interblockSeparator -headingOne: baz -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/22bc2a65d877cb1e2a14deece6005742.verbatim -- infostring: ruby -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/22bc2a65d877cb1e2a14deece6005742.verbatim -- infostring: ruby startline=3 (dollarSign)(percentSign)@(hash)(dollarSign) -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/d41d8cd98f00b204e9800998ecf8427e.verbatim -- infostring: ; -END fencedCode -interblockSeparator -interblockSeparator -codeSpan: aa -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/e1ff8c7886d18f6b5499b096584e13bf.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/ab4c9bee663124ac417409b22e2af252.verbatim -- infostring: -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md deleted file mode 100644 index 1a8fd15a48..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/Markdown_1.0.3/` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test deleted file mode 100644 index da079fc68f..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test +++ /dev/null @@ -1,36 +0,0 @@ -<<< -Here's a [link] [1] with an ampersand in the URL. - -Here's a link with an amersand in the link text: [AT&T] [2]. - -Here's an inline [link](/script?foo=1&bar=2). - -Here's an inline [link](). - - -[1]: http://example.com/?foo=1&bar=2 -[2]: http://att.com/ "AT&T" ->>> -BEGIN link -- label: link -- URI: http://example.com/?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -BEGIN link -- label: AT(ampersand)T -- URI: http://att.com/ -- title: AT(ampersand)T -END link -interblockSeparator -BEGIN link -- label: link -- URI: /script?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -BEGIN link -- label: link -- URI: /script?foo=1(ampersand)bar=2 -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test deleted file mode 100644 index 765a85d3e2..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test +++ /dev/null @@ -1,52 +0,0 @@ -<<< -Link: . - -With an ampersand: - -* In a list? -* -* It should. - -> Blockquoted: - -Auto-links should not occur here: `` - - or here: ->>> -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -interblockSeparator -BEGIN link -- label: http://example.com/?foo=1(ampersand)bar=2 -- URI: http://example.com/?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -blockQuoteBegin -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -blockQuoteEnd -interblockSeparator -codeSpan: -interblockSeparator -inputVerbatim: ./_markdown_test/d65b41d110c17fbc771809f553258ff5.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test deleted file mode 100644 index 182a63747c..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test +++ /dev/null @@ -1,192 +0,0 @@ -<<< -These should all get escaped: - -Backslash: \\ - -Backtick: \` - -Asterisk: \* - -Underscore: \_ - -Left brace: \{ - -Right brace: \} - -Left bracket: \[ - -Right bracket: \] - -Left paren: \( - -Right paren: \) - -Greater-than: \> - -Hash: \# - -Period: \. - -Bang: \! - -Plus: \+ - -Minus: \- - - - -These should not, because they occur within a code block: - - Backslash: \\ - - Backtick: \` - - Asterisk: \* - - Underscore: \_ - - Left brace: \{ - - Right brace: \} - - Left bracket: \[ - - Right bracket: \] - - Left paren: \( - - Right paren: \) - - Greater-than: \> - - Hash: \# - - Period: \. - - Bang: \! - - Plus: \+ - - Minus: \- - - -Nor should these, which occur in code spans: - -Backslash: `\\` - -Backtick: `` \` `` - -Asterisk: `\*` - -Underscore: `\_` - -Left brace: `\{` - -Right brace: `\}` - -Left bracket: `\[` - -Right bracket: `\]` - -Left paren: `\(` - -Right paren: `\)` - -Greater-than: `\>` - -Hash: `\#` - -Period: `\.` - -Bang: `\!` - -Plus: `\+` - -Minus: `\-` - - -These should get escaped, even though they're matching pairs for -other Markdown constructs: - -\*asterisks\* - -\_underscores\_ - -\`backticks\` - -This is a code span with a literal backslash-backtick sequence: `` \` `` - -This is a tag with unescaped backticks bar. - -This is a tag with backslashes bar. ->>> -interblockSeparator -backslash -interblockSeparator -interblockSeparator -interblockSeparator -underscore -interblockSeparator -leftBrace -interblockSeparator -rightBrace -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -hash -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/127bce8785d826a9ba07a20f6ca866c9.verbatim -interblockSeparator -interblockSeparator -codeSpan: (backslash)(backslash) -interblockSeparator -codeSpan: (backslash)` -interblockSeparator -codeSpan: (backslash)* -interblockSeparator -codeSpan: (backslash)(underscore) -interblockSeparator -codeSpan: (backslash)(leftBrace) -interblockSeparator -codeSpan: (backslash)(rightBrace) -interblockSeparator -codeSpan: (backslash)[ -interblockSeparator -codeSpan: (backslash)] -interblockSeparator -codeSpan: (backslash)( -interblockSeparator -codeSpan: (backslash)) -interblockSeparator -codeSpan: (backslash)> -interblockSeparator -codeSpan: (backslash)(hash) -interblockSeparator -codeSpan: (backslash). -interblockSeparator -codeSpan: (backslash)! -interblockSeparator -codeSpan: (backslash)+ -interblockSeparator -codeSpan: (backslash)- -interblockSeparator -interblockSeparator -interblockSeparator -underscore -underscore -interblockSeparator -interblockSeparator -codeSpan: (backslash)` -interblockSeparator -codeSpan: ticks -interblockSeparator -backslash -backslash diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test deleted file mode 100644 index 1fa09a34de..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test +++ /dev/null @@ -1,21 +0,0 @@ -<<< -> Example: -> -> sub status { -> print "working"; -> } -> -> Or: -> -> sub status { -> return "working"; -> } - ->>> -blockQuoteBegin -interblockSeparator -inputVerbatim: ./_markdown_test/702e5d3a17f709c02cee3a2b5e106619.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9d7d6b4bdbb0a57a705dc70e6c7f5612.verbatim -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test deleted file mode 100644 index 5f4a0bb137..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< - code block on the first line - -Regular text. - - code block indented by spaces - -Regular Text. - - code block on the last line ->>> -inputVerbatim: ./_markdown_test/757353c94a464c718394adbe349d6771.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/84469dcb7c065e457fc00040f5c96d8f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/e0bb27efcfecc25309f165e0092a7434.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test deleted file mode 100644 index 94aab36b56..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test +++ /dev/null @@ -1,4 +0,0 @@ -<<< -Here's how you put `` `backticks` `` in a code span. ->>> -codeSpan: `backticks` diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test deleted file mode 100644 index 6c6690877d..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test +++ /dev/null @@ -1,12 +0,0 @@ -<<< -In Markdown 1.0.0 and earlier. Version -8. This line turns into a list item. -Because a hard-wrapped line in the -middle of a paragraph looked like a -list item. - -Here's one with a bullet. -* criminey. - ->>> -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test deleted file mode 100644 index e5d45d9dde..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test +++ /dev/null @@ -1,132 +0,0 @@ -<<< -Dashes: - ---- - - --- - - --- - - --- - - --- - -- - - - - - - - - - - - - - - - - - - - - - - - - -Asterisks: - -*** - - *** - - *** - - *** - - *** - -* * * - - * * * - - * * * - - * * * - - * * * - - -Underscores: - -___ - - ___ - - ___ - - ___ - - ___ - -_ _ _ - - _ _ _ - - _ _ _ - - _ _ _ - - _ _ _ - ->>> -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/6105347ebb9825ac754615ca55ff3b0c.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/162bbc959948880b7b81a0fe05afbe29.verbatim -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/2bb6aed5111ef9726bcf6eef982ff32b.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/11de6126af81e6dc22594955105d9180.verbatim -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/926225b865393c08438ddbfd89ff3d40.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/c4775559353a17841cc9cde2eae040b2.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test deleted file mode 100644 index d956be1ede..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test +++ /dev/null @@ -1,50 +0,0 @@ -<<< -Just a [URL](/url/). - -[URL and title](/url/ "title"). - -[URL and title](/url/ "title preceded by two spaces"). - -[URL and title](/url/ "title preceded by a tab"). - -[URL and title](/url/ "title has spaces afterward" ). - - -[Empty](). - ->>> -BEGIN link -- label: URL -- URI: /url/ -- title: -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title preceded by two spaces -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title preceded by a tab -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title has spaces afterward -END link -interblockSeparator -BEGIN link -- label: Empty -- URI: -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test deleted file mode 100644 index 793ea37dca..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test +++ /dev/null @@ -1,176 +0,0 @@ -<<< -Foo [bar] [1]. - -Foo [bar][1]. - -Foo [bar] -[1]. - -[1]: /url/ "Title" - - -With [embedded [brackets]] [b]. - - -Indented [once][]. - -Indented [twice][]. - -Indented [thrice][]. - -Indented [four][] times. - - [once]: /url - - [twice]: /url - - [thrice]: /url - - [four]: /url - - -[b]: /url/ - -* * * - -[this] [this] should work - -So should [this][this]. - -And [this] []. - -And [this][]. - -And [this]. - -But not [that] []. - -Nor [that][]. - -Nor [that]. - -[Something in brackets like [this][] should work] - -[Same with [this].] - -In this case, [this](/somethingelse/) points to something else. - -Backslashing should suppress \[this] and [this\]. - -[this]: foo - - -* * * - -Here's one where the [link -breaks] across lines. - -[link breaks]: /url/ - ->>> -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: embedded [brackets] -- URI: /url/ -- title: -END link -interblockSeparator -BEGIN link -- label: once -- URI: /url -- title: -END link -interblockSeparator -BEGIN link -- label: twice -- URI: /url -- title: -END link -interblockSeparator -BEGIN link -- label: thrice -- URI: /url -- title: -END link -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b0cba64633d2a9eac28ca9e3fa500018.verbatim -interblockSeparator -horizontalRule -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: /somethingelse/ -- title: -END link -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -BEGIN link -- label: link breaks -- URI: /url/ -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test deleted file mode 100644 index 24b189d7c9..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test +++ /dev/null @@ -1,42 +0,0 @@ -<<< -This is the [simple case]. - -[simple case]: /simple - - - -This one has a [line -break]. - -[line break]: /foo - - -[this] [that] and the [other] - -[this]: /this -[that]: /that -[other]: /other - ->>> -BEGIN link -- label: simple case -- URI: /simple -- title: -END link -interblockSeparator -BEGIN link -- label: line break -- URI: /foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: /that -- title: -END link -BEGIN link -- label: other -- URI: /other -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test deleted file mode 100644 index cd44028f8f..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test +++ /dev/null @@ -1,21 +0,0 @@ -<<< -Foo [bar][]. - -Foo [bar](/url/ "Title with "quotes" inside"). - - - [bar]: /url/ "Title with "quotes" inside" - - ->>> -BEGIN link -- label: bar -- URI: /url/ -- title: Title with "quotes" inside -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title with "quotes" inside -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test deleted file mode 100644 index 4ce4b68028..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test +++ /dev/null @@ -1,436 +0,0 @@ -<<< -Markdown: Basics -================ - -Getting the Gist of Markdown's Formatting Syntax ------------------------------------------------- - -This page offers a brief overview of what it's like to use Markdown. -The [syntax page] [s] provides complete, detailed documentation for -every feature, but Markdown should be very easy to pick up simply by -looking at a few examples of it in action. The examples on this page -are written in a before/after style, showing example syntax and the -HTML output produced by Markdown. - -It's also helpful to simply try Markdown out; the [Dingus] [d] is a -web application that allows you type your own Markdown-formatted text -and translate it to XHTML. - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL] [src]. - - [s]: /projects/markdown/syntax "Markdown Syntax" - [d]: /projects/markdown/dingus "Markdown Dingus" - [src]: /projects/markdown/basics.text - - -## Paragraphs, Headers, Blockquotes ## - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -Markdown offers two styles of headers: *Setext* and *atx*. -Setext-style headers for `

` and `

` are created by -"underlining" with equal signs (`=`) and hyphens (`-`), respectively. -To create an atx-style header, you put 1-6 hash marks (`#`) at the -beginning of the line -- the number of hashes equals the resulting -HTML header level. - -Blockquotes are indicated using email-style '`>`' angle brackets. - -Markdown: - - A First Level Header - ==================== - - A Second Level Header - --------------------- - - Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph. - - The quick brown fox jumped over the lazy - dog's back. - - ### Header 3 - - > This is a blockquote. - > - > This is the second paragraph in the blockquote. - > - > ## This is an H2 in a blockquote - - -Output: - -

A First Level Header

- -

A Second Level Header

- -

Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph.

- -

The quick brown fox jumped over the lazy - dog's back.

- -

Header 3

- -
-

This is a blockquote.

- -

This is the second paragraph in the blockquote.

- -

This is an H2 in a blockquote

-
- - - -### Phrase Emphasis ### - -Markdown uses asterisks and underscores to indicate spans of emphasis. - -Markdown: - - Some of these words *are emphasized*. - Some of these words _are emphasized also_. - - Use two asterisks for **strong emphasis**. - Or, if you prefer, __use two underscores instead__. - -Output: - -

Some of these words are emphasized. - Some of these words are emphasized also.

- -

Use two asterisks for strong emphasis. - Or, if you prefer, use two underscores instead.

- - - -## Lists ## - -Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, -`+`, and `-`) as list markers. These three markers are -interchangable; this: - - * Candy. - * Gum. - * Booze. - -this: - - + Candy. - + Gum. - + Booze. - -and this: - - - Candy. - - Gum. - - Booze. - -all produce the same output: - -
    -
  • Candy.
  • -
  • Gum.
  • -
  • Booze.
  • -
- -Ordered (numbered) lists use regular numbers, followed by periods, as -list markers: - - 1. Red - 2. Green - 3. Blue - -Output: - -
    -
  1. Red
  2. -
  3. Green
  4. -
  5. Blue
  6. -
- -If you put blank lines between items, you'll get `

` tags for the -list item text. You can create multi-paragraph list items by indenting -the paragraphs by 4 spaces or 1 tab: - - * A list item. - - With multiple paragraphs. - - * Another item in the list. - -Output: - -

    -
  • A list item.

    -

    With multiple paragraphs.

  • -
  • Another item in the list.

  • -
- - - -### Links ### - -Markdown supports two styles for creating links: *inline* and -*reference*. With both styles, you use square brackets to delimit the -text you want to turn into a link. - -Inline-style links use parentheses immediately after the link text. -For example: - - This is an [example link](http://example.com/). - -Output: - -

This is an - example link.

- -Optionally, you may include a title attribute in the parentheses: - - This is an [example link](http://example.com/ "With a Title"). - -Output: - -

This is an - example link.

- -Reference-style links allow you to refer to your links by names, which -you define elsewhere in your document: - - I get 10 times more traffic from [Google][1] than from - [Yahoo][2] or [MSN][3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Output: - -

I get 10 times more traffic from Google than from Yahoo or MSN.

- -The title attribute is optional. Link names may contain letters, -numbers and spaces, but are *not* case sensitive: - - I start my morning with a cup of coffee and - [The New York Times][NY Times]. - - [ny times]: http://www.nytimes.com/ - -Output: - -

I start my morning with a cup of coffee and - The New York Times.

- - -### Images ### - -Image syntax is very much like link syntax. - -Inline (titles are optional): - - ![alt text](/path/to/img.jpg "Title") - -Reference-style: - - ![alt text][id] - - [id]: /path/to/img.jpg "Title" - -Both of the above examples produce the same output: - - alt text - - - -### Code ### - -In a regular paragraph, you can create code span by wrapping text in -backtick quotes. Any ampersands (`&`) and angle brackets (`<` or -`>`) will automatically be translated into HTML entities. This makes -it easy to use Markdown to write about HTML example code: - - I strongly recommend against using any `` tags. - -Output: - -

I strongly recommend against using any - <blink> tags.

- - -To specify an entire block of pre-formatted code, indent every line of -the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`, -and `>` characters will be escaped automatically. - -Markdown: - - If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes: - -
-

For example.

-
- -Output: - -

If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes:

- -
<blockquote>
-        <p>For example.</p>
-    </blockquote>
-    
- ->>> -headingOne: Markdown: Basics -interblockSeparator -headingTwo: Getting the Gist of Markdown's Formatting Syntax -interblockSeparator -BEGIN link -- label: syntax page -- URI: /projects/markdown/syntax -- title: Markdown Syntax -END link -interblockSeparator -BEGIN link -- label: Dingus -- URI: /projects/markdown/dingus -- title: Markdown Dingus -END link -interblockSeparator -strongEmphasis: Note: -BEGIN link -- label: see the source for it by adding '.text' to the URL -- URI: /projects/markdown/basics.text -- title: -END link -interblockSeparator -headingTwo: Paragraphs, Headers, Blockquotes -interblockSeparator -interblockSeparator -emphasis: Setext -emphasis: atx -codeSpan:

-codeSpan:

-codeSpan: = -codeSpan: - -codeSpan: (hash) -interblockSeparator -codeSpan: > -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/5ebdf3631f626dba5ee92ee773e97a8f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9347d3cfacf328e3d73c4fe1b4f76524.verbatim -interblockSeparator -headingThree: Phrase Emphasis -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/495d205391f56da33d355c43c81daa64.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/60195f0a7c825159eb9156947e6fb71b.verbatim -interblockSeparator -headingTwo: Lists -interblockSeparator -codeSpan: * -codeSpan: + -codeSpan: - -interblockSeparator -inputVerbatim: ./_markdown_test/30a921ea3110056dc221ed257b3c883b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/674e077aa8994de8bf541093168d2e29.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7ae61eceff910c380dbe3ee9af7b6c4a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b84dd49773de7abaeec71bfa32680045.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/2a1d33d66339f281e4a171d1eb084b07.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/430a75a1628ba89cc2b1005bb1e5d932.verbatim -interblockSeparator -codeSpan:

-interblockSeparator -inputVerbatim: ./_markdown_test/e6108616b0422dd64f485971e61ac69c.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0bd4d7d78b1cd0e46e78a522f613a6a3.verbatim -interblockSeparator -headingThree: Links -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/20cfebed5272ba2f01c1aee798509f18.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/46124210265b51c9d470c0c70a598037.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d56162c63107aadd63a5b6ca05f491e9.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c62653fbfcf155bfe2912f066f242885.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b996f30ba094126a05b4797a048ff2d2.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0b1519420e84d1c754b52b25170d7213.verbatim -interblockSeparator -emphasis: not -interblockSeparator -inputVerbatim: ./_markdown_test/15e1c1abc08ec60d9181f9578c6cf172.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/440c1e901154984bf647fc152cb0971b.verbatim -interblockSeparator -headingThree: Images -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/602bb0e325271b2b4dce9175eaed15b1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/e5b369214c819b9d9b476b7bb1f5aa53.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/885cbee5cc0e1fac9ce25c3a9d30034e.verbatim -interblockSeparator -headingThree: Code -interblockSeparator -codeSpan: (ampersand) -codeSpan: < -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/fbcaafb68ad6405619da77e413788d6e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/cfc57312a789ed7b4e14f3f56c88381a.verbatim -interblockSeparator -codeSpan: (ampersand) -codeSpan: < -codeSpan: > -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/fe59314852dc8de3165464ab451f44a0.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3f58f44c2de7257eb42c24e7aee621c5.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test deleted file mode 100644 index 2942add07e..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test +++ /dev/null @@ -1,1518 +0,0 @@ -<<< -Markdown: Syntax -================ - -* [Overview](#overview) - * [Philosophy](#philosophy) - * [Inline HTML](#html) - * [Automatic Escaping for Special Characters](#autoescape) -* [Block Elements](#block) - * [Paragraphs and Line Breaks](#p) - * [Headers](#header) - * [Blockquotes](#blockquote) - * [Lists](#list) - * [Code Blocks](#precode) - * [Horizontal Rules](#hr) -* [Span Elements](#span) - * [Links](#link) - * [Emphasis](#em) - * [Code](#code) - * [Images](#img) -* [Miscellaneous](#misc) - * [Backslash Escapes](#backslash) - * [Automatic Links](#autolink) - - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL][src]. - - [src]: /projects/markdown/syntax.text - -* * * - -## Overview - -### Philosophy - -Markdown is intended to be as easy-to-read and easy-to-write as is feasible. - -Readability, however, is emphasized above all else. A Markdown-formatted -document should be publishable as-is, as plain text, without looking -like it's been marked up with tags or formatting instructions. While -Markdown's syntax has been influenced by several existing text-to-HTML -filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4], -[Grutatext] [5], and [EtText] [6] -- the single biggest source of -inspiration for Markdown's syntax is the format of plain text email. - - [1]: http://docutils.sourceforge.net/mirror/setext.html - [2]: http://www.aaronsw.com/2002/atx/ - [3]: http://textism.com/tools/textile/ - [4]: http://docutils.sourceforge.net/rst.html - [5]: http://www.triptico.com/software/grutatxt.html - [6]: http://ettext.taint.org/doc/ - -To this end, Markdown's syntax is comprised entirely of punctuation -characters, which punctuation characters have been carefully chosen so -as to look like what they mean. E.g., asterisks around a word actually -look like \*emphasis\*. Markdown lists look like, well, lists. Even -blockquotes look like quoted passages of text, assuming you've ever -used email. - - - -### Inline HTML - -Markdown's syntax is intended for one purpose: to be used as a -format for *writing* for the web. - -Markdown is not a replacement for HTML, or even close to it. Its -syntax is very small, corresponding only to a very small subset of -HTML tags. The idea is *not* to create a syntax that makes it easier -to insert HTML tags. In my opinion, HTML tags are already easy to -insert. The idea for Markdown is to make it easy to read, write, and -edit prose. HTML is a *publishing* format; Markdown is a *writing* -format. Thus, Markdown's formatting syntax only addresses issues that -can be conveyed in plain text. - -For any markup that is not covered by Markdown's syntax, you simply -use HTML itself. There's no need to preface it or delimit it to -indicate that you're switching from Markdown to HTML; you just use -the tags. - -The only restrictions are that block-level HTML elements -- e.g. `

`, -``, `
`, `

`, etc. -- must be separated from surrounding -content by blank lines, and the start and end tags of the block should -not be indented with tabs or spaces. Markdown is smart enough not -to add extra (unwanted) `

` tags around HTML block-level tags. - -For example, to add an HTML table to a Markdown article: - - This is a regular paragraph. - -

- - - -
Foo
- - This is another regular paragraph. - -Note that Markdown formatting syntax is not processed within block-level -HTML tags. E.g., you can't use Markdown-style `*emphasis*` inside an -HTML block. - -Span-level HTML tags -- e.g. ``, ``, or `` -- can be -used anywhere in a Markdown paragraph, list item, or header. If you -want, you can even use HTML tags instead of Markdown formatting; e.g. if -you'd prefer to use HTML `` or `` tags instead of Markdown's -link or image syntax, go right ahead. - -Unlike block-level HTML tags, Markdown syntax *is* processed within -span-level tags. - - -### Automatic Escaping for Special Characters - -In HTML, there are two characters that demand special treatment: `<` -and `&`. Left angle brackets are used to start tags; ampersands are -used to denote HTML entities. If you want to use them as literal -characters, you must escape them as entities, e.g. `<`, and -`&`. - -Ampersands in particular are bedeviling for web writers. If you want to -write about 'AT&T', you need to write '`AT&T`'. You even need to -escape ampersands within URLs. Thus, if you want to link to: - - http://images.google.com/images?num=30&q=larry+bird - -you need to encode the URL as: - - http://images.google.com/images?num=30&q=larry+bird - -in your anchor tag `href` attribute. Needless to say, this is easy to -forget, and is probably the single most common source of HTML validation -errors in otherwise well-marked-up web sites. - -Markdown allows you to use these characters naturally, taking care of -all the necessary escaping for you. If you use an ampersand as part of -an HTML entity, it remains unchanged; otherwise it will be translated -into `&`. - -So, if you want to include a copyright symbol in your article, you can write: - - © - -and Markdown will leave it alone. But if you write: - - AT&T - -Markdown will translate it to: - - AT&T - -Similarly, because Markdown supports [inline HTML](#html), if you use -angle brackets as delimiters for HTML tags, Markdown will treat them as -such. But if you write: - - 4 < 5 - -Markdown will translate it to: - - 4 < 5 - -However, inside Markdown code spans and blocks, angle brackets and -ampersands are *always* encoded automatically. This makes it easy to use -Markdown to write about HTML code. (As opposed to raw HTML, which is a -terrible format for writing about HTML syntax, because every single `<` -and `&` in your example code needs to be escaped.) - - -* * * - - -## Block Elements - - -### Paragraphs and Line Breaks - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing but spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -The implication of the "one or more consecutive lines of text" rule is -that Markdown supports "hard-wrapped" text paragraphs. This differs -significantly from most other text-to-HTML formatters (including Movable -Type's "Convert Line Breaks" option) which translate every line break -character in a paragraph into a `
` tag. - -When you *do* want to insert a `
` break tag using Markdown, you -end a line with two or more spaces, then type return. - -Yes, this takes a tad more effort to create a `
`, but a simplistic -"every line break is a `
`" rule wouldn't work for Markdown. -Markdown's email-style [blockquoting][bq] and multi-paragraph [list items][l] -work best -- and look better -- when you format them with hard breaks. - - [bq]: #blockquote - [l]: #list - - - -### Headers - -Markdown supports two styles of headers, [Setext] [1] and [atx] [2]. - -Setext-style headers are "underlined" using equal signs (for first-level -headers) and dashes (for second-level headers). For example: - - This is an H1 - ============= - - This is an H2 - ------------- - -Any number of underlining `=`'s or `-`'s will work. - -Atx-style headers use 1-6 hash characters at the start of the line, -corresponding to header levels 1-6. For example: - - # This is an H1 - - ## This is an H2 - - ###### This is an H6 - -Optionally, you may "close" atx-style headers. This is purely -cosmetic -- you can use this if you think it looks better. The -closing hashes don't even need to match the number of hashes -used to open the header. (The number of opening hashes -determines the header level.) : - - # This is an H1 # - - ## This is an H2 ## - - ### This is an H3 ###### - - -### Blockquotes - -Markdown uses email-style `>` characters for blockquoting. If you're -familiar with quoting passages of text in an email message, then you -know how to create a blockquote in Markdown. It looks best if you hard -wrap the text and put a `>` before every line: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - > - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - > id sem consectetuer libero luctus adipiscing. - -Markdown allows you to be lazy and only put the `>` before the first -line of a hard-wrapped paragraph: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing. - -Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by -adding additional levels of `>`: - - > This is the first level of quoting. - > - > > This is nested blockquote. - > - > Back to the first level. - -Blockquotes can contain other Markdown elements, including headers, lists, -and code blocks: - - > ## This is a header. - > - > 1. This is the first list item. - > 2. This is the second list item. - > - > Here's some example code: - > - > return shell_exec("echo $input | $markdown_script"); - -Any decent text editor should make email-style quoting easy. For -example, with BBEdit, you can make a selection and choose Increase -Quote Level from the Text menu. - - -### Lists - -Markdown supports ordered (numbered) and unordered (bulleted) lists. - -Unordered lists use asterisks, pluses, and hyphens -- interchangably --- as list markers: - - * Red - * Green - * Blue - -is equivalent to: - - + Red - + Green - + Blue - -and: - - - Red - - Green - - Blue - -Ordered lists use numbers followed by periods: - - 1. Bird - 2. McHale - 3. Parish - -It's important to note that the actual numbers you use to mark the -list have no effect on the HTML output Markdown produces. The HTML -Markdown produces from the above list is: - -
    -
  1. Bird
  2. -
  3. McHale
  4. -
  5. Parish
  6. -
- -If you instead wrote the list in Markdown like this: - - 1. Bird - 1. McHale - 1. Parish - -or even: - - 3. Bird - 1. McHale - 8. Parish - -you'd get the exact same HTML output. The point is, if you want to, -you can use ordinal numbers in your ordered Markdown lists, so that -the numbers in your source match the numbers in your published HTML. -But if you want to be lazy, you don't have to. - -If you do use lazy list numbering, however, you should still start the -list with the number 1. At some point in the future, Markdown may support -starting ordered lists at an arbitrary number. - -List markers typically start at the left margin, but may be indented by -up to three spaces. List markers must be followed by one or more spaces -or a tab. - -To make lists look nice, you can wrap items with hanging indents: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -But if you want to be lazy, you don't have to: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -If list items are separated by blank lines, Markdown will wrap the -items in `

` tags in the HTML output. For example, this input: - - * Bird - * Magic - -will turn into: - -

    -
  • Bird
  • -
  • Magic
  • -
- -But this: - - * Bird - - * Magic - -will turn into: - -
    -
  • Bird

  • -
  • Magic

  • -
- -List items may consist of multiple paragraphs. Each subsequent -paragraph in a list item must be intended by either 4 spaces -or one tab: - - 1. This is a list item with two paragraphs. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. Aliquam hendrerit - mi posuere lectus. - - Vestibulum enim wisi, viverra nec, fringilla in, laoreet - vitae, risus. Donec sit amet nisl. Aliquam semper ipsum - sit amet velit. - - 2. Suspendisse id sem consectetuer libero luctus adipiscing. - -It looks nice if you indent every line of the subsequent -paragraphs, but here again, Markdown will allow you to be -lazy: - - * This is a list item with two paragraphs. - - This is the second paragraph in the list item. You're - only required to indent the first line. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. - - * Another item in the same list. - -To put a blockquote within a list item, the blockquote's `>` -delimiters need to be indented: - - * A list item with a blockquote: - - > This is a blockquote - > inside a list item. - -To put a code block within a list item, the code block needs -to be indented *twice* -- 8 spaces or two tabs: - - * A list item with a code block: - - - - -It's worth noting that it's possible to trigger an ordered list by -accident, by writing something like this: - - 1986. What a great season. - -In other words, a *number-period-space* sequence at the beginning of a -line. To avoid this, you can backslash-escape the period: - - 1986\. What a great season. - - - -### Code Blocks - -Pre-formatted code blocks are used for writing about programming or -markup source code. Rather than forming normal paragraphs, the lines -of a code block are interpreted literally. Markdown wraps a code block -in both `
` and `` tags.
-
-To produce a code block in Markdown, simply indent every line of the
-block by at least 4 spaces or 1 tab. For example, given this input:
-
-    This is a normal paragraph:
-
-        This is a code block.
-
-Markdown will generate:
-
-    

This is a normal paragraph:

- -
This is a code block.
-    
- -One level of indentation -- 4 spaces or 1 tab -- is removed from each -line of the code block. For example, this: - - Here is an example of AppleScript: - - tell application "Foo" - beep - end tell - -will turn into: - -

Here is an example of AppleScript:

- -
tell application "Foo"
-        beep
-    end tell
-    
- -A code block continues until it reaches a line that is not indented -(or the end of the article). - -Within a code block, ampersands (`&`) and angle brackets (`<` and `>`) -are automatically converted into HTML entities. This makes it very -easy to include example HTML source code using Markdown -- just paste -it and indent it, and Markdown will handle the hassle of encoding the -ampersands and angle brackets. For example, this: - - - -will turn into: - -
<div class="footer">
-        &copy; 2004 Foo Corporation
-    </div>
-    
- -Regular Markdown syntax is not processed within code blocks. E.g., -asterisks are just literal asterisks within a code block. This means -it's also easy to use Markdown to write about Markdown's own syntax. - - - -### Horizontal Rules - -You can produce a horizontal rule tag (`
`) by placing three or -more hyphens, asterisks, or underscores on a line by themselves. If you -wish, you may use spaces between the hyphens or asterisks. Each of the -following lines will produce a horizontal rule: - - * * * - - *** - - ***** - - - - - - - --------------------------------------- - - _ _ _ - - -* * * - -## Span Elements - -### Links - -Markdown supports two style of links: *inline* and *reference*. - -In both styles, the link text is delimited by [square brackets]. - -To create an inline link, use a set of regular parentheses immediately -after the link text's closing square bracket. Inside the parentheses, -put the URL where you want the link to point, along with an *optional* -title for the link, surrounded in quotes. For example: - - This is [an example](http://example.com/ "Title") inline link. - - [This link](http://example.net/) has no title attribute. - -Will produce: - -

This is - an example inline link.

- -

This link has no - title attribute.

- -If you're referring to a local resource on the same server, you can -use relative paths: - - See my [About](/about/) page for details. - -Reference-style links use a second set of square brackets, inside -which you place a label of your choosing to identify the link: - - This is [an example][id] reference-style link. - -You can optionally use a space to separate the sets of brackets: - - This is [an example] [id] reference-style link. - -Then, anywhere in the document, you define your link label like this, -on a line by itself: - - [id]: http://example.com/ "Optional Title Here" - -That is: - -* Square brackets containing the link identifier (optionally - indented from the left margin using up to three spaces); -* followed by a colon; -* followed by one or more spaces (or tabs); -* followed by the URL for the link; -* optionally followed by a title attribute for the link, enclosed - in double or single quotes. - -The link URL may, optionally, be surrounded by angle brackets: - - [id]: "Optional Title Here" - -You can put the title attribute on the next line and use extra spaces -or tabs for padding, which tends to look better with longer URLs: - - [id]: http://example.com/longish/path/to/resource/here - "Optional Title Here" - -Link definitions are only used for creating links during Markdown -processing, and are stripped from your document in the HTML output. - -Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are *not* case sensitive. E.g. these two links: - - [link text][a] - [link text][A] - -are equivalent. - -The *implicit link name* shortcut allows you to omit the name of the -link, in which case the link text itself is used as the name. -Just use an empty set of square brackets -- e.g., to link the word -"Google" to the google.com web site, you could simply write: - - [Google][] - -And then define the link: - - [Google]: http://google.com/ - -Because link names may contain spaces, this shortcut even works for -multiple words in the link text: - - Visit [Daring Fireball][] for more information. - -And then define the link: - - [Daring Fireball]: http://daringfireball.net/ - -Link definitions can be placed anywhere in your Markdown document. I -tend to put them immediately after each paragraph in which they're -used, but if you want, you can put them all at the end of your -document, sort of like footnotes. - -Here's an example of reference links in action: - - I get 10 times more traffic from [Google] [1] than from - [Yahoo] [2] or [MSN] [3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Using the implicit link name shortcut, you could instead write: - - I get 10 times more traffic from [Google][] than from - [Yahoo][] or [MSN][]. - - [google]: http://google.com/ "Google" - [yahoo]: http://search.yahoo.com/ "Yahoo Search" - [msn]: http://search.msn.com/ "MSN Search" - -Both of the above examples will produce the following HTML output: - -

I get 10 times more traffic from Google than from - Yahoo - or MSN.

- -For comparison, here is the same paragraph written using -Markdown's inline link style: - - I get 10 times more traffic from [Google](http://google.com/ "Google") - than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or - [MSN](http://search.msn.com/ "MSN Search"). - -The point of reference-style links is not that they're easier to -write. The point is that with reference-style links, your document -source is vastly more readable. Compare the above examples: using -reference-style links, the paragraph itself is only 81 characters -long; with inline-style links, it's 176 characters; and as raw HTML, -it's 234 characters. In the raw HTML, there's more markup than there -is text. - -With Markdown's reference-style links, a source document much more -closely resembles the final output, as rendered in a browser. By -allowing you to move the markup-related metadata out of the paragraph, -you can add links without interrupting the narrative flow of your -prose. - - -### Emphasis - -Markdown treats asterisks (`*`) and underscores (`_`) as indicators of -emphasis. Text wrapped with one `*` or `_` will be wrapped with an -HTML `` tag; double `*`'s or `_`'s will be wrapped with an HTML -`` tag. E.g., this input: - - *single asterisks* - - _single underscores_ - - **double asterisks** - - __double underscores__ - -will produce: - - single asterisks - - single underscores - - double asterisks - - double underscores - -You can use whichever style you prefer; the lone restriction is that -the same character must be used to open and close an emphasis span. - -Emphasis can be used in the middle of a word: - - un*fucking*believable - -But if you surround an `*` or `_` with spaces, it'll be treated as a -literal asterisk or underscore. - -To produce a literal asterisk or underscore at a position where it -would otherwise be used as an emphasis delimiter, you can backslash -escape it: - - \*this text is surrounded by literal asterisks\* - - - -### Code - -To indicate a span of code, wrap it with backtick quotes (`` ` ``). -Unlike a pre-formatted code block, a code span indicates code within a -normal paragraph. For example: - - Use the `printf()` function. - -will produce: - -

Use the printf() function.

- -To include a literal backtick character within a code span, you can use -multiple backticks as the opening and closing delimiters: - - ``There is a literal backtick (`) here.`` - -which will produce this: - -

There is a literal backtick (`) here.

- -The backtick delimiters surrounding a code span may include spaces -- -one after the opening, one before the closing. This allows you to place -literal backtick characters at the beginning or end of a code span: - - A single backtick in a code span: `` ` `` - - A backtick-delimited string in a code span: `` `foo` `` - -will produce: - -

A single backtick in a code span: `

- -

A backtick-delimited string in a code span: `foo`

- -With a code span, ampersands and angle brackets are encoded as HTML -entities automatically, which makes it easy to include example HTML -tags. Markdown will turn this: - - Please don't use any `` tags. - -into: - -

Please don't use any <blink> tags.

- -You can write this: - - `—` is the decimal-encoded equivalent of `—`. - -to produce: - -

&#8212; is the decimal-encoded - equivalent of &mdash;.

- - - -### Images - -Admittedly, it's fairly difficult to devise a "natural" syntax for -placing images into a plain text document format. - -Markdown uses an image syntax that is intended to resemble the syntax -for links, allowing for two styles: *inline* and *reference*. - -Inline image syntax looks like this: - - ![Alt text](/path/to/img.jpg) - - ![Alt text](/path/to/img.jpg "Optional title") - -That is: - -* An exclamation mark: `!`; -* followed by a set of square brackets, containing the `alt` - attribute text for the image; -* followed by a set of parentheses, containing the URL or path to - the image, and an optional `title` attribute enclosed in double - or single quotes. - -Reference-style image syntax looks like this: - - ![Alt text][id] - -Where "id" is the name of a defined image reference. Image references -are defined using syntax identical to link references: - - [id]: url/to/image "Optional title attribute" - -As of this writing, Markdown has no syntax for specifying the -dimensions of an image; if this is important to you, you can simply -use regular HTML `` tags. - - -* * * - - -## Miscellaneous - -### Automatic Links - -Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this: - - - -Markdown will turn this into: - - http://example.com/ - -Automatic links for email addresses work similarly, except that -Markdown will also perform a bit of randomized decimal and hex -entity-encoding to help obscure your address from address-harvesting -spambots. For example, Markdown will turn this: - - - -into something like this: - - address@exa - mple.com - -which will render in a browser as a clickable link to "address@example.com". - -(This sort of entity-encoding trick will indeed fool many, if not -most, address-harvesting bots, but it definitely won't fool all of -them. It's better than nothing, but an address published in this way -will probably eventually start receiving spam.) - - - -### Backslash Escapes - -Markdown allows you to use backslash escapes to generate literal -characters which would otherwise have special meaning in Markdown's -formatting syntax. For example, if you wanted to surround a word with -literal asterisks (instead of an HTML `` tag), you can backslashes -before the asterisks, like this: - - \*literal asterisks\* - -Markdown provides backslash escapes for the following characters: - - \ backslash - ` backtick - * asterisk - _ underscore - {} curly braces - [] square brackets - () parentheses - # hash mark - + plus sign - - minus sign (hyphen) - . dot - ! exclamation mark - ->>> -headingOne: Markdown: Syntax -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Overview -- URI: (hash)overview -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Philosophy -- URI: (hash)philosophy -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Inline HTML -- URI: (hash)html -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Automatic Escaping for Special Characters -- URI: (hash)autoescape -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Block Elements -- URI: (hash)block -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Paragraphs and Line Breaks -- URI: (hash)p -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Headers -- URI: (hash)header -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Blockquotes -- URI: (hash)blockquote -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Lists -- URI: (hash)list -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Code Blocks -- URI: (hash)precode -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Horizontal Rules -- URI: (hash)hr -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Span Elements -- URI: (hash)span -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Links -- URI: (hash)link -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Emphasis -- URI: (hash)em -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Code -- URI: (hash)code -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Images -- URI: (hash)img -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Miscellaneous -- URI: (hash)misc -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Backslash Escapes -- URI: (hash)backslash -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Automatic Links -- URI: (hash)autolink -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -interblockSeparator -strongEmphasis: Note: -BEGIN link -- label: see the source for it by adding '.text' to the URL -- URI: /projects/markdown/syntax.text -- title: -END link -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Overview -interblockSeparator -headingThree: Philosophy -interblockSeparator -interblockSeparator -BEGIN link -- label: Setext -- URI: http://docutils.sourceforge.net/mirror/setext.html -- title: -END link -BEGIN link -- label: atx -- URI: http://www.aaronsw.com/2002/atx/ -- title: -END link -BEGIN link -- label: Textile -- URI: http://textism.com/tools/textile/ -- title: -END link -BEGIN link -- label: reStructuredText -- URI: http://docutils.sourceforge.net/rst.html -- title: -END link -BEGIN link -- label: Grutatext -- URI: http://www.triptico.com/software/grutatxt.html -- title: -END link -BEGIN link -- label: EtText -- URI: http://ettext.taint.org/doc/ -- title: -END link -interblockSeparator -interblockSeparator -headingThree: Inline HTML -interblockSeparator -emphasis: writing -interblockSeparator -emphasis: not -emphasis: publishing -emphasis: writing -interblockSeparator -interblockSeparator -codeSpan:
-codeSpan: -codeSpan:
-codeSpan: 

-codeSpan:

-interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/6c0e67934e0358fd4071cf4247bcf221.verbatim -interblockSeparator -codeSpan: *emphasis* -interblockSeparator -codeSpan: -codeSpan: -codeSpan: -codeSpan: -codeSpan: -interblockSeparator -emphasis: is -interblockSeparator -headingThree: Automatic Escaping for Special Characters -interblockSeparator -codeSpan: < -codeSpan: (ampersand) -codeSpan: (ampersand)lt; -codeSpan: (ampersand)amp; -interblockSeparator -ampersand -codeSpan: AT(ampersand)amp;T -interblockSeparator -inputVerbatim: ./_markdown_test/01abe6d069cf62de251cf21f8df1d11f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3bb5e0b18bdd7c9688b9f5df139967f3.verbatim -interblockSeparator -codeSpan: href -interblockSeparator -codeSpan: (ampersand)amp; -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9f3cb292eb01028cce569a08ef6f975b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7cdba89e6cc34bd4841c7c6a41bb4156.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c79c1d6af747ea457d80ff723101137a.verbatim -interblockSeparator -BEGIN link -- label: inline HTML -- URI: (hash)html -- title: -END link -interblockSeparator -inputVerbatim: ./_markdown_test/e76bfed335c678dbe01b3982b9b46fdc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/cc7bb6b7c24a66c62c969328036e8f7b.verbatim -interblockSeparator -emphasis: always -codeSpan: < -codeSpan: (ampersand) -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Block Elements -interblockSeparator -headingThree: Paragraphs and Line Breaks -interblockSeparator -interblockSeparator -codeSpan:
-interblockSeparator -emphasis: do -codeSpan:
-interblockSeparator -codeSpan:
-codeSpan:
-BEGIN link -- label: blockquoting -- URI: (hash)blockquote -- title: -END link -BEGIN link -- label: list items -- URI: (hash)list -- title: -END link -interblockSeparator -headingThree: Headers -interblockSeparator -BEGIN link -- label: Setext -- URI: http://docutils.sourceforge.net/mirror/setext.html -- title: -END link -BEGIN link -- label: atx -- URI: http://www.aaronsw.com/2002/atx/ -- title: -END link -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/4f59d4e23ef758fd94bd2324643e2f2b.verbatim -interblockSeparator -codeSpan: = -codeSpan: - -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/48058b850bf198c75e9571ef25b4174e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/37d9f30690dba801bda9a65ec7cfd1be.verbatim -interblockSeparator -headingThree: Blockquotes -interblockSeparator -codeSpan: > -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/a89055d359469d454a801830954a9c6f.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/944cb176339d03ac7508f0f66090979f.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/2a3331ca2a955f6ad7da2480f9cda089.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/539f94bbd698cb75fb0cd1ba51d297b2.verbatim -interblockSeparator -interblockSeparator -headingThree: Lists -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7667e2408d637a1e3ca69ccc1ce50809.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/f9c93344b256fc419363b5137a49888e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0ae7b8161204fb8d79d287ece754d868.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/5159786425bde2cec7e20b79500dde54.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9679de8f4110a0e2906694aa1804cbf0.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/68c7899020501a169d9e9ca810aff930.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/733b6752776567144548322ef66d67e6.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3915e80c9e2b1a87599797fb217c295b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/35441140ac44d3c2c7b9611d18c6dca4.verbatim -interblockSeparator -codeSpan:

-interblockSeparator -inputVerbatim: ./_markdown_test/92f4628c14a10b92aead4a4ebd01936a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/02afc9ab8392711baf578d89e8b624a8.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ec0f57523c3541a14df8f17f3c822039.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/197c8667c0c0307c8174e6a6e07c2a48.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a07ba2a71f8cd42180768463fa2e5dad.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d56908f0f6e2476a6146ece0fa7e2f32.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/4c06d5a765803dd6f15378765020443c.verbatim -interblockSeparator -emphasis: twice -interblockSeparator -inputVerbatim: ./_markdown_test/d3f24a5ba4f9ebe7c97b690753fef199.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d87e20aae0facc7fbbc293f790178cf4.verbatim -interblockSeparator -emphasis: number-period-space -interblockSeparator -inputVerbatim: ./_markdown_test/ea5e5fa61236c2e31ecb34d484caed78.verbatim -interblockSeparator -headingThree: Code Blocks -interblockSeparator -codeSpan:

-codeSpan: 
-interblockSeparator
-interblockSeparator
-inputVerbatim: ./_markdown_test/80158a498770adf4d0617503ae558414.verbatim
-interblockSeparator
-interblockSeparator
-inputVerbatim: ./_markdown_test/35dd5e3b1d316dec464fafbedf53439e.verbatim
-interblockSeparator
-interblockSeparator
-inputVerbatim: ./_markdown_test/992aa3a21cc79d1a6a7b273173e1cc48.verbatim
-interblockSeparator
-interblockSeparator
-inputVerbatim: ./_markdown_test/d37edcee91241df6034067902bf7ff5f.verbatim
-interblockSeparator
-interblockSeparator
-codeSpan: (ampersand)
-codeSpan: <
-codeSpan: >
-interblockSeparator
-inputVerbatim: ./_markdown_test/bfd3b2e8e47a22fe0914d55781a73b7c.verbatim
-interblockSeparator
-interblockSeparator
-inputVerbatim: ./_markdown_test/6a14fbcefad86826e777c27a9000b94a.verbatim
-interblockSeparator
-interblockSeparator
-headingThree: Horizontal Rules
-interblockSeparator
-codeSpan: 
-interblockSeparator -inputVerbatim: ./_markdown_test/b3a754721670b6236c8eb8159555f38b.verbatim -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Span Elements -interblockSeparator -headingThree: Links -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -emphasis: optional -interblockSeparator -inputVerbatim: ./_markdown_test/1414e8798e8df1116073e37e18480580.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/fee0581724d177221ef58d9e6a498b35.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/be45edb9cb5e6fb760f9805ffc37b64b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/00842bca924b6e825c555a0866ba0488.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/525e6727b97cbbb73ce96c0ba62e8eb6.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a35af952f6f3a307982ea5250cfb72de.verbatim -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/59be3295fa322e809f4138ef7500798a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a39ca11b40fca9daced4a3b44b1fc1a3.verbatim -interblockSeparator -interblockSeparator -emphasis: not -interblockSeparator -inputVerbatim: ./_markdown_test/a943d1cc49e6963c7bcb45acfebf321f.verbatim -interblockSeparator -interblockSeparator -emphasis: implicit link name -interblockSeparator -inputVerbatim: ./_markdown_test/c2c38dc7e1a41ddb3d50c965e569aab4.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/17194fe133f07ed35b959c9108de4cec.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/1a7658c341b463a9232093771a413acc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/65aaecc2b48f0d27de8de608c27ed6e7.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/31285fcec3a6ea99b4694d3e6750fc60.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0810a7510b5a42a7ec77fd3d55be870e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/28d0c5764a38e6b58409f9967ef91bcc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/f39ac74789b190c9c1460bd06b2e5f66.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -headingThree: Emphasis -interblockSeparator -codeSpan: * -codeSpan: (underscore) -codeSpan: * -codeSpan: (underscore) -codeSpan: -codeSpan: * -codeSpan: (underscore) -codeSpan: -interblockSeparator -inputVerbatim: ./_markdown_test/ad2981010cf94e370ccb06c7233f0989.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/451a1d0edf74505402610a4bae7997d0.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3f3996b979db4e11ec6fd9b0232b3d83.verbatim -interblockSeparator -codeSpan: * -codeSpan: (underscore) -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/85d79dd13f594a1dc7dc5b2be403366a.verbatim -interblockSeparator -headingThree: Code -interblockSeparator -codeSpan: ` -interblockSeparator -inputVerbatim: ./_markdown_test/3013bb705f116d1bf7d7506a827cd6f1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0d572dc866bb6649bdedef400a32f2ee.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/000c6f567a8ecf3820cf43f6b248b303.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a499280e33397f3bd9ec1415835a1c04.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/56cb72e47c0ff4e11b252117ed9d7c15.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/2624fb4324d31d847556b8cf06cc71a3.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7e31b58c38fbe808c13ae0c21943fdbb.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/775e317bc6e9bac7e3a3a3f44dade6d1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b71470703a2237b352df145a688666b9.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c7d2bf55eba7aa8ecd26cc75c0116ecd.verbatim -interblockSeparator -headingThree: Images -interblockSeparator -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/95e477e08806ad17333ef8c62ab1a9bf.verbatim -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -codeSpan: ! -ulItemEnd -ulItem -codeSpan: alt -ulItemEnd -ulItem -codeSpan: title -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/90c3fb2e48c6bc6b5139b7d9fefe33eb.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a5bd86aacaa065512fabab353b4646b5.verbatim -interblockSeparator -codeSpan: -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Miscellaneous -interblockSeparator -headingThree: Automatic Links -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ba84105470e6c3ca4640b0165ba73e28.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3d59db9474543617b421ad8938c9ad5f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7c01c9510936100673897e413a694f95.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/57dc30d4baafa58ac03c967e1ffe882b.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -headingThree: Backslash Escapes -interblockSeparator -codeSpan: -interblockSeparator -inputVerbatim: ./_markdown_test/ee5b9bd27735fe320e0eb1cd9218539d.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/4f5715933ffa8d2f20d0360598a68dbb.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test deleted file mode 100644 index bbc0f7e4c5..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test +++ /dev/null @@ -1,14 +0,0 @@ -<<< -> foo -> -> > bar -> -> foo - ->>> -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test deleted file mode 100644 index 6a88122d16..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test +++ /dev/null @@ -1,323 +0,0 @@ -<<< -## Unordered - -Asterisks tight: - -* asterisk 1 -* asterisk 2 -* asterisk 3 - - -Asterisks loose: - -* asterisk 1 - -* asterisk 2 - -* asterisk 3 - -* * * - -Pluses tight: - -+ Plus 1 -+ Plus 2 -+ Plus 3 - - -Pluses loose: - -+ Plus 1 - -+ Plus 2 - -+ Plus 3 - -* * * - - -Minuses tight: - -- Minus 1 -- Minus 2 -- Minus 3 - - -Minuses loose: - -- Minus 1 - -- Minus 2 - -- Minus 3 - - -## Ordered - -Tight: - -1. First -2. Second -3. Third - -and: - -1. One -2. Two -3. Three - - -Loose using tabs: - -1. First - -2. Second - -3. Third - -and using spaces: - -1. One - -2. Two - -3. Three - -Multiple paragraphs: - -1. Item 1, graf one. - - Item 2. graf two. The quick brown fox jumped over the lazy dog's - back. - -2. Item 2. - -3. Item 3. - - - -## Nested - -* Tab - * Tab - * Tab - -Here's another: - -1. First -2. Second: - * Fee - * Fie - * Foe -3. Third - -Same thing but with paragraphs: - -1. First - -2. Second: - * Fee - * Fie - * Foe - -3. Third - - -This was an error in Markdown 1.0.1: - -* this - - * sub - - that - ->>> -headingTwo: Unordered -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -headingTwo: Ordered -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -interblockSeparator -ampersand -hash -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -headingTwo: Nested -interblockSeparator -ulBeginTight -ulItem -interblockSeparator -ulBeginTight -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -interblockSeparator -ampersand -hash -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -interblockSeparator -ulItemEnd -ulEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test deleted file mode 100644 index 44c84cd6d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test +++ /dev/null @@ -1,17 +0,0 @@ -<<< -***This is strong and em.*** - -So is ***this*** word. - -___This is strong and em.___ - -So is ___this___ word. - ->>> -strongEmphasis: (emphasis: This is strong and em.) -interblockSeparator -strongEmphasis: (emphasis: this) -interblockSeparator -strongEmphasis: (emphasis: This is strong and em.) -interblockSeparator -strongEmphasis: (emphasis: this) diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test deleted file mode 100644 index 4737ab75e8..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -+ this is a list item - indented with tabs - -+ this is a list item - indented with spaces - -Code: - - this code block is indented by one tab - -And: - - this code block is indented by two tabs - -And: - - + this is an example list item - indented with tabs - - + this is an example list item - indented with spaces - ->>> -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/07112549a31e78f7efb64c16f22570db.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/385fbae90889669b105262d12987e9da.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ce062b920c62d9e77aae68da221de295.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md b/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md deleted file mode 100644 index 8ceeb21dec..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/PHP_Markdown` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test deleted file mode 100644 index ba3ee16d9a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< - - - ->>> -BEGIN link -- label: HTTP://WWW.SOMEURL.COM -- URI: HTTP://WWW.SOMEURL.COM -- title: -END link -interblockSeparator -BEGIN link -- label: hr@company.com -- URI: mailto:hr@company.com -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test deleted file mode 100644 index a66cdefb8e..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test +++ /dev/null @@ -1,19 +0,0 @@ -<<< -Tricky combinaisons: - -backslash with \\-- two dashes - -backslash with \\> greater than - -\\[test](not a link) - -\\\*no emphasis* ->>> -interblockSeparator -backslash -interblockSeparator -backslash -interblockSeparator -backslash -interblockSeparator -backslash diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test deleted file mode 100644 index 8ac52d287a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test +++ /dev/null @@ -1,31 +0,0 @@ -<<< - -* List Item: - - code block - - with a blank line - - within a list item. - -* code block - as first element of a list item - -* List Item: - - code block with whitespace on preceding line ->>> -ulBegin -ulItem -interblockSeparator -inputVerbatim: ./_markdown_test/3918bc9009f196cbcc980181827419e9.verbatim -interblockSeparator -ulItemEnd -ulItem -inputVerbatim: ./_markdown_test/2ecbe437956c71ad33b2efd354f11893.verbatim -ulItemEnd -ulItem -interblockSeparator -inputVerbatim: ./_markdown_test/89ad99c3052a342e765443409ef64797.verbatim -ulItemEnd -ulEnd diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test deleted file mode 100644 index 7b402e3fa0..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test +++ /dev/null @@ -1,6 +0,0 @@ -<<< - - Codeblock on second line - ->>> -inputVerbatim: ./_markdown_test/722b6c7a40293698cf78b28fdb8623ff.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test deleted file mode 100644 index afda759ec7..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< - - -International domain names: ->>> -BEGIN link -- label: michel.fortin@michelf.com -- URI: mailto:michel.fortin@michelf.com -- title: -END link -interblockSeparator -BEGIN link -- label: help@tūdaliņ.lv -- URI: mailto:help@tūdaliņ.lv -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test deleted file mode 100644 index ed36492e09..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test +++ /dev/null @@ -1,272 +0,0 @@ -<<< -Combined emphasis: - -1. ***test test*** -2. ___test test___ -3. *test **test*** -4. **test *test*** -5. ***test* test** -6. ***test** test* -7. ***test* test** -8. **test *test*** -9. *test **test*** -10. _test __test___ -11. __test _test___ -12. ___test_ test__ -13. ___test__ test_ -14. ___test_ test__ -15. __test _test___ -16. _test __test___ - - -Incorrect nesting: - -1. *test **test* test** -2. _test __test_ test__ -3. **test *test** test* -4. __test _test__ test_ -5. *test *test* test* -6. _test _test_ test_ -7. **test **test** test** -8. __test __test__ test__ - - - -No emphasis: - -1. test* test *test -2. test** test **test -3. test_ test _test -4. test__ test __test - - - -Middle-word emphasis (asterisks): - -1. *a*b -2. a*b* -3. a*b*c -4. **a**b -5. a**b** -6. a**b**c - - -Middle-word emphasis (underscore): - -1. _a_b -2. a_b_ -3. a_b_c -4. __a__b -5. a__b__ -6. a__b__c - -my_precious_file.txt - - -## Tricky Cases - -E**. **Test** TestTestTest - -E**. **Test** Test Test Test - - -## Overlong emphasis - -Name: ____________ -Organization: ____ -Region/Country: __ - -_____Cut here_____ - -____Cut here____ - ->>> -interblockSeparator -olBeginTight -olItemWithNumber: 1 -strongEmphasis: (emphasis: test test) -olItemEnd -olItemWithNumber: 2 -strongEmphasis: (emphasis: test test) -olItemEnd -olItemWithNumber: 3 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 4 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 5 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 6 -emphasis: (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 7 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 8 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 9 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 10 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 11 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 12 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 13 -emphasis: (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 14 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 15 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 16 -emphasis: test (strongEmphasis: test) -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -strongEmphasis: test* test -olItemEnd -olItemWithNumber: 2 -underscore -strongEmphasis: test(underscore) test -olItemEnd -olItemWithNumber: 3 -emphasis: (emphasis: test (emphasis: test)) test -olItemEnd -olItemWithNumber: 4 -emphasis: (emphasis: test (emphasis: test)) test -olItemEnd -olItemWithNumber: 5 -emphasis: test (emphasis: test) test -olItemEnd -olItemWithNumber: 6 -emphasis: test (emphasis: test) test -olItemEnd -olItemWithNumber: 7 -strongEmphasis: test (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 8 -strongEmphasis: test (strongEmphasis: test) test -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -emphasis: * test * -olItemEnd -olItemWithNumber: 3 -underscore -underscore -olItemEnd -olItemWithNumber: 4 -emphasis: (underscore) test (underscore) -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -emphasis: a -olItemEnd -olItemWithNumber: 2 -emphasis: b -olItemEnd -olItemWithNumber: 3 -emphasis: b -olItemEnd -olItemWithNumber: 4 -strongEmphasis: a -olItemEnd -olItemWithNumber: 5 -strongEmphasis: b -olItemEnd -olItemWithNumber: 6 -strongEmphasis: b -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -emphasis: a -olItemEnd -olItemWithNumber: 2 -emphasis: b -olItemEnd -olItemWithNumber: 3 -emphasis: b -olItemEnd -olItemWithNumber: 4 -strongEmphasis: a -olItemEnd -olItemWithNumber: 5 -strongEmphasis: b -olItemEnd -olItemWithNumber: 6 -strongEmphasis: b -olItemEnd -olEndTight -interblockSeparator -emphasis: precious -interblockSeparator -headingTwo: Tricky Cases -interblockSeparator -strongEmphasis: Test -interblockSeparator -strongEmphasis: Test -interblockSeparator -headingTwo: Overlong emphasis -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test deleted file mode 100644 index a9fb47b84b..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test +++ /dev/null @@ -1,97 +0,0 @@ -<<< -With asterisks - - * List item - * - * List item - -With numbers - -1. List item -2. -3. List item - -With hyphens - -- List item -- -- List item - -With asterisks - - * List item - * List item - * - -With numbers - -1. List item -2. List item -3. - -With hyphens - -- List item -- List item -- - ->>> -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test deleted file mode 100644 index f068181502..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -### Header - - - - - - -Paragraphr - - - - - - -Paragraph ->>> -headingThree: Header -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test deleted file mode 100644 index 634ad3db9c..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test +++ /dev/null @@ -1,51 +0,0 @@ -<<< -Horizontal rules: - -- - - - -* * * - -*** - ---- - -___ - -Not horizontal rules (testing for a bug in 1.0.1j): - -+++ - -,,, - -=== - -??? - -AAA - -jjj - -j j j - -n n n - ->>> -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test deleted file mode 100644 index bb67b838d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test +++ /dev/null @@ -1,9 +0,0 @@ -<<< -[silly URL w/ angle brackets](). - ->>> -BEGIN link -- label: silly URL w/ angle brackets -- URI: ?(rightBrace)]*+(pipe)(ampersand)) -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test deleted file mode 100644 index b70a29c981..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test +++ /dev/null @@ -1,22 +0,0 @@ -<<< -# Character Escapes - -The MD5 value for `+` is "26b17225b626fb9238849fd60eabdf60". - -# HTML Blocks - -

test

- -The MD5 value for `

test

` is: - -6205333b793f34273d75379350b36826 ->>> -headingOne: Character Escapes -interblockSeparator -codeSpan: + -interblockSeparator -headingOne: HTML Blocks -interblockSeparator -interblockSeparator -codeSpan:

test

-interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test deleted file mode 100644 index fddda61878..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test +++ /dev/null @@ -1,47 +0,0 @@ -<<< -* test -+ test -- test - -1. test -2. test - -* test -+ test -- test - -1. test -2. test - ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test deleted file mode 100644 index f95ada9662..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test +++ /dev/null @@ -1,30 +0,0 @@ -<<< -Valid nesting: - -**[Link](url)** - -[**Link**](url) - -**[**Link**](url)** - -Invalid nesting: - -[[Link](url)](url) ->>> -interblockSeparator -strongEmphasis: (BEGIN link)(- label: Link)(- URI: url)(- title: )(END link) -interblockSeparator -BEGIN link -- label: (strongEmphasis: Link) -- URI: url -- title: -END link -interblockSeparator -strongEmphasis: (BEGIN link)(- label: (strongEmphasis: Link))(- URI: url)(- title: )(END link) -interblockSeparator -interblockSeparator -BEGIN link -- label: [Link](url) -- URI: url -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test deleted file mode 100644 index 7c7831220a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test +++ /dev/null @@ -1,52 +0,0 @@ -<<< -[Inline link 1 with parens](/url\(test\) "title"). - -[Inline link 2 with parens]( "title"). - -[Inline link 3 with non-escaped parens](/url(test) "title"). - -[Inline link 4 with non-escaped parens]( "title"). - -[Reference link 1 with parens][1]. - -[Reference link 2 with parens][2]. - - [1]: /url(test) "title" - [2]: "title" - ->>> -BEGIN link -- label: Inline link 1 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 2 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 3 with non-escaped parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 4 with non-escaped parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Reference link 1 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Reference link 2 with parens -- URI: /url(test) -- title: title -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test deleted file mode 100644 index 3f3db6c6ee..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -This tests for a bug where quotes escaped by PHP when using -`preg_replace` with the `/e` modifier must be correctly unescaped -(hence the `_UnslashQuotes` function found only in PHP Markdown). - - - -Headers below should appear exactly as they are typed (no backslash -added or removed). - -Header "quoted\" again \\"" -=========================== - -Header "quoted\" again \\"" ---------------------------- - -### Header "quoted\" again \\"" ### - - - -Test with tabs for `_Detab`: - - Code 'block' with some "tabs" and "quotes" - ->>> -codeSpan: preg(underscore)replace -codeSpan: /e -codeSpan: (underscore)UnslashQuotes -interblockSeparator -interblockSeparator -headingOne: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -headingTwo: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -headingThree: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -codeSpan: (underscore)Detab -interblockSeparator -inputVerbatim: ./_markdown_test/58f5a43337a97a77594d067c159d772c.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test deleted file mode 100644 index 75247fc7fd..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test +++ /dev/null @@ -1,29 +0,0 @@ -<<< -[Test](/"style="color:red) -[Test](/'style='color:red) - -![](/"style="border-color:red;border-size:1px;border-style:solid) -![](/'style='border-color:red;border-size:1px;border-style:solid) - ->>> -BEGIN link -- label: Test -- URI: /"style="color:red -- title: -END link -BEGIN link -- label: Test -- URI: /'style='color:red -- title: -END link -interblockSeparator -BEGIN image -- label: -- URI: /"style="border-color:red;border-size:1px;border-style:solid -- title: -END image -BEGIN image -- label: -- URI: /'style='border-color:red;border-size:1px;border-style:solid -- title: -END image diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test deleted file mode 100644 index 9300123d19..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test +++ /dev/null @@ -1,327 +0,0 @@ -\def\markdownOptionPipeTables{true} -<<< -Header 1 | Header 2 ---------- | --------- -Cell 1 | Cell 2 -Cell 3 | Cell 4 - -With leading pipes: - -| Header 1 | Header 2 -| --------- | --------- -| Cell 1 | Cell 2 -| Cell 3 | Cell 4 - -With tailing pipes: - -Header 1 | Header 2 | ---------- | --------- | -Cell 1 | Cell 2 | -Cell 3 | Cell 4 | - -With leading and tailing pipes: - -| Header 1 | Header 2 | -| --------- | --------- | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | - -* * * - -# One-column one-row table - -With leading pipes: - -| Header -| ------- -| Cell - -With tailing pipes: - -Header | -------- | -Cell | - -With leading and tailing pipes: - -| Header | -| ------- | -| Cell | - -* * * - -Table alignement: - -| Default | Right | Center | Left | -| --------- |:--------- |:---------:| ---------:| -| Long Cell | Long Cell | Long Cell | Long Cell | -| Cell | Cell | Cell | Cell | - -Table alignement (alternate spacing): - -| Default | Right | Center | Left | -| --------- | :-------- | :-------: | --------: | -| Long Cell | Long Cell | Long Cell | Long Cell | -| Cell | Cell | Cell | Cell | - -* * * - -# Empty cells - -| Header 1 | Header 2 | -| --------- | --------- | -| A | B | -| C | | - -Header 1 | Header 2 ---------- | --------- -A | B - | D - -* * * - -# Missing tailing pipe - -Header 1 | Header 2 ---------- | --------- | -Cell | Cell | -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- -Cell | Cell | -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- | -Cell | Cell -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- | -Cell | Cell | -Cell | Cell - -* * * - -# Too many pipes in rows - -| Header 1 | Header 2 | -| --------- -| Cell | Cell | Extra cell? | -| Cell | Cell | Extra cell? | ->>> -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: One-column one-row table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 4 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: l -- alignment of column 3: c -- alignment of column 4: r -- row 1, column 1: Default -- row 1, column 2: Right -- row 1, column 3: Center -- row 1, column 4: Left -- row 2, column 1: Long Cell -- row 2, column 2: Long Cell -- row 2, column 3: Long Cell -- row 2, column 4: Long Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -- row 3, column 3: Cell -- row 3, column 4: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 4 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: l -- alignment of column 3: c -- alignment of column 4: r -- row 1, column 1: Default -- row 1, column 2: Right -- row 1, column 3: Center -- row 1, column 4: Left -- row 2, column 1: Long Cell -- row 2, column 2: Long Cell -- row 2, column 3: Long Cell -- row 2, column 4: Long Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -- row 3, column 3: Cell -- row 3, column 4: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Empty cells -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: A -- row 2, column 2: B -- row 3, column 1: C -- row 3, column 2: -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: A -- row 2, column 2: B -- row 3, column 1: -- row 3, column 2: D -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Missing tailing pipe -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Too many pipes in rows -interblockSeparator -BEGIN table (3 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header 1 -- row 2, column 1: Cell -- row 3, column 1: Cell -END table diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test deleted file mode 100644 index b8f0650113..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test +++ /dev/null @@ -1,30 +0,0 @@ -<<< -Paragraph and no space: -* ciao - -Paragraph and 1 space: - * ciao - -Paragraph and 3 spaces: - * ciao - -Paragraph and 4 spaces: - * ciao - -Paragraph before header: -#Header - -Paragraph before blockquote: ->Some quote. - ->>> -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -headingOne: Header -interblockSeparator -interblockSeparator -blockQuoteBegin -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/README.md b/macros/generic/markdown/tests/testfiles/README.md deleted file mode 100644 index 0f0168e787..0000000000 --- a/macros/generic/markdown/tests/testfiles/README.md +++ /dev/null @@ -1,21 +0,0 @@ -This directory contains subdirectories with test files, which can be recognized -by the `.test` suffix. A test file has the following syntax: - - The test setup TeX source code - <<< - The test markdown source code - >>> - The expected test output - -The test setup TeX source code can be used to configure the Markdown package -through its plain TeX interface before the test markdown source code is -processed. - -The test markdown source code is the markdown code that will be processed -during the test. The majority of markdown tokens are configured by the support -files to produce output to the log file. This output will be compared against -the expected test output. - -The `<<<` and `>>>` markers may be surrounded by optional whitespaces. If the -last section beginning with `>>>` is not present, it will be automatically -generated during the testing and appended to the test file. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md b/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md deleted file mode 100644 index 238044662b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were tailored specifically to the -Markdown package. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test deleted file mode 100644 index 8d42218e09..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test +++ /dev/null @@ -1,57 +0,0 @@ -\def\markdownOptionFencedCode{true} -\def\markdownOptionBlankBeforeCodeFence{true} -<<< -This test ensures that the Lua `fencedCode` and `blankBeforeCodeFence` options -correctly propagate through the plain TeX interface. - -The following fenced code block should resolve to a code span. - -foo -``` foo -bar -``` - -foo -~~~ foo -bar -~~~ - -The following fenced code blocks should be recognized as such. - -foo - -``` foo -bar -``` - -foo - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -codeSpan: blankBeforeCodeFence -interblockSeparator -interblockSeparator -codeSpan: foo bar -interblockSeparator -tilde -tilde -tilde -tilde -tilde -tilde -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test deleted file mode 100644 index 69dffa4e21..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test +++ /dev/null @@ -1,19 +0,0 @@ -\def\markdownOptionBreakableBlockquotes{true} -<<< -This test ensures that the Lua `breakableBlockquotes` option correctly -propagates through the plain TeX interface. - -> *quote 1* - -> *quote 2* - ->>> -codeSpan: breakableBlockquotes -interblockSeparator -blockQuoteBegin -emphasis: quote 1 -blockQuoteEnd -interblockSeparator -blockQuoteBegin -emphasis: quote 2 -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test deleted file mode 100644 index f9968e9168..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test +++ /dev/null @@ -1,12 +0,0 @@ -\def\markdownOptionCacheDir{some-other-directory} -<<< -This test ensures that the Lua `cacheDir` option correctly propagates through -the plain TeX interface and causes a change in the cache directory location. -The following code should be stored in a temporary file inside the specified -cache directory. - - foo bar ->>> -codeSpan: cacheDir -interblockSeparator -inputVerbatim: some-other-directory/5ceaa7ed396ccb8e959c02753cb4bd18.verbatim diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test deleted file mode 100644 index 646c0b9610..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test +++ /dev/null @@ -1,73 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the `citationNbsps` option is enabled by -default. - -Here is a simple parenthetical citation \[\@doe99] and here -is a string of several [see @doe99, pp\; 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and a -[@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an author -as follows [\-@smith04]. - -Here is a simple text citation \@doe99 and here is a string -of several @doe99 [pp\; 33-35; also @smit:.#$%&-+?<>_/h04, -chap. 1]. Here is one with the name of the author -suppressed \-@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp;(nbsp)33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: - -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp;(nbsp)33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test deleted file mode 100644 index e607828711..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test +++ /dev/null @@ -1,85 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the `citationNbsps` option is enabled by -default. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp.(nbsp)33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: true -- prenote: -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp.(nbsp)33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: true -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test deleted file mode 100644 index bc5b70c0d0..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test +++ /dev/null @@ -1,85 +0,0 @@ -\def\markdownOptionCitations{true} -\def\markdownOptionCitationNbsps{false} -<<< -This test ensures that the Lua `citations` and `citationNbsps` options correctly -propagate through the plain TeX interface. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp. 33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap. 1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: true -- prenote: -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp. 33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap. 1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: true -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test deleted file mode 100644 index 3063b324e9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test +++ /dev/null @@ -1,115 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the trailing punctuation does not get included -in the citation name. - -[@f] [@f:] [@foo:bar] [@foo:bar:] - -[@_] [@f_] [@foo_bar] [@foo_bar_] - - @f @f: @foo:bar @foo:bar: - - @_ @f_ @foo_bar @foo_bar_ ->>> -codeSpan: citations -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: _ -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f_ -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar_ -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END textCite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: _ -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f_ -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar_ -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test deleted file mode 100644 index 545be6893d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test +++ /dev/null @@ -1,16 +0,0 @@ -\def\markdownOptionContentBlocks{true} -\def\markdownOptionContentBlocksLanguageMap{markdown-languages-nonstandard.json} -<<< -This test ensures that the Lua `contentBlockLanguages` option correctly -propagates through the plain TeX interface. - -/basename.WEIRDextension (title) ->>> -codeSpan: contentBlockLanguages -interblockSeparator -BEGIN contentBlockCode -- suffix: weirdextension -- language: weirdLANGUAGE -- URI: basename.WEIRDextension -- title: title -END contentBlockCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test deleted file mode 100644 index 60b460fbf9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test +++ /dev/null @@ -1,64 +0,0 @@ -\def\markdownOptionContentBlocks{true} -<<< -This test ensures that the Lua `contentBlocks` option correctly propagates -through the plain TeX interface. -/not/a/translusion.md - -/not/a/ -transclusion/either.md - - - <-- This is just a link. - -htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) -/Flowchart.png "Engineering Flowchart" - -/Savings Account.csv 'Recent Transactions' -/Example.jS (Source code) -/Lorem Ipsum.txt ->>> -codeSpan: contentBlocks -interblockSeparator -interblockSeparator -BEGIN contentBlockOnlineImage -- suffix: jpg -- URI: http://example.com/minard.jpg -- title: -END contentBlockOnlineImage -interblockSeparator -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -interblockSeparator -BEGIN contentBlockOnlineImage -- suffix: jpg -- URI: htt(p:/)/exam(ple.c)om/m(inard.jpg -- title: Napoleon's disastrous Russian campaign of 1812 -END contentBlockOnlineImage -interblockSeparator -BEGIN contentBlock -- suffix: png -- URI: Flowchart.png -- title: Engineering Flowchart -END contentBlock -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: Savings Account.csv -- title: Recent Transactions -END contentBlock -interblockSeparator -BEGIN contentBlockCode -- suffix: js -- language: JavaScript -- URI: Example.jS -- title: Source code -END contentBlockCode -interblockSeparator -BEGIN contentBlock -- suffix: txt -- URI: Lorem Ipsum.txt -- title: -END contentBlock diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test deleted file mode 100644 index cd69efae60..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test +++ /dev/null @@ -1,24 +0,0 @@ -<<< -These are just two backticks: - -`` - -These are empty code spans: - -` ` - -` ` - -This is a code span containing a single space: - -` ` ->>> -interblockSeparator -interblockSeparator -interblockSeparator -codeSpan: -interblockSeparator -codeSpan: -interblockSeparator -interblockSeparator -codeSpan: diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test deleted file mode 100644 index 2efe132ad1..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test +++ /dev/null @@ -1,27 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -This test ensures that the Lua `fencedCode` option correctly propagates through -the plain TeX interface. - -The following fenced code blocks should be recognized as such. - -``` foo -bar -``` - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test deleted file mode 100644 index 3da7ac7a7d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionHeaderAttributes{true} -<<< -This test ensures that the Lua `headerAttributes` option correctly propagates -through the plain TeX interface. - -# A level one heading {#first-id} - -A level one heading {#second_id2} -================================= - -## A level two heading ### {#third-3id .a-class} - -A level two heading {#fourth4-id .2not-a-class} ------------------------------------------------ - -### A level three heading ## {#5not-the-fifth-id} -#### A level four heading {#-6not-the-sixth-id} -##### A level five heading ## {#--7the-seventh-id} -###### A level six heading {#-_the-eighth-id attribute=value} ->>> -codeSpan: headerAttributes -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingTwo: A level two heading (leftBrace)(hash)fourth4-id .2not-a-class(rightBrace) -interblockSeparator -headingThree: A level three heading (hash)(hash) (leftBrace)(hash)5not-the-fifth-id(rightBrace) -interblockSeparator -headingFour: A level four heading (leftBrace)(hash)-6not-the-sixth-id(rightBrace) -interblockSeparator -headingFive: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test deleted file mode 100644 index 1975c5b221..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test +++ /dev/null @@ -1,53 +0,0 @@ -\def\markdownOptionHtml{true} -<<< -This test ensures that the Lua `html` option correctly propagates through -the plain TeX interface. - -
-*There is block tag support.* -
-*There is support.* -_There is support._ -_There is support._ - -Here are several ways to write a pipe: - -- | -- | -- | -- | -- | -- | - -Unrecognized character entities are ignored: &nonsense; ->>> -codeSpan: html -interblockSeparator -interblockSeparator -emphasis: There is support. -emphasis: There is support. -emphasis: There is support. -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulEndTight -interblockSeparator -ampersand diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test deleted file mode 100644 index a82ba1aa1b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test +++ /dev/null @@ -1,43 +0,0 @@ -\def\markdownOptionHybrid{true} -<<< -This test ensures that the Lua `hybrid` option correctly propagates through -the plain TeX interface. The following special characters should not be -processed by lunamark in any way. - - * \char`{ - * \char`} - * \char`$ - * \char`\% - * \char`& - * \char`_ - * \char`# - * \char`^ - * \char`\ - * \char`~ - * \char`| ->>> -codeSpan: hybrid -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test deleted file mode 100644 index 28ecb568b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test +++ /dev/null @@ -1,17 +0,0 @@ -\def\markdownOptionInlineFootnotes{true} -<<< -This test ensures that the Lua `footnotes` and `inlineFootnotes` options -correctly propagate through the plain TeX interface. - -^[Here is the footnote. It can go anywhere after the footnote -reference. It need *not* be placed at the end of the document.] - -\^[This should *not* be a footnote, because it has been escaped.] ->>> -codeSpan: footnotes -codeSpan: inlineFootnotes -interblockSeparator -footnote: Here is the footnote. It can go anywhere after the footnote reference. It need (emphasis: not) be placed at the end of the document. -interblockSeparator -circumflex -emphasis: not diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test deleted file mode 100644 index fbe81311a3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test +++ /dev/null @@ -1,57 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -This test ensures that the Lua `fencedCode` option correctly propagates through -the plain TeX interface and that the Lua `blankBeforeCodeFence` option is -disabled by default. - -The following fenced code blocks should be recognized as such. - -foo -``` foo -bar -``` - -foo -~~~ foo -bar -~~~ - -foo - -``` foo -bar -``` - -foo - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -codeSpan: blankBeforeCodeFence -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test deleted file mode 100644 index d65cbef728..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test +++ /dev/null @@ -1,15 +0,0 @@ -<<< -This test ensures that the Lua `breakableBlockquotes` option is disabled by -default. - -> *quote 1* - -> *quote 2* - ->>> -codeSpan: breakableBlockquotes -interblockSeparator -blockQuoteBegin -emphasis: quote 1 -emphasis: quote 2 -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test deleted file mode 100644 index 811c8aed35..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test +++ /dev/null @@ -1,31 +0,0 @@ -<<< -This test ensures that the Lua `citations` option is disabled by default. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>~/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>~/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -interblockSeparator -hash -dollarSign -percentSign -ampersand -tilde -interblockSeparator -interblockSeparator -hash -dollarSign -percentSign -ampersand -tilde diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test deleted file mode 100644 index de24f9db29..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test +++ /dev/null @@ -1,9 +0,0 @@ -\def\markdownOptionCodeSpans{false} -<<< -This test ensures that the Lua `codeSpans` option correctly propagates through -the plain TeX interface. - -``This is a quote.'' -``This is another one.'' ->>> -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test deleted file mode 100644 index ed814a3071..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test +++ /dev/null @@ -1,32 +0,0 @@ -<<< -This test ensures that the Lua `contentBlocks` option is disabled by default. -/not/a/translusion.md - -/not/a/ -transclusion/either.md - - - <-- This is just a link. - -htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) -/Flowchart.png "Engineering Flowchart" - -/Savings Account.csv 'Recent Transactions' -/Example.swift (Source code) -/Lorem Ipsum.txt ->>> -codeSpan: contentBlocks -interblockSeparator -interblockSeparator -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -interblockSeparator -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test deleted file mode 100644 index aab1caa4fb..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test +++ /dev/null @@ -1,22 +0,0 @@ -<<< -This test ensures that the Lua `fencedCode` option is disabled by default. The -following fenced code block should resolve to a code spans. - -``` foo -bar -``` - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -interblockSeparator -codeSpan: foo bar -interblockSeparator -tilde -tilde -tilde -tilde -tilde -tilde diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test deleted file mode 100644 index ba752d6e8d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test +++ /dev/null @@ -1,35 +0,0 @@ -<<< -This test ensures that the Lua `headerAttributes` option is disabled by default. - -# A level one heading {#first-id} - -A level one heading {#second_id2} -================================= - -## A level two heading ### {#third-3id .a-class} - -A level two heading {#fourth4-id .2not-a-class} ------------------------------------------------ - -### A level three heading ## {#5not-the-fifth-id} -#### A level four heading {#-6not-the-sixth-id} -##### A level five heading ## {#--7the-seventh-id} -###### A level six heading {#-_the-eighth-id attribute=value} ->>> -codeSpan: headerAttributes -interblockSeparator -headingOne: A level one heading (leftBrace)(hash)first-id(rightBrace) -interblockSeparator -headingOne: A level one heading (leftBrace)(hash)second(underscore)id2(rightBrace) -interblockSeparator -headingTwo: A level two heading (hash)(hash)(hash) (leftBrace)(hash)third-3id .a-class(rightBrace) -interblockSeparator -headingTwo: A level two heading (leftBrace)(hash)fourth4-id .2not-a-class(rightBrace) -interblockSeparator -headingThree: A level three heading (hash)(hash) (leftBrace)(hash)5not-the-fifth-id(rightBrace) -interblockSeparator -headingFour: A level four heading (leftBrace)(hash)-6not-the-sixth-id(rightBrace) -interblockSeparator -headingFive: A level five heading (hash)(hash) (leftBrace)(hash)--7the-seventh-id(rightBrace) -interblockSeparator -headingSix: A level six heading (leftBrace)(hash)-(underscore)the-eighth-id attribute=value(rightBrace) diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test deleted file mode 100644 index cf1763f854..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test +++ /dev/null @@ -1,53 +0,0 @@ -<<< -This test ensures that the Lua `html` option is disabled by default. - -
-*There is no block tag support.* -
-*There is no support.* -_There is no support._ -_There is no support._ - -Here are several ways to write a pipe: - -- | -- | -- | -- | -- | -- | - -Unrecognized character entities are ignored: &nonsense; ->>> -codeSpan: html -interblockSeparator -emphasis: There is no block tag support. -emphasis: There is no support. -emphasis: There is no support. -emphasis: There is no support. -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -pipe -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -hash -ulItemEnd -ulItem -ampersand -hash -ulItemEnd -ulEndTight -interblockSeparator -ampersand diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test deleted file mode 100644 index d1f3100921..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test +++ /dev/null @@ -1,65 +0,0 @@ -<<< -This test ensures that the Lua `hybrid` option is disabled by default. The -following special characters should be processed by lunamark. - - * \char`{ - * \char`} - * \char`$ - * \char`\% - * \char`& - * \char`_ - * \char`# - * \char`^ - * \char`\ - * \char`~ - * \char`| ->>> -codeSpan: hybrid -interblockSeparator -ulBeginTight -ulItem -backslash -leftBrace -ulItemEnd -ulItem -backslash -rightBrace -ulItemEnd -ulItem -backslash -dollarSign -ulItemEnd -ulItem -backslash -backslash -percentSign -ulItemEnd -ulItem -backslash -ampersand -ulItemEnd -ulItem -backslash -underscore -ulItemEnd -ulItem -backslash -hash -ulItemEnd -ulItem -backslash -circumflex -ulItemEnd -ulItem -backslash -backslash -ulItemEnd -ulItem -backslash -tilde -ulItemEnd -ulItem -backslash -pipe -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test deleted file mode 100644 index 52053b3393..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -This test ensures that the Lua `inlineFootnotes` option is disabled by default. -The following inline footnotes should resolve to footnotes. - -^[Here is the footnote. It can go anywhere after the footnote -reference. It need *not* be placed at the end of the document.] - -\^[This should *not* be a footnote, because it has been escaped.] ->>> -codeSpan: inlineFootnotes -interblockSeparator -circumflex -emphasis: not -interblockSeparator -circumflex -emphasis: not diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test deleted file mode 100644 index ef1545c2fc..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test +++ /dev/null @@ -1,41 +0,0 @@ -<<< -This test ensures that the Lua `pipeTables` option is disabled by default. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of pipe table syntax. ->>> -codeSpan: pipeTables -interblockSeparator -pipe -pipe -emphasis: Left -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -strongEmphasis: 123 -pipe -pipe -pipe -pipe -pipe -pipe -pipe -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test deleted file mode 100644 index 35c21a73d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test +++ /dev/null @@ -1,35 +0,0 @@ -<<< -This test ensures that the Lua `shiftHeadings` option is disabled by default. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingThree: A level three heading -interblockSeparator -headingFour: A level four heading -interblockSeparator -headingFive: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test deleted file mode 100644 index 130042e81f..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test +++ /dev/null @@ -1,251 +0,0 @@ -\def\markdownOptionHeaderAttributes{true} -<<< -This test ensures that the Lua `slice` option processes the entire document by -default. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -codeSpan: slice -interblockSeparator -headingOne: This is an H1 -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -interblockSeparator -interblockSeparator -codeSpan: latex (backslash)documentclass(leftBrace)article(rightBrace) (backslash)begin(leftBrace)document(rightBrace) Hello world! (backslash)end(leftBrace)document(rightBrace) -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 5 -interblockSeparator -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -hash -interblockSeparator -inputVerbatim: ./_markdown_test/484324226416f8957283b25427f6a56e.verbatim -interblockSeparator -hash -hash -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 5 -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -hash -hash -hash -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -emphasis: Term 2 -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/75062d55efa99b0f4cb94891f3745f93.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -emphasis: Term 2 -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd -interblockSeparator -circumflex -circumflex -circumflex diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test deleted file mode 100644 index 49e03d7653..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test +++ /dev/null @@ -1,41 +0,0 @@ -\def\markdownOptionStartNumber{false} -<<< -This test ensures that the Lua `startNumber` option correctly propagates -through the plain TeX interface. The following lists should not receive -any starting number. - -Tight: - -3. three -4. four -5. five - -Loose: - -3. three - -4. four - -5. five ->>> -codeSpan: startNumber -interblockSeparator -interblockSeparator -olBeginTight -olItem -olItemEnd -olItem -olItemEnd -olItem -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItem -olItemEnd -olItem -olItemEnd -olItem -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test deleted file mode 100644 index a077a44db7..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -This test ensures that the plain TeX `stripPercentSigns` option is disabled by -default. - -The following emphasized text *should contain the percent sign at the -% beginning of the line*. ->>> -codeSpan: stripPercentSigns -interblockSeparator -emphasis: should contain the percent sign at the (percentSign) beginning of the line diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test deleted file mode 100644 index 7bcab8e5b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test +++ /dev/null @@ -1,79 +0,0 @@ -\def\markdownOptionPipeTables{true} -<<< -This test ensures that the Lua `tableCaptions` option is disabled by -default. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - Table: Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -A caption may not span multiple paragraphs. ->>> -codeSpan: tableCaptions -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -emphasis: pipe table -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -emphasis: pipe table -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test deleted file mode 100644 index 446eb681fc..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test +++ /dev/null @@ -1,19 +0,0 @@ -\def\markdownOptionTightLists{false} -<<< -This test ensures that the Lua `tightLists` option correctly propagates -through the plain TeX interface. The following list should be regular. - -3. three -4. four -5. five ->>> -codeSpan: tightLists -interblockSeparator -olBegin -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test deleted file mode 100644 index 6e24e3c6d0..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test +++ /dev/null @@ -1,15 +0,0 @@ -\def\markdownOptionUnderscores{false} -\def\markdownOptionHybrid{true} -<<< -This test ensures that the Lua `underscores` option correctly propagates -through the plain TeX interface. - -This is a math expression: $\sqrt{\sum_{i=0}^n (a_i + b_i)^2}$. -\begingroup\catcode`\_=12 -This __is no__ strongly emphasized span of text. -This **is** a strongly emphasized span of text. -\endgroup ->>> -codeSpan: underscores -interblockSeparator -strongEmphasis: is diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test deleted file mode 100644 index 127658d479..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionShiftHeadings{-2} -<<< -This test ensures that the Lua `shiftHeadings` option correctly propagates -through the plain TeX interface. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level two heading -interblockSeparator -headingOne: A level two heading -interblockSeparator -headingOne: A level three heading -interblockSeparator -headingTwo: A level four heading -interblockSeparator -headingThree: A level five heading -interblockSeparator -headingFour: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test deleted file mode 100644 index f38f9d44e9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionShiftHeadings{2} -<<< -This test ensures that the Lua `shiftHeadings` option correctly propagates -through the plain TeX interface. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingThree: A level one heading -interblockSeparator -headingThree: A level one heading -interblockSeparator -headingFour: A level two heading -interblockSeparator -headingFour: A level two heading -interblockSeparator -headingFive: A level three heading -interblockSeparator -headingSix: A level four heading -interblockSeparator -headingSix: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test deleted file mode 100644 index affb0a44c3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test +++ /dev/null @@ -1,155 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{$second-h2 $} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd -interblockSeparator -footnote: Here is the footnote. -footnote: Here's one with multiple blocks.(interblockSeparator)Subsequent paragraphs are indented to show that they belong to the previous footnote.(interblockSeparator)(inputVerbatim: ./_markdown_test/384313ed77c3960a536af8343b57216d.verbatim)(interblockSeparator)The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items. -footnote: Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test deleted file mode 100644 index d291815912..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test +++ /dev/null @@ -1,182 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{first-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -ellipsis -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: scientists.csv -- title: The great minds of the 19th century rendered via a content block -END contentBlock -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5ccbfd8d1e383aae968fc8c9b1412c8e.verbatim -- infostring: latex -END fencedCode -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test deleted file mode 100644 index d2a7cd5b8e..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test +++ /dev/null @@ -1,141 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{third-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test deleted file mode 100644 index 1891c5ecad..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test +++ /dev/null @@ -1,148 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{^ ^first-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -codeSpan: slice -interblockSeparator -headingOne: This is an H1 -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test deleted file mode 100644 index d202fd3e42..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test +++ /dev/null @@ -1,278 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{first-h2 second-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - - ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package") - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -ellipsis -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: scientists.csv -- title: The great minds of the 19th century rendered via a content block -END contentBlock -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5ccbfd8d1e383aae968fc8c9b1412c8e.verbatim -- infostring: latex -END fencedCode -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 5 -interblockSeparator -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -interblockSeparator -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 5 -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: Term 1 -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: Term 2) -dlDefinitionBegin -interblockSeparator -inputVerbatim: ./_markdown_test/341d9e6b078ab6ffb77652958c88c4ef.verbatim -interblockSeparator -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: Term 1 -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: Term 2) -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test deleted file mode 100644 index 8f0245016f..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -This test ensures that the Lua `startNumber` option is enabled by default. The -following lists should start with number three. - -Tight: - -3. three -4. four -5. five - -Loose: - -3. three - -4. four - -5. five ->>> -codeSpan: startNumber -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test deleted file mode 100644 index 11db7c69e6..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test +++ /dev/null @@ -1,76 +0,0 @@ -\def\markdownOptionPipeTables{true} -\def\markdownOptionTableCaptions{true} -<<< -This test ensures that the Lua `tableCaptions` option correctly propagates -through the plain TeX interface. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - Table: Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -A caption may not span multiple paragraphs. ->>> -codeSpan: tableCaptions -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines. -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines. -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test deleted file mode 100644 index 47ecbcb726..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -This test ensures that the Lua `tightLists` option is enabled by default. The -following list should be tight. - -3. three -4. four -5. five ->>> -codeSpan: tightLists -interblockSeparator -olBeginTight -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/README.md b/macros/generic/markdown/tests/testfiles/lunamark/README.md deleted file mode 100644 index 59a2e70f47..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/lunamark/` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test b/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test deleted file mode 100644 index 4f1f3fb24b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test +++ /dev/null @@ -1,8 +0,0 @@ -<<< -[hi `there] bud`](/url) ->>> -BEGIN link -- label: hi (codeSpan: there] bud) -- URI: /url -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test b/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test deleted file mode 100644 index 4b2e6ad26b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -[hI] - -[Hi]: /foo ->>> -BEGIN link -- label: hI -- URI: /foo -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test b/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test deleted file mode 100644 index 56aaf8a8b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test +++ /dev/null @@ -1,19 +0,0 @@ -<<< -- one -- two -1. one -2. two ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test b/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test deleted file mode 100644 index 35e5ef684b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test +++ /dev/null @@ -1,200 +0,0 @@ -\def\markdownOptionDefinitionLists{true} -<<< -Tight using spaces: - -apple -: red fruit -orange -: orange fruit -banana -: yellow fruit - -Tight using tabs: - -apple -: red fruit -orange -: orange fruit -banana -: yellow fruit - -Loose: - -apple -: red fruit - -orange -: orange fruit - -banana -: yellow fruit - -Multiple blocks with italics: - -*apple* -: red fruit - - contains seeds, - crisp, pleasant to taste - -*orange* -: orange fruit - - { orange code block } - - > orange block quote - -Multiple definitions, tight: - -apple -: red fruit -: computer -orange -: orange fruit -: bank - -Multiple definitions, loose: - -apple -: red fruit - -: computer - -orange -: orange fruit - -: bank - -Blank line after term, indented marker, alternate markers: - -apple - - ~ red fruit - - ~ computer - -orange - - ~ orange fruit - - 1. sublist - 2. sublist ->>> -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBegin -dlItem: (emphasis: apple) -dlDefinitionBegin -interblockSeparator -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: orange) -dlDefinitionBegin -interblockSeparator -inputVerbatim: ./_markdown_test/f9f08689e38f4705165b9018b14b4a09.verbatim -interblockSeparator -blockQuoteBegin -blockQuoteEnd -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight -dlDefinitionEnd -dlItemEnd -dlEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test b/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test deleted file mode 100644 index 94f63fd2ad..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test +++ /dev/null @@ -1,11 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -<<< -#. one -#. two ->>> -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test b/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test deleted file mode 100644 index 8e35081172..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -1. Just a small test - - This is some code - - and some indented code - - and this is the end ->>> -olBegin -olItemWithNumber: 1 -interblockSeparator -inputVerbatim: ./_markdown_test/36d7a0503b844c792d46549a49b6e7b8.verbatim -interblockSeparator -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test b/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test deleted file mode 100644 index 4e7f84248d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test +++ /dev/null @@ -1,42 +0,0 @@ -<<< - * item 1 - * item 1a - * item 2 -* item 2a - * item 2b - * item 2c - * item 3 - ----- - - 8. item 1 - 9. item 2 -10. item 2a ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -horizontalRule -interblockSeparator -olBeginTight -olItemWithNumber: 8 -olItemEnd -olItemWithNumber: 9 -olItemEnd -olItemWithNumber: 10 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test b/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test deleted file mode 100644 index cffd38dc87..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -+ item 1 - - + item 2 - - * * * * * ->>> -ulBegin -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -ulItemEnd -ulEnd -interblockSeparator -horizontalRule diff --git a/macros/generic/markdown/tests/testfiles/lunamark/notes.test b/macros/generic/markdown/tests/testfiles/lunamark/notes.test deleted file mode 100644 index 312090de8a..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/notes.test +++ /dev/null @@ -1,27 +0,0 @@ -\def\markdownOptionFootnotes{true} -<<< -Here is a footnote reference,[^1] and another.[^longnote] -This should *not* be a footnote reference, because it has not been -defined.[^my note] - -[^longnote]: Here's the long note. This one contains multiple blocks. - - Subsequent blocks are indented to show that they belong to the -footnote (as with list items). - - { } - - If you want, you can indent every line, but you can also be - lazy and just indent the first line of each block. - -This paragraph should not be part of the note, as it is not indented. - - [^1]: Here is the footnote. It can go anywhere after the footnote - reference. It need not be placed at the end of the document. - ->>> -footnote: Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. -footnote: Here's the long note. This one contains multiple blocks.(interblockSeparator)Subsequent blocks are indented to show that they belong to the footnote (as with list items).(interblockSeparator)(inputVerbatim: ./_markdown_test/7f88af46ac2c38c6ee0c6837fcb8cbc6.verbatim)(interblockSeparator)If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. -emphasis: not -circumflex -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test b/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test deleted file mode 100644 index 8bafd8f0d4..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test +++ /dev/null @@ -1,12 +0,0 @@ -<<< -> [foo] -> -> [foo]: /bar ->>> -blockQuoteBegin -BEGIN link -- label: foo -- URI: /bar -- title: -END link -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test b/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test deleted file mode 100644 index 9c476ac354..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test +++ /dev/null @@ -1,5 +0,0 @@ -\def\markdownOptionBlankBeforeBlockquote{true} -<<< -Hi -> no quote ->>> diff --git a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test b/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test deleted file mode 100644 index 4ed22912e7..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test +++ /dev/null @@ -1,6 +0,0 @@ -\def\markdownOptionBlankBeforeHeading{true} -<<< -Hi -# No header ->>> -hash diff --git a/macros/generic/markdown/tests/testfiles/lunamark/smart.test b/macros/generic/markdown/tests/testfiles/lunamark/smart.test deleted file mode 100644 index ce48cf374c..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/smart.test +++ /dev/null @@ -1,7 +0,0 @@ -\def\markdownOptionSmartEllipses{true} -<<< -Ellipses...and...and.... ->>> -ellipsis -ellipsis -ellipsis diff --git a/macros/generic/markdown/tests/testfiles/lunamark/unicode.test b/macros/generic/markdown/tests/testfiles/lunamark/unicode.test deleted file mode 100644 index 1392aa0915..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/unicode.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -[Beiß nicht in die Hand, die dich füttert.] - -[BEIß NICHT IN DIE HAND, DIE DICH FÜTTERT.]: http://en.wikiquote.org/wiki/German_proverbs ->>> -BEGIN link -- label: Beiß nicht in die Hand, die dich füttert. -- URI: http://en.wikiquote.org/wiki/German(underscore)proverbs -- title: -END link -- cgit v1.2.3