From 2f519053d440390c7a7fa45e334646d66aecc470 Mon Sep 17 00:00:00 2001 From: ayan-b Date: Fri, 29 Jun 2018 02:26:33 +0530 Subject: [PATCH] Add events #6 --- index.html | 2 +- js/main.js | 2 - static/showdown/.appveyor.yml | 40 + static/showdown/.editorconfig | 15 + static/showdown/.eslintrc.json | 27 + static/showdown/.gitattributes | 26 + static/showdown/.gitignore | 6 + static/showdown/.jshintignore | 5 + static/showdown/.jshintrc | 29 + static/showdown/.travis.yml | 26 + static/showdown/CHANGELOG.md | 731 +++ static/showdown/CONTRIBUTING.md | 74 + static/showdown/CREDITS.md | 48 + static/showdown/DONATIONS.md | 26 + static/showdown/Gruntfile.js | 216 + static/showdown/README.md | 531 ++ static/showdown/bin/showdown.js | 2 + static/showdown/bower.json | 32 + static/showdown/dist/showdown.js | 5092 +++++++++++++++++ static/showdown/dist/showdown.js.map | 1 + static/showdown/dist/showdown.min.js | 3 + static/showdown/dist/showdown.min.js.map | 1 + static/showdown/license.txt | 34 + static/showdown/package-lock.json | 3929 +++++++++++++ static/showdown/package.json | 65 + static/showdown/performance.json | 1 + static/showdown/performance.log.md | 744 +++ static/showdown/src/cli/cli.js | 45 + static/showdown/src/cli/makehtml.cmd.js | 195 + static/showdown/src/cli/messenger.js | 40 + static/showdown/src/converter.js | 1040 ++++ static/showdown/src/helpers.js | 1609 ++++++ static/showdown/src/loader.js | 17 + static/showdown/src/options.js | 192 + static/showdown/src/showdown.js | 379 ++ .../src/subParsers/makehtml/anchors.js | 98 + .../src/subParsers/makehtml/autoLinks.js | 79 + .../src/subParsers/makehtml/blockGamut.js | 32 + .../src/subParsers/makehtml/blockQuotes.js | 42 + .../src/subParsers/makehtml/codeBlocks.js | 38 + .../src/subParsers/makehtml/codeSpans.js | 48 + .../makehtml/completeHTMLDocument.js | 62 + .../showdown/src/subParsers/makehtml/detab.js | 33 + .../src/subParsers/makehtml/ellipsis.js | 11 + .../showdown/src/subParsers/makehtml/emoji.js | 26 + .../makehtml/encodeAmpsAndAngles.js | 23 + .../makehtml/encodeBackslashEscapes.js | 21 + .../src/subParsers/makehtml/encodeCode.js | 23 + .../escapeSpecialCharsWithinTagAttributes.js | 26 + .../subParsers/makehtml/githubCodeBlocks.js | 46 + .../src/subParsers/makehtml/hashBlock.js | 8 + .../src/subParsers/makehtml/hashCodeTags.js | 18 + .../src/subParsers/makehtml/hashElement.js | 19 + .../src/subParsers/makehtml/hashHTMLBlocks.js | 98 + .../src/subParsers/makehtml/hashHTMLSpans.js | 64 + .../subParsers/makehtml/hashPreCodeTags.js | 19 + .../src/subParsers/makehtml/headers.js | 126 + .../src/subParsers/makehtml/horizontalRule.js | 15 + .../src/subParsers/makehtml/images.js | 104 + .../src/subParsers/makehtml/italicsAndBold.js | 70 + .../showdown/src/subParsers/makehtml/lists.js | 203 + .../src/subParsers/makehtml/metadata.js | 49 + .../src/subParsers/makehtml/outdent.js | 17 + .../src/subParsers/makehtml/paragraphs.js | 70 + .../src/subParsers/makehtml/runExtension.js | 20 + .../src/subParsers/makehtml/spanGamut.js | 49 + .../src/subParsers/makehtml/strikethrough.js | 18 + .../makehtml/stripLinkDefinitions.js | 53 + .../src/subParsers/makehtml/tables.js | 142 + .../src/subParsers/makehtml/underline.js | 26 + .../makehtml/unescapeSpecialChars.js | 15 + static/showdown/test/cli/basic.html | 3 + static/showdown/test/cli/basic.md | 3 + .../#143.support-image-dimensions.html | 2 + .../features/#143.support-image-dimensions.md | 5 + .../features/#164.1.simple-autolink.html | 6 + .../cases/features/#164.1.simple-autolink.md | 11 + ...disallow-underscore-emphasis-mid-word.html | 10 + ...2.disallow-underscore-emphasis-mid-word.md | 18 + .../cases/features/#164.3.strikethrough.html | 6 + .../cases/features/#164.3.strikethrough.md | 11 + .../cases/features/#164.4.tasklists.html | 8 + .../cases/features/#164.4.tasklists.md | 8 + ...8.markdown-inside-html-does-not-parse.html | 5 + ...178.markdown-inside-html-does-not-parse.md | 6 + ...erscores-changes-behavior-of-asterisk.html | 4 + ...nderscores-changes-behavior-of-asterisk.md | 7 + ...rtain-links-with-at-and-dot-break-url.html | 4 + ...certain-links-with-at-and-dot-break-url.md | 7 + .../#206.treat-single-line-breaks-as-br.html | 2 + .../#206.treat-single-line-breaks-as-br.md | 2 + ...ed-markdown-chars-break-strikethrough.html | 1 + ...aped-markdown-chars-break-strikethrough.md | 1 + ...6-template-strings-indentation-issues.html | 6 + ...es6-template-strings-indentation-issues.md | 5 + ...fiedAutoLink-does-not-match-GFM-style.html | 2 + ...lifiedAutoLink-does-not-match-GFM-style.md | 3 + ...-simpleLineBreaks-option-breaks-lists.html | 48 + ...ew-simpleLineBreaks-option-breaks-lists.md | 51 + ...does-not-work-with-chinese-characters.html | 4 + ...s-does-not-work-with-chinese-characters.md | 5 + ...github-compatible-generated-header-id.html | 3 + ...0.github-compatible-generated-header-id.md | 5 + ...3.simpleLineBreaks-breaks-with-strong.html | 2 + ...323.simpleLineBreaks-breaks-with-strong.md | 2 + ...haracter-before-and-after-linked-mail.html | 1 + ...-character-before-and-after-linked-mail.md | 1 + .../#331.allow-escaping-of-tilde.html | 2 + .../features/#331.allow-escaping-of-tilde.md | 3 + .../cases/features/#374.escape-html-tags.html | 1 + .../cases/features/#374.escape-html-tags.md | 1 + ...th-excludeTrailingPunctuationFromURLs.html | 1 + ...with-excludeTrailingPunctuationFromURLs.md | 1 + ...penLinksInNewWindow-breaks-em-markdup.html | 2 + ....openLinksInNewWindow-breaks-em-markdup.md | 3 + ...ats-non-word-characters-as-characters.html | 1 + ...reats-non-word-characters-as-characters.md | 1 + .../features/#69.header-level-start.html | 5 + .../cases/features/#69.header-level-start.md | 11 + .../features/completeHTMLOutput/simple.html | 15 + .../features/completeHTMLOutput/simple.md | 7 + .../features/customizedHeaderId-simple.html | 4 + .../features/customizedHeaderId-simple.md | 4 + .../features/disable-email-encoding.html | 1 + .../cases/features/disable-email-encoding.md | 1 + .../cases/features/disable-gh-codeblocks.html | 7 + .../cases/features/disable-gh-codeblocks.md | 9 + .../disableForced4SpacesIndentedSublists.html | 9 + .../disableForced4SpacesIndentedSublists.md | 7 + .../.gitkeep} | 0 .../cases/features/emojis/complex.html | 3 + .../makehtml/cases/features/emojis/complex.md | 5 + .../makehtml/cases/features/emojis/links.html | 4 + .../makehtml/cases/features/emojis/links.md | 11 + .../cases/features/emojis/simple.html | 2 + .../makehtml/cases/features/emojis/simple.md | 3 + .../features/emojis/simplifiedautolinks.html | 1 + .../features/emojis/simplifiedautolinks.md | 1 + .../cases/features/emojis/special.html | 2 + .../makehtml/cases/features/emojis/special.md | 3 + ...udeTrailingPunctuationFromURLs-option.html | 6 + ...cludeTrailingPunctuationFromURLs-option.md | 11 + .../makehtml/cases/features/ghMentions.html | 3 + .../makehtml/cases/features/ghMentions.md | 5 + .../literalMidWordAsterisks/basic.html | 29 + .../features/literalMidWordAsterisks/basic.md | 56 + .../punctation-test.html | 7 + .../punctation-test.md | 8 + .../literalMidWordUnderscores/basic.html | 9 + .../literalMidWordUnderscores/basic.md | 17 + .../punctation-test.html | 7 + .../punctation-test.md | 8 + .../features/metadata/dashes-conflict.html | 8 + .../features/metadata/dashes-conflict.md | 16 + .../features/metadata/embeded-in-output.html | 16 + .../features/metadata/embeded-in-output.md | 16 + ...ive-metadata-blocks-different-symbols.html | 22 + ...utive-metadata-blocks-different-symbols.md | 18 + ...beded-two-consecutive-metadata-blocks.html | 22 + ...embeded-two-consecutive-metadata-blocks.md | 18 + .../features/metadata/ignore-metadata.html | 15 + .../features/metadata/ignore-metadata.md | 18 + .../metadata/simple-angled-for-method.html | 1 + .../metadata/simple-angled-for-method.md | 6 + .../metadata/simple-angled-quotes.html | 1 + .../features/metadata/simple-angled-quotes.md | 16 + .../metadata/simple-three-dashes.html | 1 + .../features/metadata/simple-three-dashes.md | 16 + .../features/metadata/simple-with-format.html | 1 + .../features/metadata/simple-with-format.md | 9 + .../hash-links-open-in-same-page.html | 1 + .../hash-links-open-in-same-page.md | 1 + .../openLinksInNewWindow/simple-cases.html | 2 + .../openLinksInNewWindow/simple-cases.md | 3 + .../features/openLinksInNewWindow/simple.html | 2 + .../features/openLinksInNewWindow/simple.md | 3 + .../simplifiedAutoLink.html | 1 + .../simplifiedAutoLink.md | 1 + .../cases/features/prefixHeaderId-simple.html | 1 + .../cases/features/prefixHeaderId-simple.md | 1 + ...derId-string-and-ghCompatibleHeaderId.html | 1 + ...eaderId-string-and-ghCompatibleHeaderId.md | 1 + ...erId-string-and-ghCompatibleHeaderId2.html | 1 + ...aderId-string-and-ghCompatibleHeaderId2.md | 1 + .../cases/features/prefixHeaderId-string.html | 1 + .../cases/features/prefixHeaderId-string.md | 1 + .../cases/features/rawHeaderId/simple.html | 1 + .../cases/features/rawHeaderId/simple.md | 1 + .../rawHeaderId/with-prefixHeaderId.html | 2 + .../rawHeaderId/with-prefixHeaderId.md | 3 + .../simple-with-prefixHeaderId.html | 1 + .../simple-with-prefixHeaderId.md | 1 + .../requireSpaceBeforeHeadingText.html | 2 + .../features/requireSpaceBeforeHeadingText.md | 3 + .../simpleLineBreaks-handle-html-pre.html | 4 + .../simpleLineBreaks-handle-html-pre.md | 4 + .../cases/features/simpleLineBreaks2.html | 13 + .../cases/features/simpleLineBreaks2.md | 18 + .../autolinks-with-magic-chars.html | 1 + .../autolinks-with-magic-chars.md | 1 + .../simplifiedAutoLink/blockquote.html | 3 + .../features/simplifiedAutoLink/blockquote.md | 1 + .../disallow-underscores.html | 1 + .../disallow-underscores.md | 1 + .../does-not-parse-inside-a-tags.html | 1 + .../does-not-parse-inside-a-tags.md | 1 + .../does-not-parse-inside-code.html | 6 + .../does-not-parse-inside-code.md | 5 + .../does-not-parse-reference-links.html | 1 + .../does-not-parse-reference-links.md | 3 + .../emphasis-and-strikethrough.html | 7 + .../emphasis-and-strikethrough.md | 13 + .../simplifiedAutoLink/ordered-lists.html | 11 + .../simplifiedAutoLink/ordered-lists.md | 11 + .../features/simplifiedAutoLink/text.html | 6 + .../cases/features/simplifiedAutoLink/text.md | 13 + .../simplifiedAutoLink/unordered-lists.html | 11 + .../simplifiedAutoLink/unordered-lists.md | 11 + .../splitAdjacentBlockquotes/basic.html | 8 + .../splitAdjacentBlockquotes/basic.md | 7 + .../multiline-paragraph.html | 6 + .../multiline-paragraph.md | 5 + .../tables/#179.parse-md-in-table-ths.html | 16 + .../tables/#179.parse-md-in-table-ths.md | 3 + ...eparators-should-not-require-3-dashes.html | 14 + ...-separators-should-not-require-3-dashes.md | 3 + .../tables/#345.escape-pipe-character.html | 30 + .../tables/#345.escape-pipe-character.md | 7 + ...406.does-not-render-one-column-tables.html | 81 + .../#406.does-not-render-one-column-tables.md | 26 + ...ailing-spaces-break-one-column-tables.html | 15 + ...trailing-spaces-break-one-column-tables.md | 4 + ...owed-by-list-does-not-parse-correctly.html | 21 + ...llowed-by-list-does-not-parse-correctly.md | 7 + ...owed-by-list-does-not-parse-correctly.html | 29 + ...llowed-by-list-does-not-parse-correctly.md | 7 + ...465.code-spans-with-pipes-break-table.html | 14 + .../#465.code-spans-with-pipes-break-table.md | 3 + ...s-not-rendered-correctly-inside-table.html | 14 + ...-is-not-rendered-correctly-inside-table.md | 3 + .../features/tables/basic-alignment.html | 18 + .../cases/features/tables/basic-alignment.md | 4 + .../tables/basic-with-header-ids.html | 18 + .../features/tables/basic-with-header-ids.md | 4 + .../makehtml/cases/features/tables/basic.html | 18 + .../makehtml/cases/features/tables/basic.md | 4 + .../features/tables/gh-style-tables.html | 21 + .../cases/features/tables/gh-style-tables.md | 4 + .../tables/large-table-with-allignments.html | 42 + .../tables/large-table-with-allignments.md | 7 + .../makehtml/cases/features/tables/large.html | 42 + .../makehtml/cases/features/tables/large.md | 7 + .../features/tables/mixed-alignment.html | 26 + .../cases/features/tables/mixed-alignment.md | 5 + .../features/tables/multiple-tables.html | 35 + .../cases/features/tables/multiple-tables.md | 17 + .../tables/table-inside-codeblock.html | 7 + .../features/tables/table-inside-codeblock.md | 8 + .../tables/table-without-leading-pipe.html | 47 + .../tables/table-without-leading-pipe.md | 8 + .../cases/features/tables/with-equals.html | 18 + .../cases/features/tables/with-equals.md | 4 + .../features/tables/with-span-elements.html | 26 + .../features/tables/with-span-elements.md | 9 + .../features/tables/with-surroundings.html | 28 + .../features/tables/with-surroundings.md | 16 + .../cases/features/tables/without-body.html | 10 + .../cases/features/tables/without-body.md | 2 + .../tables/without-header-delimiter.html | 1 + .../tables/without-header-delimiter.md | 1 + .../cases/features/underline/fulltext.html | 368 ++ .../cases/features/underline/fulltext.md | 520 ++ .../cases/features/underline/simple.html | 4 + .../cases/features/underline/simple.md | 7 + .../makehtml/cases/ghost/markdown-magic.html | 31 + .../makehtml/cases/ghost/markdown-magic.md | 43 + .../makehtml/cases/ghost/underscore.html | 46 + .../makehtml/cases/ghost/underscore.md | 77 + .../#107.inner-underscore-parse-to-block.html | 6 + .../#107.inner-underscore-parse-to-block.md | 11 + ...aviour-for-multiple-consecutive-lists.html | 12 + ...ehaviour-for-multiple-consecutive-lists.md | 8 + .../#150.hyphens-are-getting-removed.html | 1 + .../#150.hyphens-are-getting-removed.md | 1 + ...s-within-lists-do-not-render-properly.html | 12 + ...cks-within-lists-do-not-render-properly.md | 17 + ...191.blockquote-followed-by-an-heading.html | 4 + .../#191.blockquote-followed-by-an-heading.md | 2 + ...6.entity-in-code-block-in-nested-list.html | 11 + ...196.entity-in-code-block-in-nested-list.md | 10 + .../#220.html-breaks-markdown-parsing.html | 5 + .../#220.html-breaks-markdown-parsing.md | 11 + ...de-being-parsed-inside-HTML-code-tags.html | 22 + ...code-being-parsed-inside-HTML-code-tags.md | 25 + ...de-being-parsed-inside-HTML-code-tags.html | 16 + ...code-being-parsed-inside-HTML-code-tags.md | 16 + ...agraphs-are-ignored-between-code-tags.html | 10 + ...aragraphs-are-ignored-between-code-tags.md | 12 + ...rong-lt-parsing-when-attached-to-word.html | 5 + ....wrong-lt-parsing-when-attached-to-word.md | 9 + .../issues/#261.mix-images-with-links.html | 9 + .../issues/#261.mix-images-with-links.md | 19 + ...-style-image-does-not-work-correctely.html | 3 + ...ne-style-image-does-not-work-correctely.md | 7 + ...e-style-link-does-not-work-correctely.html | 3 + ...ine-style-link-does-not-work-correctely.md | 7 + ...d-correctly-when-nested-in-list-items.html | 18 + ...ted-correctly-when-nested-in-list-items.md | 21 + ...nordered-list-inconsistent-behavior-2.html | 50 + ...-unordered-list-inconsistent-behavior-2.md | 42 + ...nordered-list-inconsistent-behavior-3.html | 15 + ...-unordered-list-inconsistent-behavior-3.md | 9 + ...-unordered-list-inconsistent-behavior.html | 47 + ...ed-unordered-list-inconsistent-behavior.md | 37 + .../#312.spaced-dashes-followed-by-char.html | 15 + .../#312.spaced-dashes-followed-by-char.md | 13 + .../#312.spaced-dashes-followed-by-char2.html | 8 + .../#312.spaced-dashes-followed-by-char2.md | 7 + .../#312.spaced-dashes-followed-by-char3.html | 10 + .../#312.spaced-dashes-followed-by-char3.md | 10 + .../#312.spaced-dashes-followed-by-char4.html | 3 + .../#312.spaced-dashes-followed-by-char4.md | 1 + .../cases/issues/#317.spaces-before-hr.html | 2 + .../cases/issues/#317.spaces-before-hr.md | 3 + ...stent-behavior-of-emphasis-and-strong.html | 21 + ...sistent-behavior-of-emphasis-and-strong.md | 41 + ...#345.no-escape-for-the-pipe-character.html | 1 + .../#345.no-escape-for-the-pipe-character.md | 1 + .../#390.brackets-in-URL-break-images.html | 4 + .../#390.brackets-in-URL-break-images.md | 9 + .../#390.brackets-in-URL-break-links.html | 3 + .../#390.brackets-in-URL-break-links.md | 7 + ...93.showdown-hangs-with-malformed-html.html | 1 + ...#393.showdown-hangs-with-malformed-html.md | 1 + .../#397.unordered-list-strange-behavior.html | 14 + .../#397.unordered-list-strange-behavior.md | 11 + .../#429.multiline-base64-image-support.html | 3 + .../#429.multiline-base64-image-support.md | 9 + .../#467.header-ids-for-subheadings.html | 5 + .../issues/#467.header-ids-for-subheadings.md | 9 + ...83.parsed-text-links-with-underscores.html | 3 + .../#83.parsed-text-links-with-underscores.md | 5 + .../issues/#96.underscores-in-links.html | 2 + .../cases/issues/#96.underscores-in-links.md | 3 + .../URLs-with-multiple-parenthesis.html | 5 + .../issues/URLs-with-multiple-parenthesis.md | 9 + .../makehtml/cases/issues/crazy-urls.html | 14 + .../makehtml/cases/issues/crazy-urls.md | 27 + .../issues/deeply-nested-HTML-blocks.html | 12 + .../cases/issues/deeply-nested-HTML-blocks.md | 12 + .../cases/issues/handle-html-pre.html | 4 + .../makehtml/cases/issues/handle-html-pre.md | 4 + .../cases/issues/one-line-HTML-input.html | 3 + .../cases/issues/one-line-HTML-input.md | 3 + .../2-paragraphs-hard-return-spaces.html | 4 + .../2-paragraphs-hard-return-spaces.md | 5 + .../karlcow/2-paragraphs-hard-return.html | 4 + .../cases/karlcow/2-paragraphs-hard-return.md | 5 + .../karlcow/2-paragraphs-line-returns.html | 2 + .../karlcow/2-paragraphs-line-returns.md | 5 + .../karlcow/2-paragraphs-line-spaces.html | 2 + .../cases/karlcow/2-paragraphs-line-spaces.md | 3 + .../cases/karlcow/2-paragraphs-line-tab.html | 2 + .../cases/karlcow/2-paragraphs-line-tab.md | 3 + .../cases/karlcow/2-paragraphs-line.html | 2 + .../cases/karlcow/2-paragraphs-line.md | 3 + .../makehtml/cases/karlcow/EOL-CR+LF.html | 3 + .../makehtml/cases/karlcow/EOL-CR+LF.md | 6 + .../makehtml/cases/karlcow/EOL-CR.html | 1 + .../makehtml/cases/karlcow/EOL-CR.md | 1 + .../makehtml/cases/karlcow/EOL-LF.html | 3 + .../makehtml/cases/karlcow/EOL-LF.md | 6 + .../cases/karlcow/ampersand-text-flow.html | 1 + .../cases/karlcow/ampersand-text-flow.md | 1 + .../makehtml/cases/karlcow/ampersand-uri.html | 1 + .../makehtml/cases/karlcow/ampersand-uri.md | 1 + .../cases/karlcow/asterisk-near-text.html | 1 + .../cases/karlcow/asterisk-near-text.md | 1 + .../makehtml/cases/karlcow/asterisk.html | 1 + .../makehtml/cases/karlcow/asterisk.md | 1 + .../cases/karlcow/backslash-escape.html | 12 + .../cases/karlcow/backslash-escape.md | 12 + .../karlcow/blockquote-added-markup.html | 4 + .../cases/karlcow/blockquote-added-markup.md | 3 + .../karlcow/blockquote-line-2-paragraphs.html | 4 + .../karlcow/blockquote-line-2-paragraphs.md | 3 + .../cases/karlcow/blockquote-line.html | 3 + .../makehtml/cases/karlcow/blockquote-line.md | 1 + .../blockquote-multiline-1-space-begin.html | 5 + .../blockquote-multiline-1-space-begin.md | 3 + .../blockquote-multiline-1-space-end.html | 5 + .../blockquote-multiline-1-space-end.md | 3 + .../blockquote-multiline-2-paragraphs.html | 7 + .../blockquote-multiline-2-paragraphs.md | 6 + .../cases/karlcow/blockquote-multiline.html | 5 + .../cases/karlcow/blockquote-multiline.md | 3 + ...ockquote-nested-multiplereturn-level1.html | 7 + ...blockquote-nested-multiplereturn-level1.md | 5 + .../blockquote-nested-multiplereturn.html | 6 + .../blockquote-nested-multiplereturn.md | 3 + .../blockquote-nested-return-level1.html | 7 + .../blockquote-nested-return-level1.md | 3 + .../cases/karlcow/blockquote-nested.html | 6 + .../cases/karlcow/blockquote-nested.md | 2 + .../makehtml/cases/karlcow/code-1-tab.html | 3 + .../makehtml/cases/karlcow/code-1-tab.md | 2 + .../cases/karlcow/code-4-spaces-escaping.html | 3 + .../cases/karlcow/code-4-spaces-escaping.md | 2 + .../makehtml/cases/karlcow/code-4-spaces.html | 3 + .../makehtml/cases/karlcow/code-4-spaces.md | 2 + .../cases/karlcow/em-middle-word.html | 1 + .../makehtml/cases/karlcow/em-middle-word.md | 1 + .../makehtml/cases/karlcow/em-star.html | 1 + .../makehtml/cases/karlcow/em-star.md | 1 + .../makehtml/cases/karlcow/em-underscore.html | 1 + .../makehtml/cases/karlcow/em-underscore.md | 1 + .../cases/karlcow/entities-text-flow.html | 1 + .../cases/karlcow/entities-text-flow.md | 1 + .../header-level1-equal-underlined.html | 1 + .../karlcow/header-level1-equal-underlined.md | 2 + .../header-level1-hash-sign-closed.html | 1 + .../karlcow/header-level1-hash-sign-closed.md | 1 + ...der-level1-hash-sign-trailing-1-space.html | 1 + ...eader-level1-hash-sign-trailing-1-space.md | 2 + ...er-level1-hash-sign-trailing-2-spaces.html | 2 + ...ader-level1-hash-sign-trailing-2-spaces.md | 2 + .../karlcow/header-level1-hash-sign.html | 1 + .../cases/karlcow/header-level1-hash-sign.md | 1 + .../header-level2-dash-underlined.html | 1 + .../karlcow/header-level2-dash-underlined.md | 2 + .../header-level2-hash-sign-closed.html | 1 + .../karlcow/header-level2-hash-sign-closed.md | 1 + .../karlcow/header-level2-hash-sign.html | 1 + .../cases/karlcow/header-level2-hash-sign.md | 1 + .../header-level3-hash-sign-closed.html | 1 + .../karlcow/header-level3-hash-sign-closed.md | 1 + .../karlcow/header-level3-hash-sign.html | 1 + .../cases/karlcow/header-level3-hash-sign.md | 1 + .../header-level4-hash-sign-closed.html | 1 + .../karlcow/header-level4-hash-sign-closed.md | 1 + .../karlcow/header-level4-hash-sign.html | 1 + .../cases/karlcow/header-level4-hash-sign.md | 1 + .../header-level5-hash-sign-closed.html | 1 + .../karlcow/header-level5-hash-sign-closed.md | 1 + .../karlcow/header-level5-hash-sign.html | 1 + .../cases/karlcow/header-level5-hash-sign.md | 1 + .../header-level6-hash-sign-closed.html | 1 + .../karlcow/header-level6-hash-sign-closed.md | 1 + .../karlcow/header-level6-hash-sign.html | 1 + .../cases/karlcow/header-level6-hash-sign.md | 1 + .../horizontal-rule-3-dashes-spaces.html | 1 + .../horizontal-rule-3-dashes-spaces.md | 1 + .../karlcow/horizontal-rule-3-dashes.html | 1 + .../cases/karlcow/horizontal-rule-3-dashes.md | 1 + .../karlcow/horizontal-rule-3-stars.html | 1 + .../cases/karlcow/horizontal-rule-3-stars.md | 1 + .../horizontal-rule-3-underscores.html | 1 + .../karlcow/horizontal-rule-3-underscores.md | 1 + .../karlcow/horizontal-rule-7-dashes.html | 1 + .../cases/karlcow/horizontal-rule-7-dashes.md | 1 + .../cases/karlcow/img-idref-title.html | 1 + .../makehtml/cases/karlcow/img-idref-title.md | 3 + .../makehtml/cases/karlcow/img-idref.html | 1 + .../makehtml/cases/karlcow/img-idref.md | 3 + .../makehtml/cases/karlcow/img-title.html | 1 + .../makehtml/cases/karlcow/img-title.md | 1 + .../makehtml/cases/karlcow/img.html | 1 + .../functional/makehtml/cases/karlcow/img.md | 1 + .../inline-code-escaping-entities.html | 1 + .../karlcow/inline-code-escaping-entities.md | 1 + .../inline-code-with-visible-backtick.html | 1 + .../inline-code-with-visible-backtick.md | 1 + .../makehtml/cases/karlcow/inline-code.html | 1 + .../makehtml/cases/karlcow/inline-code.md | 1 + .../cases/karlcow/line-break-2-spaces.html | 2 + .../cases/karlcow/line-break-2-spaces.md | 2 + .../cases/karlcow/line-break-5-spaces.html | 2 + .../cases/karlcow/line-break-5-spaces.md | 2 + .../cases/karlcow/link-automatic.html | 1 + .../makehtml/cases/karlcow/link-automatic.md | 1 + .../link-bracket-paranthesis-title.html | 1 + .../karlcow/link-bracket-paranthesis-title.md | 1 + .../karlcow/link-bracket-paranthesis.html | 1 + .../cases/karlcow/link-bracket-paranthesis.md | 1 + .../karlcow/link-idref-angle-bracket.html | 1 + .../cases/karlcow/link-idref-angle-bracket.md | 3 + .../karlcow/link-idref-implicit-spaces.html | 1 + .../karlcow/link-idref-implicit-spaces.md | 3 + .../cases/karlcow/link-idref-implicit.html | 1 + .../cases/karlcow/link-idref-implicit.md | 3 + .../cases/karlcow/link-idref-space.html | 1 + .../cases/karlcow/link-idref-space.md | 3 + .../karlcow/link-idref-title-next-line.html | 1 + .../karlcow/link-idref-title-next-line.md | 4 + .../karlcow/link-idref-title-paranthesis.html | 1 + .../karlcow/link-idref-title-paranthesis.md | 3 + .../link-idref-title-single-quote.html | 1 + .../karlcow/link-idref-title-single-quote.md | 3 + .../cases/karlcow/link-idref-title.html | 1 + .../cases/karlcow/link-idref-title.md | 3 + .../makehtml/cases/karlcow/link-idref.html | 1 + .../makehtml/cases/karlcow/link-idref.md | 3 + .../cases/karlcow/list-blockquote.html | 6 + .../makehtml/cases/karlcow/list-blockquote.md | 3 + .../makehtml/cases/karlcow/list-code.html | 6 + .../makehtml/cases/karlcow/list-code.md | 4 + .../karlcow/list-multiparagraphs-tab.html | 9 + .../cases/karlcow/list-multiparagraphs-tab.md | 9 + .../cases/karlcow/list-multiparagraphs.html | 9 + .../cases/karlcow/list-multiparagraphs.md | 9 + .../cases/karlcow/ordered-list-escaped.html | 1 + .../cases/karlcow/ordered-list-escaped.md | 1 + .../karlcow/ordered-list-inner-par-list.html | 6 + .../karlcow/ordered-list-inner-par-list.md | 5 + .../ordered-list-items-random-number.html | 5 + .../ordered-list-items-random-number.md | 3 + .../cases/karlcow/ordered-list-items.html | 5 + .../cases/karlcow/ordered-list-items.md | 3 + .../cases/karlcow/paragraph-hard-return.html | 3 + .../cases/karlcow/paragraph-hard-return.md | 3 + .../cases/karlcow/paragraph-line.html | 1 + .../makehtml/cases/karlcow/paragraph-line.md | 1 + .../paragraph-trailing-leading-spaces.html | 1 + .../paragraph-trailing-leading-spaces.md | 1 + .../cases/karlcow/paragraph-trailing-tab.html | 1 + .../cases/karlcow/paragraph-trailing-tab.md | 1 + .../karlcow/paragraphs-2-leading-spaces.html | 1 + .../karlcow/paragraphs-2-leading-spaces.md | 1 + .../karlcow/paragraphs-3-leading-spaces.html | 1 + .../karlcow/paragraphs-3-leading-spaces.md | 1 + .../karlcow/paragraphs-leading-space.html | 1 + .../cases/karlcow/paragraphs-leading-space.md | 1 + .../karlcow/paragraphs-trailing-spaces.html | 1 + .../karlcow/paragraphs-trailing-spaces.md | 1 + .../cases/karlcow/strong-middle-word.html | 1 + .../cases/karlcow/strong-middle-word.md | 1 + .../makehtml/cases/karlcow/strong-star.html | 1 + .../makehtml/cases/karlcow/strong-star.md | 1 + .../cases/karlcow/strong-underscore.html | 1 + .../cases/karlcow/strong-underscore.md | 1 + .../unordered-list-items-asterisk.html | 5 + .../karlcow/unordered-list-items-asterisk.md | 3 + .../unordered-list-items-dashsign.html | 5 + .../karlcow/unordered-list-items-dashsign.md | 3 + .../unordered-list-items-leading-1space.html | 5 + .../unordered-list-items-leading-1space.md | 3 + .../unordered-list-items-leading-2spaces.html | 5 + .../unordered-list-items-leading-2spaces.md | 3 + .../unordered-list-items-leading-3spaces.html | 5 + .../unordered-list-items-leading-3spaces.md | 3 + .../unordered-list-items-plussign.html | 5 + .../karlcow/unordered-list-items-plussign.md | 3 + .../karlcow/unordered-list-paragraphs.html | 4 + .../karlcow/unordered-list-paragraphs.md | 3 + .../unordered-list-unindented-content.html | 4 + .../unordered-list-unindented-content.md | 2 + .../unordered-list-with-indented-content.html | 7 + .../unordered-list-with-indented-content.md | 5 + .../cases/standard/anchors-by-reference.html | 4 + .../cases/standard/anchors-by-reference.md | 11 + .../standard/anchors-followed-by-brakets.html | 4 + .../standard/anchors-followed-by-brakets.md | 7 + .../cases/standard/automatic-anchors.html | 1 + .../cases/standard/automatic-anchors.md | 2 + .../standard/blockquote-followed-by-code.html | 10 + .../standard/blockquote-followed-by-code.md | 8 + .../standard/blockquote-inside-code.html | 7 + .../cases/standard/blockquote-inside-code.md | 7 + .../standard/blockquote-nested-markdown.html | 10 + .../standard/blockquote-nested-markdown.md | 8 + .../makehtml/cases/standard/blockquote.html | 4 + .../makehtml/cases/standard/blockquote.md | 4 + .../standard/code-block-html-escape.html | 3 + .../cases/standard/code-block-html-escape.md | 4 + .../code-block-with-special-chars.html | 7 + .../standard/code-block-with-special-chars.md | 6 + .../makehtml/cases/standard/code-block.html | 3 + .../makehtml/cases/standard/code-block.md | 4 + .../cases/standard/double-emphasis.html | 4 + .../cases/standard/double-emphasis.md | 7 + .../cases/standard/doubline-list.html | 4 + .../makehtml/cases/standard/doubline-list.md | 4 + .../makehtml/cases/standard/ellipsis.html | 19 + .../makehtml/cases/standard/ellipsis.md | 22 + .../standard/emphasis-inside-inline-code.html | 1 + .../standard/emphasis-inside-inline-code.md | 1 + .../makehtml/cases/standard/emphasis.html | 38 + .../makehtml/cases/standard/emphasis.md | 74 + .../cases/standard/encodeHTMLCodeTags.html | 4 + .../cases/standard/encodeHTMLCodeTags.md | 5 + .../cases/standard/escaped-number-period.html | 1 + .../cases/standard/escaped-number-period.md | 1 + .../makehtml/cases/standard/escaping.html | 16 + .../makehtml/cases/standard/escaping.md | 32 + .../cases/standard/github-style-at-start.html | 5 + .../cases/standard/github-style-at-start.md | 7 + .../github-style-codeblock-inside-quote.html | 12 + .../github-style-codeblock-inside-quote.md | 13 + .../standard/github-style-codeblock.html | 14 + .../cases/standard/github-style-codeblock.md | 26 + .../standard/github-style-linebreaks.html | 3 + .../cases/standard/github-style-linebreaks.md | 4 + .../cases/standard/h1-with-double-hash.html | 1 + .../cases/standard/h1-with-double-hash.md | 1 + .../cases/standard/h1-with-equals.html | 1 + .../makehtml/cases/standard/h1-with-equals.md | 2 + .../cases/standard/h1-with-single-hash.html | 1 + .../cases/standard/h1-with-single-hash.md | 1 + .../cases/standard/h2-with-dashes.html | 1 + .../makehtml/cases/standard/h2-with-dashes.md | 2 + .../cases/standard/h2-with-double-hash.html | 1 + .../cases/standard/h2-with-double-hash.md | 1 + .../cases/standard/h2-with-single-hash.html | 1 + .../cases/standard/h2-with-single-hash.md | 1 + .../cases/standard/h3-with-double-hash.html | 1 + .../cases/standard/h3-with-double-hash.md | 1 + .../cases/standard/h3-with-single-hash.html | 1 + .../cases/standard/h3-with-single-hash.md | 1 + .../cases/standard/h4-with-single-hash.html | 1 + .../cases/standard/h4-with-single-hash.md | 1 + .../cases/standard/h5-with-single-hash.html | 1 + .../cases/standard/h5-with-single-hash.md | 1 + .../cases/standard/h6-with-single-hash.html | 1 + .../cases/standard/h6-with-single-hash.md | 1 + .../cases/standard/horizontal-rules.html | 5 + .../cases/standard/horizontal-rules.md | 10 + .../cases/standard/html-comments.html | 10 + .../makehtml/cases/standard/html-comments.md | 15 + .../standard/html-inside-listed-code.html | 8 + .../cases/standard/html-inside-listed-code.md | 8 + .../cases/standard/html5-strutural-tags.html | 57 + .../cases/standard/html5-strutural-tags.md | 68 + .../standard/images-followed-by-brackets.html | 2 + .../standard/images-followed-by-brackets.md | 3 + .../makehtml/cases/standard/images.html | 6 + .../makehtml/cases/standard/images.md | 14 + .../cases/standard/implicit-anchors.html | 2 + .../cases/standard/implicit-anchors.md | 7 + .../cases/standard/inline-anchors.html | 2 + .../makehtml/cases/standard/inline-anchors.md | 3 + .../makehtml/cases/standard/inline-code.html | 7 + .../makehtml/cases/standard/inline-code.md | 13 + .../cases/standard/inline-escaped-chars.html | 2 + .../cases/standard/inline-escaped-chars.md | 2 + .../cases/standard/inline-style-tag.html | 4 + .../cases/standard/inline-style-tag.md | 5 + .../cases/standard/lazy-blockquote.html | 4 + .../cases/standard/lazy-blockquote.md | 3 + .../cases/standard/line-starts-with-html.html | 2 + .../cases/standard/line-starts-with-html.md | 3 + .../standard/list-followed-by-blockquote.html | 12 + .../standard/list-followed-by-blockquote.md | 9 + .../standard/list-followed-by-ghcode.html | 13 + .../cases/standard/list-followed-by-ghcode.md | 13 + .../cases/standard/list-with-blockquote.html | 7 + .../cases/standard/list-with-blockquote.md | 4 + .../cases/standard/list-with-code.html | 5 + .../makehtml/cases/standard/list-with-code.md | 3 + .../cases/standard/literal-html-tags.html | 5 + .../cases/standard/literal-html-tags.md | 9 + .../cases/standard/multi-paragraph-list.html | 5 + .../cases/standard/multi-paragraph-list.md | 5 + .../standard/multiline-unordered-list.html | 5 + .../standard/multiline-unordered-list.md | 3 + .../cases/standard/nested-blockquote.html | 7 + .../cases/standard/nested-blockquote.md | 5 + .../cases/standard/nested-gh-codeblocks.html | 8 + .../cases/standard/nested-gh-codeblocks.md | 9 + .../cases/standard/obfuscated-emails.html | 0 .../cases/standard/obfuscated-emails.md | 0 .../standard/ordered-list-same-number.html | 5 + .../standard/ordered-list-same-number.md | 3 + .../ordered-list-starting-number.html | 12 + .../standard/ordered-list-starting-number.md | 10 + .../standard/ordered-list-wrong-numbers.html | 5 + .../standard/ordered-list-wrong-numbers.md | 3 + .../makehtml/cases/standard/ordered-list.html | 5 + .../makehtml/cases/standard/ordered-list.md | 3 + .../paragraphed-list-with-sublists.html | 11 + .../paragraphed-list-with-sublists.md | 13 + .../pre-code-tags-inside-code-block.html | 5 + .../pre-code-tags-inside-code-block.md | 7 + .../cases/standard/pre-code-tags.html | 13 + .../makehtml/cases/standard/pre-code-tags.md | 16 + .../cases/standard/relative-anchors.html | 1 + .../cases/standard/relative-anchors.md | 1 + .../cases/standard/repeated-headers.html | 3 + .../cases/standard/repeated-headers.md | 5 + .../cases/standard/simple-paragraph.html | 1 + .../cases/standard/simple-paragraph.md | 1 + .../cases/standard/strip-references.html | 0 .../cases/standard/strip-references.md | 13 + .../makehtml/cases/standard/strong.html | 3 + .../makehtml/cases/standard/strong.md | 5 + .../standard/unordered-list-asterisk.html | 5 + .../cases/standard/unordered-list-asterisk.md | 3 + .../cases/standard/unordered-list-minus.html | 5 + .../cases/standard/unordered-list-minus.md | 3 + .../cases/standard/unordered-list-plus.html | 5 + .../cases/standard/unordered-list-plus.md | 3 + .../cases/standard/url-with-parenthesis.html | 1 + .../cases/standard/url-with-parenthesis.md | 1 + .../functional/makehtml/makehtml.bootstrap.js | 89 + .../functional/makehtml/testsuite.features.js | 279 + .../functional/makehtml/testsuite.ghost.js | 22 + .../functional/makehtml/testsuite.issues.js | 14 + .../functional/makehtml/testsuite.karlcow.js | 16 + .../functional/makehtml/testsuite.standard.js | 15 + .../cases/standard/anchors-relative.html | 1 + .../cases/standard/anchors-relative.md | 1 + .../makemarkdown/cases/standard/anchors.html | 2 + .../makemarkdown/cases/standard/anchors.md | 3 + .../standard/blockquote-followed-by-code.html | 9 + .../standard/blockquote-followed-by-code.md | 9 + .../standard/blockquote-nested-markdown.html | 10 + .../standard/blockquote-nested-markdown.md | 10 + .../cases/standard/blockquote.html | 4 + .../makemarkdown/cases/standard/blockquote.md | 3 + .../cases/standard/emphasis-double.html | 2 + .../cases/standard/emphasis-double.md | 3 + .../standard/emphasis-inside-inline-code.html | 1 + .../standard/emphasis-inside-inline-code.md | 1 + .../makemarkdown/cases/standard/emphasis.html | 37 + .../makemarkdown/cases/standard/emphasis.md | 71 + .../standard/escaping-html-entities.html | 4 + .../cases/standard/escaping-html-entities.md | 7 + .../makemarkdown/cases/standard/escaping.html | 17 + .../makemarkdown/cases/standard/escaping.md | 33 + .../cases/standard/github-style-at-start.html | 6 + .../cases/standard/github-style-at-start.md | 7 + .../github-style-codeblock-inside-quote.html | 13 + .../github-style-codeblock-inside-quote.md | 13 + .../standard/github-style-codeblock.html | 13 + .../cases/standard/github-style-codeblock.md | 20 + .../standard/github-style-linebreaks.html | 3 + .../cases/standard/github-style-linebreaks.md | 4 + .../cases/standard/h1-with-single-hash.html | 1 + .../cases/standard/h1-with-single-hash.md | 1 + .../cases/standard/h2-with-single-hash.html | 1 + .../cases/standard/h2-with-single-hash.md | 1 + .../cases/standard/h3-with-single-hash.html | 1 + .../cases/standard/h3-with-single-hash.md | 1 + .../cases/standard/h4-with-single-hash.html | 1 + .../cases/standard/h4-with-single-hash.md | 1 + .../cases/standard/h5-with-single-hash.html | 1 + .../cases/standard/h5-with-single-hash.md | 1 + .../cases/standard/h6-with-single-hash.html | 1 + .../cases/standard/h6-with-single-hash.md | 1 + .../cases/standard/horizontal-rules.html | 2 + .../cases/standard/horizontal-rules.md | 3 + .../cases/standard/html-comments.html | 9 + .../cases/standard/html-comments.md | 17 + .../makemarkdown/cases/standard/html.html | 10 + .../makemarkdown/cases/standard/html.md | 6 + .../cases/standard/html5-strutural-tags.html | 34 + .../cases/standard/html5-strutural-tags.md | 33 + .../standard/images-followed-by-brackets.html | 2 + .../standard/images-followed-by-brackets.md | 3 + .../makemarkdown/cases/standard/images.html | 6 + .../makemarkdown/cases/standard/images.md | 11 + .../cases/standard/list-doubleline.html | 4 + .../cases/standard/list-doubleline.md | 3 + .../standard/list-followed-by-blockquote.html | 12 + .../standard/list-followed-by-blockquote.md | 9 + .../standard/list-followed-by-ghcode.html | 13 + .../cases/standard/list-followed-by-ghcode.md | 13 + .../cases/standard/list-with-blockquote.html | 7 + .../cases/standard/list-with-blockquote.md | 3 + .../cases/standard/list-with-code.html | 5 + .../cases/standard/list-with-code.md | 5 + .../cases/standard/multi-paragraph-list.html | 5 + .../cases/standard/multi-paragraph-list.md | 5 + .../cases/standard/nested-gh-codeblocks.html | 8 + .../cases/standard/nested-gh-codeblocks.md | 9 + .../ordered-list-starting-number.html | 5 + .../standard/ordered-list-starting-number.md | 4 + .../cases/standard/ordered-list.html | 5 + .../cases/standard/ordered-list.md | 3 + .../cases/standard/paragraph-simple.html | 1 + .../cases/standard/paragraph-simple.md | 1 + .../paragraphed-list-with-sublists.html | 11 + .../paragraphed-list-with-sublists.md | 13 + .../makemarkdown/makemarkdown.bootstrap.js | 73 + .../makemarkdown/testsuite.standard.js | 15 + static/showdown/test/performance.testfile.md | 1912 +++++++ .../test/performance/lib/performance.lib.js | 236 + .../showdown/test/performance/performance.js | 141 + static/showdown/test/unit/optionswp.js | 9 + .../showdown/test/unit/showdown.Converter.js | 163 + .../test/unit/showdown.Converter.makeHtml.js | 99 + static/showdown/test/unit/showdown.helpers.js | 247 + static/showdown/test/unit/showdown.js | 158 + 792 files changed, 26320 insertions(+), 3 deletions(-) create mode 100644 static/showdown/.appveyor.yml create mode 100644 static/showdown/.editorconfig create mode 100644 static/showdown/.eslintrc.json create mode 100644 static/showdown/.gitattributes create mode 100644 static/showdown/.gitignore create mode 100644 static/showdown/.jshintignore create mode 100644 static/showdown/.jshintrc create mode 100644 static/showdown/.travis.yml create mode 100644 static/showdown/CHANGELOG.md create mode 100644 static/showdown/CONTRIBUTING.md create mode 100644 static/showdown/CREDITS.md create mode 100644 static/showdown/DONATIONS.md create mode 100644 static/showdown/Gruntfile.js create mode 100644 static/showdown/README.md create mode 100644 static/showdown/bin/showdown.js create mode 100644 static/showdown/bower.json create mode 100644 static/showdown/dist/showdown.js create mode 100644 static/showdown/dist/showdown.js.map create mode 100644 static/showdown/dist/showdown.min.js create mode 100644 static/showdown/dist/showdown.min.js.map create mode 100644 static/showdown/license.txt create mode 100644 static/showdown/package-lock.json create mode 100644 static/showdown/package.json create mode 100644 static/showdown/performance.json create mode 100644 static/showdown/performance.log.md create mode 100644 static/showdown/src/cli/cli.js create mode 100644 static/showdown/src/cli/makehtml.cmd.js create mode 100644 static/showdown/src/cli/messenger.js create mode 100644 static/showdown/src/converter.js create mode 100644 static/showdown/src/helpers.js create mode 100644 static/showdown/src/loader.js create mode 100644 static/showdown/src/options.js create mode 100644 static/showdown/src/showdown.js create mode 100644 static/showdown/src/subParsers/makehtml/anchors.js create mode 100644 static/showdown/src/subParsers/makehtml/autoLinks.js create mode 100644 static/showdown/src/subParsers/makehtml/blockGamut.js create mode 100644 static/showdown/src/subParsers/makehtml/blockQuotes.js create mode 100644 static/showdown/src/subParsers/makehtml/codeBlocks.js create mode 100644 static/showdown/src/subParsers/makehtml/codeSpans.js create mode 100644 static/showdown/src/subParsers/makehtml/completeHTMLDocument.js create mode 100644 static/showdown/src/subParsers/makehtml/detab.js create mode 100644 static/showdown/src/subParsers/makehtml/ellipsis.js create mode 100644 static/showdown/src/subParsers/makehtml/emoji.js create mode 100644 static/showdown/src/subParsers/makehtml/encodeAmpsAndAngles.js create mode 100644 static/showdown/src/subParsers/makehtml/encodeBackslashEscapes.js create mode 100644 static/showdown/src/subParsers/makehtml/encodeCode.js create mode 100644 static/showdown/src/subParsers/makehtml/escapeSpecialCharsWithinTagAttributes.js create mode 100644 static/showdown/src/subParsers/makehtml/githubCodeBlocks.js create mode 100644 static/showdown/src/subParsers/makehtml/hashBlock.js create mode 100644 static/showdown/src/subParsers/makehtml/hashCodeTags.js create mode 100644 static/showdown/src/subParsers/makehtml/hashElement.js create mode 100644 static/showdown/src/subParsers/makehtml/hashHTMLBlocks.js create mode 100644 static/showdown/src/subParsers/makehtml/hashHTMLSpans.js create mode 100644 static/showdown/src/subParsers/makehtml/hashPreCodeTags.js create mode 100644 static/showdown/src/subParsers/makehtml/headers.js create mode 100644 static/showdown/src/subParsers/makehtml/horizontalRule.js create mode 100644 static/showdown/src/subParsers/makehtml/images.js create mode 100644 static/showdown/src/subParsers/makehtml/italicsAndBold.js create mode 100644 static/showdown/src/subParsers/makehtml/lists.js create mode 100644 static/showdown/src/subParsers/makehtml/metadata.js create mode 100644 static/showdown/src/subParsers/makehtml/outdent.js create mode 100644 static/showdown/src/subParsers/makehtml/paragraphs.js create mode 100644 static/showdown/src/subParsers/makehtml/runExtension.js create mode 100644 static/showdown/src/subParsers/makehtml/spanGamut.js create mode 100644 static/showdown/src/subParsers/makehtml/strikethrough.js create mode 100644 static/showdown/src/subParsers/makehtml/stripLinkDefinitions.js create mode 100644 static/showdown/src/subParsers/makehtml/tables.js create mode 100644 static/showdown/src/subParsers/makehtml/underline.js create mode 100644 static/showdown/src/subParsers/makehtml/unescapeSpecialChars.js create mode 100644 static/showdown/test/cli/basic.html create mode 100644 static/showdown/test/cli/basic.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#143.support-image-dimensions.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#143.support-image-dimensions.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.1.simple-autolink.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.1.simple-autolink.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.2.disallow-underscore-emphasis-mid-word.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.2.disallow-underscore-emphasis-mid-word.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.3.strikethrough.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.3.strikethrough.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.4.tasklists.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#164.4.tasklists.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#178.markdown-inside-html-does-not-parse.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#178.markdown-inside-html-does-not-parse.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#198.literalMidWordUnderscores-changes-behavior-of-asterisk.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#198.literalMidWordUnderscores-changes-behavior-of-asterisk.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#204.certain-links-with-at-and-dot-break-url.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#204.certain-links-with-at-and-dot-break-url.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#206.treat-single-line-breaks-as-br.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#206.treat-single-line-breaks-as-br.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#214.escaped-markdown-chars-break-strikethrough.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#214.escaped-markdown-chars-break-strikethrough.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#259.es6-template-strings-indentation-issues.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#259.es6-template-strings-indentation-issues.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#284.simplifiedAutoLink-does-not-match-GFM-style.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#284.simplifiedAutoLink-does-not-match-GFM-style.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#316.new-simpleLineBreaks-option-breaks-lists.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#316.new-simpleLineBreaks-option-breaks-lists.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#318.simpleLineBreaks-does-not-work-with-chinese-characters.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#318.simpleLineBreaks-does-not-work-with-chinese-characters.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#320.github-compatible-generated-header-id.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#320.github-compatible-generated-header-id.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#323.simpleLineBreaks-breaks-with-strong.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#323.simpleLineBreaks-breaks-with-strong.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#330.simplifiedAutoLink-drops-character-before-and-after-linked-mail.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#330.simplifiedAutoLink-drops-character-before-and-after-linked-mail.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#331.allow-escaping-of-tilde.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#331.allow-escaping-of-tilde.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#374.escape-html-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#374.escape-html-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#378.simplifiedAutoLinks-with-excludeTrailingPunctuationFromURLs.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#378.simplifiedAutoLinks-with-excludeTrailingPunctuationFromURLs.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#379.openLinksInNewWindow-breaks-em-markdup.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#379.openLinksInNewWindow-breaks-em-markdup.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#398.literalMidWordAsterisks-treats-non-word-characters-as-characters.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#398.literalMidWordAsterisks-treats-non-word-characters-as-characters.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/#69.header-level-start.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/#69.header-level-start.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/completeHTMLOutput/simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/completeHTMLOutput/simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/customizedHeaderId-simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/customizedHeaderId-simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/disable-email-encoding.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/disable-email-encoding.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/disable-gh-codeblocks.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/disable-gh-codeblocks.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/disableForced4SpacesIndentedSublists.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/disableForced4SpacesIndentedSublists.md rename static/{main.css => showdown/test/functional/makehtml/cases/features/disableForced4SpacesIndentedSublists/.gitkeep} (100%) create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/complex.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/complex.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/links.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/links.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/simplifiedautolinks.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/simplifiedautolinks.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/special.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/emojis/special.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/excludeTrailingPunctuationFromURLs-option.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/excludeTrailingPunctuationFromURLs-option.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/ghMentions.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/ghMentions.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordAsterisks/basic.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordAsterisks/basic.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordAsterisks/punctation-test.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordAsterisks/punctation-test.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordUnderscores/basic.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordUnderscores/basic.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordUnderscores/punctation-test.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/literalMidWordUnderscores/punctation-test.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/dashes-conflict.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/dashes-conflict.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-in-output.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-in-output.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-two-consecutive-metadata-blocks-different-symbols.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-two-consecutive-metadata-blocks-different-symbols.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-two-consecutive-metadata-blocks.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/embeded-two-consecutive-metadata-blocks.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/ignore-metadata.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/ignore-metadata.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-angled-for-method.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-angled-for-method.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-angled-quotes.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-angled-quotes.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-three-dashes.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-three-dashes.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-with-format.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/metadata/simple-with-format.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/hash-links-open-in-same-page.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/hash-links-open-in-same-page.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simple-cases.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simple-cases.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simplifiedAutoLink.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/openLinksInNewWindow/simplifiedAutoLink.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string-and-ghCompatibleHeaderId.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string-and-ghCompatibleHeaderId.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string-and-ghCompatibleHeaderId2.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string-and-ghCompatibleHeaderId2.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/prefixHeaderId-string.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawHeaderId/simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawHeaderId/simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawHeaderId/with-prefixHeaderId.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawHeaderId/with-prefixHeaderId.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawPrefixHeaderId/simple-with-prefixHeaderId.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/rawPrefixHeaderId/simple-with-prefixHeaderId.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/requireSpaceBeforeHeadingText.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/requireSpaceBeforeHeadingText.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simpleLineBreaks-handle-html-pre.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simpleLineBreaks-handle-html-pre.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simpleLineBreaks2.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simpleLineBreaks2.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/autolinks-with-magic-chars.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/autolinks-with-magic-chars.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/disallow-underscores.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/disallow-underscores.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-inside-a-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-inside-a-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-inside-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-inside-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-reference-links.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/does-not-parse-reference-links.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/emphasis-and-strikethrough.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/emphasis-and-strikethrough.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/ordered-lists.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/ordered-lists.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/text.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/text.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/unordered-lists.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/simplifiedAutoLink/unordered-lists.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/splitAdjacentBlockquotes/basic.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/splitAdjacentBlockquotes/basic.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/splitAdjacentBlockquotes/multiline-paragraph.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/splitAdjacentBlockquotes/multiline-paragraph.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#179.parse-md-in-table-ths.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#179.parse-md-in-table-ths.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#256.table-header-separators-should-not-require-3-dashes.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#256.table-header-separators-should-not-require-3-dashes.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#345.escape-pipe-character.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#345.escape-pipe-character.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#406.does-not-render-one-column-tables.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#406.does-not-render-one-column-tables.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#442.trailing-spaces-break-one-column-tables.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#442.trailing-spaces-break-one-column-tables.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#443.2.table-followed-by-list-does-not-parse-correctly.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#443.2.table-followed-by-list-does-not-parse-correctly.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#443.table-followed-by-list-does-not-parse-correctly.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#443.table-followed-by-list-does-not-parse-correctly.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#465.code-spans-with-pipes-break-table.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#465.code-spans-with-pipes-break-table.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#471.ol-is-not-rendered-correctly-inside-table.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/#471.ol-is-not-rendered-correctly-inside-table.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic-alignment.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic-alignment.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic-with-header-ids.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic-with-header-ids.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/basic.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/gh-style-tables.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/gh-style-tables.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/large-table-with-allignments.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/large-table-with-allignments.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/large.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/large.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/mixed-alignment.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/mixed-alignment.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/multiple-tables.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/multiple-tables.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/table-inside-codeblock.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/table-inside-codeblock.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/table-without-leading-pipe.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/table-without-leading-pipe.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-equals.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-equals.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-span-elements.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-span-elements.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-surroundings.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/with-surroundings.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/without-body.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/without-body.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/without-header-delimiter.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/tables/without-header-delimiter.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/underline/fulltext.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/underline/fulltext.md create mode 100644 static/showdown/test/functional/makehtml/cases/features/underline/simple.html create mode 100644 static/showdown/test/functional/makehtml/cases/features/underline/simple.md create mode 100644 static/showdown/test/functional/makehtml/cases/ghost/markdown-magic.html create mode 100644 static/showdown/test/functional/makehtml/cases/ghost/markdown-magic.md create mode 100644 static/showdown/test/functional/makehtml/cases/ghost/underscore.html create mode 100644 static/showdown/test/functional/makehtml/cases/ghost/underscore.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.mix-images-with-links.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.mix-images-with-links.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/crazy-urls.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/crazy-urls.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.md create mode 100644 static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.html create mode 100644 static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/asterisk.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/asterisk.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-star.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-star.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-idref.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-idref.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-title.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img-title.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/img.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/inline-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/link-idref.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-star.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-star.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.md create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.html create mode 100644 static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/code-block.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/double-emphasis.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/double-emphasis.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/doubline-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/doubline-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ellipsis.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ellipsis.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/emphasis.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/emphasis.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/escaping.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/escaping.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html-comments.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html-comments.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/images.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/images.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-anchors.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-anchors.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-with-code.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/list-with-code.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/ordered-list.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/relative-anchors.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/relative-anchors.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/repeated-headers.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/repeated-headers.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/strip-references.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/strip-references.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/strong.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/strong.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.md create mode 100644 static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.html create mode 100644 static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.md create mode 100644 static/showdown/test/functional/makehtml/makehtml.bootstrap.js create mode 100644 static/showdown/test/functional/makehtml/testsuite.features.js create mode 100644 static/showdown/test/functional/makehtml/testsuite.ghost.js create mode 100644 static/showdown/test/functional/makehtml/testsuite.issues.js create mode 100644 static/showdown/test/functional/makehtml/testsuite.karlcow.js create mode 100644 static/showdown/test/functional/makehtml/testsuite.standard.js create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/anchors.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/anchors.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/blockquote.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/emphasis.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/escaping.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/escaping.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html-comments.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html-comments.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/images.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/images.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.md create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.html create mode 100644 static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.md create mode 100644 static/showdown/test/functional/makemarkdown/makemarkdown.bootstrap.js create mode 100644 static/showdown/test/functional/makemarkdown/testsuite.standard.js create mode 100644 static/showdown/test/performance.testfile.md create mode 100644 static/showdown/test/performance/lib/performance.lib.js create mode 100644 static/showdown/test/performance/performance.js create mode 100644 static/showdown/test/unit/optionswp.js create mode 100644 static/showdown/test/unit/showdown.Converter.js create mode 100644 static/showdown/test/unit/showdown.Converter.makeHtml.js create mode 100644 static/showdown/test/unit/showdown.helpers.js create mode 100644 static/showdown/test/unit/showdown.js diff --git a/index.html b/index.html index 46f6bb9..18bdde0 100644 --- a/index.html +++ b/index.html @@ -111,7 +111,7 @@

Thanks for submitting your response! - + +

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

+

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

+

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

+

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

+
    +
  1. foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  2. +
  3. foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  4. +
+
+

blockquote foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

+
+
    +
  • foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  • +
  • foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  • +
+
+

http://en.wikipedia.org/wiki/Tourism_in_Germany

+

an example

+

Another example of a link

+

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+ +

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+

http://myurl.com/foo_bar_baz_bar_foo

+

http://myurl.com/foo_bar_baz_bar_foo

+

italics.

+

italics .

diff --git a/static/showdown/test/functional/makehtml/cases/ghost/underscore.md b/static/showdown/test/functional/makehtml/cases/ghost/underscore.md new file mode 100644 index 0000000..fae7be0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/ghost/underscore.md @@ -0,0 +1,77 @@ +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +_baz_bar_foo_ + +__baz_bar_foo__ + +___baz_bar_foo___ + +baz bar foo _baz_bar_foo foo bar baz_ and foo + +foo\_bar\_baz foo\_bar\_baz\_bar\_foo \_foo\_bar baz\_bar\_ baz\_foo + +`foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo` + + + foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + + +```html +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +``` + +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ + + +[foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo) + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +----- + +### foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +1. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +2. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +> blockquote foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +------- + +http://en.wikipedia.org/wiki/Tourism_in_Germany + +[an example] [wiki] + +Another [example][wiki] of a link + +[wiki]: http://en.wikipedia.org/wiki/Tourism_in_Germany + +

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+ + + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +![foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo) + +http://myurl.com/foo_bar_baz_bar_foo + + + +_italics_. + +_italics_ . diff --git a/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.html b/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.html new file mode 100644 index 0000000..aee6435 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.html @@ -0,0 +1,6 @@ +

escaped word_with_underscores

+

escaped word__with__double underscores

+

escaped word_with_single italic underscore

+

escaped word*with*asterixs

+

escaped word**with**asterixs

+

escaped word*with*bold asterixs

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.md b/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.md new file mode 100644 index 0000000..8d22521 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#107.inner-underscore-parse-to-block.md @@ -0,0 +1,11 @@ +escaped word\_with\_underscores + +escaped word\_\_with\_\_double underscores + +escaped word_\_with\__single italic underscore + +escaped word\*with*asterixs + +escaped word\*\*with\*\*asterixs + +escaped word**\*with\***bold asterixs diff --git a/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html b/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html new file mode 100644 index 0000000..49c9ca4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html @@ -0,0 +1,12 @@ +
    +
  • Item 1
  • +
  • Item 2
  • +
+
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
+
    +
  • Item 1
  • +
  • Item 2
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md b/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md new file mode 100644 index 0000000..4621a36 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md @@ -0,0 +1,8 @@ +* Item 1 +* Item 2 + +1. Item 1 +2. Item 2 + +- Item 1 +- Item 2 diff --git a/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.html b/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.html new file mode 100644 index 0000000..8f9d2e5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.html @@ -0,0 +1 @@ +

2015-10-04

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.md b/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.md new file mode 100644 index 0000000..d0d6dda --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#150.hyphens-are-getting-removed.md @@ -0,0 +1 @@ +2015-10-04 diff --git a/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html b/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html new file mode 100644 index 0000000..cbf97c7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html @@ -0,0 +1,12 @@ +
    +
  1. Hi, I am a thing

    +
    $ git clone thing.git
    +
    +dfgdfg
    +
  2. +
  3. I am another thing!

    +
    $ git clone other-thing.git
    +
    +foobar
    +
  4. +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md b/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md new file mode 100644 index 0000000..fd5634d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md @@ -0,0 +1,17 @@ +1. Hi, I am a thing + + ```sh + + $ git clone thing.git + + dfgdfg + ``` + +1. I am another thing! + + ```sh + + $ git clone other-thing.git + + foobar + ``` diff --git a/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.html b/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.html new file mode 100644 index 0000000..b594288 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.html @@ -0,0 +1,4 @@ +
+

a blockquote

+

followed by an heading

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.md b/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.md new file mode 100644 index 0000000..f60ccb8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#191.blockquote-followed-by-an-heading.md @@ -0,0 +1,2 @@ +> a blockquote +# followed by an heading diff --git a/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.html b/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.html new file mode 100644 index 0000000..8de7bb3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.html @@ -0,0 +1,11 @@ +

Test pre in a list

+
    +
  • & <
  • +
  • & <
      +
    • & <
    • +
    • & <
        +
      • & <
      • +
      • & <
          +
        • & <
        • +
        • & <
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.md b/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.md new file mode 100644 index 0000000..cec2670 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#196.entity-in-code-block-in-nested-list.md @@ -0,0 +1,10 @@ +Test pre in a list + +- & < +- `& <` + - & < + - `& <` + - & < + - `& <` + - & < + - `& <` diff --git a/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.html b/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.html new file mode 100644 index 0000000..66439cb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.html @@ -0,0 +1,5 @@ +

Title 1

+
+

Title 2

+
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.md b/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.md new file mode 100644 index 0000000..4cf6aa8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#220.html-breaks-markdown-parsing.md @@ -0,0 +1,11 @@ +Title 1 +------- + +
+ + +# Title 2 + + +
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.html b/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.html new file mode 100644 index 0000000..53c8243 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.html @@ -0,0 +1,22 @@ +

+foo
+
+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+bar
+
+

this is a long paragraph

+

this is another long paragraph

+
```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.md b/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.md new file mode 100644 index 0000000..d234cf0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#229.2.code-being-parsed-inside-HTML-code-tags.md @@ -0,0 +1,25 @@ +

+foo
+
+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+bar
+
+ +this is a long paragraph + +this is another long paragraph + +
```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.html b/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.html new file mode 100644 index 0000000..deba3d4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.html @@ -0,0 +1,16 @@ +

+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
+```
+No language indicated, so no syntax highlighting.
+But let's throw in a <b>tag</b>.
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.md b/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.md new file mode 100644 index 0000000..5a148ce --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#229.code-being-parsed-inside-HTML-code-tags.md @@ -0,0 +1,16 @@ +

+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
+```
+No language indicated, so no syntax highlighting.
+But let's throw in a tag.
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.html b/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.html new file mode 100644 index 0000000..9ce90ea --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.html @@ -0,0 +1,10 @@ +
```python
+var s;
+```
+
+

this is a long paragraph

+

+```javascript
+var s;
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.md b/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.md new file mode 100644 index 0000000..9362a18 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#230.paragraphs-are-ignored-between-code-tags.md @@ -0,0 +1,12 @@ +
```python
+var s;
+```
+
+ +this is a long paragraph + +

+```javascript
+var s;
+```
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.html b/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.html new file mode 100644 index 0000000..53ed8b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.html @@ -0,0 +1,5 @@ +

this should be

+

this should be

+

this should be

+

this should> appear

+

this text <should appear

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.md b/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.md new file mode 100644 index 0000000..a73cfbf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#236.wrong-lt-parsing-when-attached-to-word.md @@ -0,0 +1,9 @@ +this should be + +this should be + +this should be + +this should> appear + +this text sd-inline sd-ref

+

foo

+

sd-inline sd-ref

+

foo

+

sd-ref sd-inline

+

foo

+

sd-ref sd-inline

+

foo

+

sd-ref

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#261.mix-images-with-links.md b/static/showdown/test/functional/makehtml/cases/issues/#261.mix-images-with-links.md new file mode 100644 index 0000000..f9583e0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#261.mix-images-with-links.md @@ -0,0 +1,19 @@ +![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo] + +foo + +[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo] + +foo + +![sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +foo + +[sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +foo + +[![sd-ref][sd-logo]](http://www.google.com/) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png diff --git a/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html new file mode 100644 index 0000000..117f37d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html @@ -0,0 +1,3 @@ +

sd-inline sd-ref

+

foo

+

sd-ref sd-inline

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md new file mode 100644 index 0000000..0e76cbb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md @@ -0,0 +1,7 @@ +![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo] + +foo + +![sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png diff --git a/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html new file mode 100644 index 0000000..13bb32f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html @@ -0,0 +1,3 @@ +

sd-inline sd-ref

+

foo

+

sd-ref sd-inline

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md new file mode 100644 index 0000000..40b7f8f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md @@ -0,0 +1,7 @@ +[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo] + +foo + +[sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png diff --git a/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html b/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html new file mode 100644 index 0000000..d18a6a5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html @@ -0,0 +1,18 @@ +
    +
  • list item 1

    +
    <parent>
    +<child>child1</child>
    +<!-- This is a comment -->
    +<child>child2</child>
    +<child>some text <!-- a comment --></child>
    +</parent>
    +
  • +
  • list item 2

  • +
+
<parent>
+<child>child1</child>
+<!-- This is a comment -->
+<child>child2</child>
+<child>some text <!-- a comment --></child>
+</parent>
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md b/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md new file mode 100644 index 0000000..8f918a5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md @@ -0,0 +1,21 @@ +* list item 1 + + ``` + + child1 + + child2 + some text + + ``` + +* list item 2 + +``` + +child1 + +child2 +some text + +``` diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.html b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.html new file mode 100644 index 0000000..a5680ae --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.html @@ -0,0 +1,50 @@ +
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
      +
    1. two
  • +
+

foo

+
    +
  • one
  • +
  • two
  • +
+

foo

+
    +
  • one
  • +
  • two
  • +
+

foo

+
    +
  • one
  • +
  • two
  • +
+

foo

+
    +
  • one
  • +
  • two
  • +
+

foo

+
    +
  • one
      +
    • two
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.md b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.md new file mode 100644 index 0000000..138dc8e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-2.md @@ -0,0 +1,42 @@ + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + * two + +foo + + * one + * two + +foo + + * one + * two + +foo + + * one +* two + +foo + + * one + * two diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.html b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.html new file mode 100644 index 0000000..c67bf4b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.html @@ -0,0 +1,15 @@ +
    +
  • one long paragraph of +text
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one long paragraph of +text
  • +
+
    +
  1. two
  2. +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.md b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.md new file mode 100644 index 0000000..fc1abd8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior-3.md @@ -0,0 +1,9 @@ + * one long paragraph of +text + 1. two + +foo + + * one long paragraph of +text + 1. two diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.html b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.html new file mode 100644 index 0000000..33ac02b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.html @@ -0,0 +1,47 @@ +
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • one
  • +
+
    +
  1. two
  2. +
+

foo

+
    +
  • uli one
  • +
  • uli two
  • +
+

foo

+
    +
  • uli one
  • +
  • uli two
  • +
+

foo

+
    +
  • uli one
  • +
  • uli two
  • +
+

foo

+
    +
  • uli one
  • +
  • uli two
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.md b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.md new file mode 100644 index 0000000..ca0c0a6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.md @@ -0,0 +1,37 @@ +* one +1. two + +foo + +* one + 1. two + +foo + +* one + 1. two + +foo + +* one + 1. two + +foo + +* uli one +* uli two + +foo + +* uli one + * uli two + +foo + +* uli one + * uli two + +foo + +* uli one + * uli two diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.html b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.html new file mode 100644 index 0000000..c36379b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.html @@ -0,0 +1,15 @@ +
    +
  • - - a
  • +
+

a

+
    +
  • - * - - + a
  • +
+

a

+
    +
  1. 2. 3. 4. 5.
  2. +
+

a

+
    +
  1. 2. 3. 4. 5. a
  2. +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.md b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.md new file mode 100644 index 0000000..5aa1033 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char.md @@ -0,0 +1,13 @@ +- - - a + +a + ++ - * - - + a + +a + +1. 2. 3. 4. 5. + +a + +1. 2. 3. 4. 5. a diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.html b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.html new file mode 100644 index 0000000..43b3b06 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.html @@ -0,0 +1,8 @@ +
    +
  • - - a

  • +
  • - * - - + a

  • +
+
    +
  1. 2. 3. 4. 5.

  2. +
  3. 2. 3. 4. 5. a

  4. +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.md b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.md new file mode 100644 index 0000000..d40889f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char2.md @@ -0,0 +1,7 @@ +- - - a + ++ - * - - + a + +1. 2. 3. 4. 5. + +1. 2. 3. 4. 5. a diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.html b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.html new file mode 100644 index 0000000..717d2f3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.html @@ -0,0 +1,10 @@ +
    +
  • - +a
  • +
+

fooo

+
    +
  • - - aaaaa

    +

    bbbbb

  • +
+ diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.md b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.md new file mode 100644 index 0000000..b40ff47 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char3.md @@ -0,0 +1,10 @@ +- - +a + + +fooo + + +- - - aaaaa + + bbbbb diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.html b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.html new file mode 100644 index 0000000..e60553a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.html @@ -0,0 +1,3 @@ +
    +
  • - - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.md b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.md new file mode 100644 index 0000000..e8d2acc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#312.spaced-dashes-followed-by-char4.md @@ -0,0 +1 @@ +- - - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd diff --git a/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.html b/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.html new file mode 100644 index 0000000..42714bd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.html @@ -0,0 +1,2 @@ +
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.md b/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.md new file mode 100644 index 0000000..36c0595 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#317.spaces-before-hr.md @@ -0,0 +1,3 @@ + --- + + - - - diff --git a/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.html b/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.html new file mode 100644 index 0000000..7dbf76f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.html @@ -0,0 +1,21 @@ +

foo *bar *baz

+

foo **bar **baz

+

foo ***bar ***baz

+

foo _bar _baz

+

foo __bar __baz

+

foo ___bar ___baz

+

foo *bar *baz *bazinga

+

foo **bar **baz **bazinga

+

foo ***bar ***baz ***bazinga

+

foo _bar _baz __bazinga

+

foo __bar __baz __bazinga

+

foo ___bar ___baz ___bazinga

+

f

+

f

+

f

+

f

+

foo **bar **baz bazinga bla

+

foo bar **baz **bazinga bla

+

foo **bar **baz **bazinga bla

+

this is imbued link with strong

+

this is imbued link with strong

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.md b/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.md new file mode 100644 index 0000000..e453872 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#332.inconsistent-behavior-of-emphasis-and-strong.md @@ -0,0 +1,41 @@ +foo *bar *baz + +foo **bar **baz + +foo ***bar ***baz + +foo _bar _baz + +foo __bar __baz + +foo ___bar ___baz + +foo *bar *baz *bazinga + +foo **bar **baz **bazinga + +foo ***bar ***baz ***bazinga + +foo _bar _baz __bazinga + +foo __bar __baz __bazinga + +foo ___bar ___baz ___bazinga + +*f* + +**f** + +_f_ + +__f__ + +foo **bar **baz **bazinga bla** + +foo __bar **baz **bazinga bla__ + +foo __**bar **baz **bazinga bla__ + +this is **imbued link with strong** + +this is __imbued link with strong__ diff --git a/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.html b/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.html new file mode 100644 index 0000000..9c79cde --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.html @@ -0,0 +1 @@ +

this |

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.md b/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.md new file mode 100644 index 0000000..26055b3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#345.no-escape-for-the-pipe-character.md @@ -0,0 +1 @@ +this \| diff --git a/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.html b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.html new file mode 100644 index 0000000..d5290b4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.html @@ -0,0 +1,4 @@ +

This is an image

+

This is another image

+

image link

+

image link

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.md b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.md new file mode 100644 index 0000000..6340f75 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-images.md @@ -0,0 +1,9 @@ +This is an ![image][] + +[image]: ./image/cat(1).png + +This is another ![image](./image/cat(1).png) + +[![image link](./image/cat(1).png)](http://example.com) + +[![image link](<./image/cat1).png>)](http://example.com) diff --git a/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.html b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.html new file mode 100644 index 0000000..acff8f9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.html @@ -0,0 +1,3 @@ +

This is a link.

+

This is another link.

+

link

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.md b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.md new file mode 100644 index 0000000..338fcdd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#390.brackets-in-URL-break-links.md @@ -0,0 +1,7 @@ +This is a [link][]. + +[link]: https://en.wikipedia.org/wiki/Textile_(markup_language) "Textile" + +This is another [link](https://en.wikipedia.org/wiki/Textile_(markup_language) "Textile"). + +[link](<./image/cat1).png> "title") diff --git a/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.html b/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.html new file mode 100644 index 0000000..643007e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.html @@ -0,0 +1 @@ +

malformed

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.md b/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.md new file mode 100644 index 0000000..3cdae76 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#393.showdown-hangs-with-malformed-html.md @@ -0,0 +1 @@ +

malformed

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.html b/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.html new file mode 100644 index 0000000..bab378d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.html @@ -0,0 +1,14 @@ +

    +
  • Customer – Opens the Customer List. Refer to the document “Customer Management”.

    +
      +
    • Customer List
    • +
    • New Customer
    • +
    • Customer Prices
    • +
    • Appointments
  • +
  • Designer - Opens the Designer List. Refer to the document “Designer Commissions”.

    +
      +
    • Designer List
    • +
    • New Designer
    • +
    • Designer Payment List
    • +
    • New Designer Payment
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.md b/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.md new file mode 100644 index 0000000..59bc46b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#397.unordered-list-strange-behavior.md @@ -0,0 +1,11 @@ +- **Customer** – Opens the Customer List. Refer to the document “Customer Management”. + - Customer List + - New Customer + - Customer Prices + - Appointments + +- **Designer** - Opens the Designer List. Refer to the document “Designer Commissions”. + - Designer List + - New Designer + - Designer Payment List + - New Designer Payment \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.html b/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.html new file mode 100644 index 0000000..8a26284 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.html @@ -0,0 +1,3 @@ +

foo

+

bar

+ diff --git a/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.md b/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.md new file mode 100644 index 0000000..61e2f56 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#429.multiline-base64-image-support.md @@ -0,0 +1,9 @@ +![foo](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAA +Cxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII=) + +![bar][] + + +[bar]: +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAA +Cxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII= diff --git a/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.html b/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.html new file mode 100644 index 0000000..9ff791b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.html @@ -0,0 +1,5 @@ +

header id in h2

+

header id in h3

+

header id in h4

+
header id in h5
+
header id in h6
diff --git a/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.md b/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.md new file mode 100644 index 0000000..cb52eff --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#467.header-ids-for-subheadings.md @@ -0,0 +1,9 @@ +## header id in h2 + +### header id in h3 + +#### header id in h4 + +##### header id in h5 + +###### header id in h6 diff --git a/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.html b/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.html new file mode 100644 index 0000000..8d6f94b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.html @@ -0,0 +1,3 @@ +

plain text link http://test.com/this_has/one.html with underscores

+

legit·word_with·1·underscore

+

a wordwith2underscores (gets em)

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.md b/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.md new file mode 100644 index 0000000..e2118ed --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#83.parsed-text-links-with-underscores.md @@ -0,0 +1,5 @@ +plain text link http://test.com/this_has/one.html with underscores + +legit·word_with·1·underscore + +a word_with_2underscores (gets em) diff --git a/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.html b/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.html new file mode 100644 index 0000000..975c4f5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.html @@ -0,0 +1,2 @@ +

this is a underscore_test my cat

+

another my cat underscore_test bla

diff --git a/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.md b/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.md new file mode 100644 index 0000000..9b4ba0d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/#96.underscores-in-links.md @@ -0,0 +1,3 @@ +this is a underscore_test ![my cat](http://myserver.com/my_kitty.jpg) + +another ![my cat](http://myserver.com/my_kitty.jpg) underscore_test bla diff --git a/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.html b/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.html new file mode 100644 index 0000000..166a9d3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.html @@ -0,0 +1,5 @@ +

link

+

link

+

image

+

image

+

image

diff --git a/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.md b/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.md new file mode 100644 index 0000000..5d32457 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/URLs-with-multiple-parenthesis.md @@ -0,0 +1,9 @@ +[link](<./images(1)/cat(1).png>) + +[link](<./images(1)/cat(1).png> "title") + +![image](<./images(1)/cat(1).png>) + +![image](<./images(1)/cat(1).png> "title") + +![image](<./images(1)/cat(1).png> =800x600 "title") diff --git a/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.html b/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.html new file mode 100644 index 0000000..d5a1f3a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.html @@ -0,0 +1,14 @@ +

my cat

+

my cat

+

foo

+

foo

+

foo

+

foo

+

empty

+

empty

+

empty

+

empty

+

empty

+

empty

+

empty

+

empty

diff --git a/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.md b/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.md new file mode 100644 index 0000000..3299d5b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/crazy-urls.md @@ -0,0 +1,27 @@ +![my cat]() + +[my cat]() + +![foo]() + +![foo]( "title") + +[foo]() + +[foo]( "title") + +![empty](<>) + +[empty](<>) + +![empty](<> "title") + +[empty](<> "title") + +![empty](< >) + +[empty](< >) + +![empty](< > "title") + +[empty](< > "title") diff --git a/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.html b/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.html new file mode 100644 index 0000000..433c466 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.html @@ -0,0 +1,12 @@ +
+
+
+
+ text +
+
+ text +
+
+
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.md b/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.md new file mode 100644 index 0000000..59047cf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/deeply-nested-HTML-blocks.md @@ -0,0 +1,12 @@ +
+
+
+
+ text +
+
+ text +
+
+
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.html b/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.html new file mode 100644 index 0000000..1b53992 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.html @@ -0,0 +1,4 @@ +

hmm

+
+this is `a\_test` and this\_too and finally_this_is
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.md b/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.md new file mode 100644 index 0000000..e2a6333 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/handle-html-pre.md @@ -0,0 +1,4 @@ +hmm +
+this is `a\_test` and this\_too and finally_this_is
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.html b/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.html new file mode 100644 index 0000000..b009ba2 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.html @@ -0,0 +1,3 @@ +
a
b
+
<div>**foobar**</div>
+
diff --git a/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.md b/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.md new file mode 100644 index 0000000..9fc4eef --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/issues/one-line-HTML-input.md @@ -0,0 +1,3 @@ +
a
b
+ +
**foobar**
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.html new file mode 100644 index 0000000..7c095bb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.html @@ -0,0 +1,4 @@ +

This is a first paragraph, +on multiple lines.

+

This is a second paragraph. +There are spaces in between the two.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.md new file mode 100644 index 0000000..460d600 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return-spaces.md @@ -0,0 +1,5 @@ +This is a first paragraph, +on multiple lines. + +This is a second paragraph. +There are spaces in between the two. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.html new file mode 100644 index 0000000..a2d0808 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.html @@ -0,0 +1,4 @@ +

This is a first paragraph, +on multiple lines.

+

This is a second paragraph +which has multiple lines too.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.md new file mode 100644 index 0000000..a3ac9df --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-hard-return.md @@ -0,0 +1,5 @@ +This is a first paragraph, +on multiple lines. + +This is a second paragraph +which has multiple lines too. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.html new file mode 100644 index 0000000..87f33f6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.html @@ -0,0 +1,2 @@ +

A first paragraph.

+

A second paragraph after 3 CR (carriage return).

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.md new file mode 100644 index 0000000..9ff9b42 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-returns.md @@ -0,0 +1,5 @@ +A first paragraph. + + + +A second paragraph after 3 CR (carriage return). diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.html new file mode 100644 index 0000000..601651d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.html @@ -0,0 +1,2 @@ +

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

+

A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.md new file mode 100644 index 0000000..2c18220 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-spaces.md @@ -0,0 +1,3 @@ +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.html new file mode 100644 index 0000000..1f53564 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.html @@ -0,0 +1,2 @@ +

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

+

1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.md new file mode 100644 index 0000000..335e420 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line-tab.md @@ -0,0 +1,3 @@ +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.html b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.html new file mode 100644 index 0000000..07aba47 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.html @@ -0,0 +1,2 @@ +

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

+

A new long long long long long long long long long long long long long long long long paragraph on 1 line.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.md b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.md new file mode 100644 index 0000000..2501292 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/2-paragraphs-line.md @@ -0,0 +1,3 @@ +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +A new long long long long long long long long long long long long long long long long paragraph on 1 line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.html b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.html new file mode 100644 index 0000000..49afea4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.html @@ -0,0 +1,3 @@ +

These lines all end with end of line (EOL) sequences.

+

Seriously, they really do.

+

If you don't believe me: HEX EDIT!

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.md b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.md new file mode 100644 index 0000000..15cb86e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR+LF.md @@ -0,0 +1,6 @@ +These lines all end with end of line (EOL) sequences. + +Seriously, they really do. + +If you don't believe me: HEX EDIT! + diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.html b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.html new file mode 100644 index 0000000..0c04b14 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.html @@ -0,0 +1 @@ +

These lines all end with end of line (EOL) sequences.

Seriously, they really do.

If you don't believe me: HEX EDIT!

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.md b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.md new file mode 100644 index 0000000..f0a17c8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-CR.md @@ -0,0 +1 @@ +These lines all end with end of line (EOL) sequences. Seriously, they really do. If you don't believe me: HEX EDIT! \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.html b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.html new file mode 100644 index 0000000..49afea4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.html @@ -0,0 +1,3 @@ +

These lines all end with end of line (EOL) sequences.

+

Seriously, they really do.

+

If you don't believe me: HEX EDIT!

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.md b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.md new file mode 100644 index 0000000..15cb86e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/EOL-LF.md @@ -0,0 +1,6 @@ +These lines all end with end of line (EOL) sequences. + +Seriously, they really do. + +If you don't believe me: HEX EDIT! + diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.html b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.html new file mode 100644 index 0000000..0f2eaf3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.html @@ -0,0 +1 @@ +

An ampersand & in the text flow is escaped as an html entity.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.md b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.md new file mode 100644 index 0000000..11ab4db --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-text-flow.md @@ -0,0 +1 @@ +An ampersand & in the text flow is escaped as an html entity. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.html b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.html new file mode 100644 index 0000000..12b3054 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.html @@ -0,0 +1 @@ +

There is an ampersand in the URI.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.md b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.md new file mode 100644 index 0000000..68a9b72 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ampersand-uri.md @@ -0,0 +1 @@ +There is an [ampersand](http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1) in the URI. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.html b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.html new file mode 100644 index 0000000..aa442c3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.html @@ -0,0 +1 @@ +

This is *an asterisk which should stay as is.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.md b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.md new file mode 100644 index 0000000..d24ce2e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk-near-text.md @@ -0,0 +1 @@ +This is \*an asterisk which should stay as is. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.html b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.html new file mode 100644 index 0000000..b6c93a8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.html @@ -0,0 +1 @@ +

This is * an asterisk which should stay as is.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.md b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.md new file mode 100644 index 0000000..787ea41 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/asterisk.md @@ -0,0 +1 @@ +This is * an asterisk which should stay as is. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.html b/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.html new file mode 100644 index 0000000..d69d385 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.html @@ -0,0 +1,12 @@ +

\ backslash +` backtick +* asterisk +_ underscore +{} curly braces +[] square brackets +() parentheses +# hash mark ++ plus sign +- minus sign (hyphen) +. dot +! exclamation mark

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.md b/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.md new file mode 100644 index 0000000..24a818e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/backslash-escape.md @@ -0,0 +1,12 @@ +\\ backslash +\` backtick +\* asterisk +\_ underscore +\{\} curly braces +\[\] square brackets +\(\) parentheses +\# hash mark +\+ plus sign +\- minus sign (hyphen) +\. dot +\! exclamation mark diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.html new file mode 100644 index 0000000..d0b50bf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.html @@ -0,0 +1,4 @@ +
+

heading level 1

+

paragraph

+
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.md new file mode 100644 index 0000000..ca77951 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-added-markup.md @@ -0,0 +1,3 @@ +> # heading level 1 +> +> paragraph diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.html new file mode 100644 index 0000000..081b88b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.html @@ -0,0 +1,4 @@ +
+

A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.

+

and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.md new file mode 100644 index 0000000..9ff79cc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line-2-paragraphs.md @@ -0,0 +1,3 @@ +>A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line. + +>and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.html new file mode 100644 index 0000000..41451af --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.html @@ -0,0 +1,3 @@ +
+

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.md new file mode 100644 index 0000000..0acf5fe --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-line.md @@ -0,0 +1 @@ +>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.html new file mode 100644 index 0000000..6282d21 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.html @@ -0,0 +1,5 @@ +
+

A blockquote +on multiple lines +like this.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.md new file mode 100644 index 0000000..e845844 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-begin.md @@ -0,0 +1,3 @@ +> A blockquote +> on multiple lines +> like this. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.html new file mode 100644 index 0000000..82907e2 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.html @@ -0,0 +1,5 @@ +
+

A blockquote +on multiple lines +like this.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.md new file mode 100644 index 0000000..b38bc71 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-1-space-end.md @@ -0,0 +1,3 @@ +>A blockquote +>on multiple lines +>like this. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.html new file mode 100644 index 0000000..a0f1f2b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.html @@ -0,0 +1,7 @@ +
+

A blockquote +on multiple lines +like this.

+

But it has +two paragraphs.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.md new file mode 100644 index 0000000..46c8d6b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline-2-paragraphs.md @@ -0,0 +1,6 @@ +>A blockquote +>on multiple lines +>like this. +> +>But it has +>two paragraphs. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.html new file mode 100644 index 0000000..18126d4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.html @@ -0,0 +1,5 @@ +
+

A blockquote +on multiple lines +like this

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.md new file mode 100644 index 0000000..bcbd4d1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-multiline.md @@ -0,0 +1,3 @@ +>A blockquote +>on multiple lines +>like this diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.html new file mode 100644 index 0000000..ff0a7e6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.html @@ -0,0 +1,7 @@ +
+

This is the first level of quoting.

+
+

This is nested blockquote.

+
+

Back to the first level.

+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.md new file mode 100644 index 0000000..8b2530f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn-level1.md @@ -0,0 +1,5 @@ +> This is the first level of quoting. +> +> > This is nested blockquote. +> +> Back to the first level. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.html new file mode 100644 index 0000000..f3f11f9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.html @@ -0,0 +1,6 @@ +
+

This is the first level of quoting.

+
+

This is nested blockquote.

+
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.md new file mode 100644 index 0000000..2894815 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-multiplereturn.md @@ -0,0 +1,3 @@ +> This is the first level of quoting. +> +> > This is nested blockquote. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.html new file mode 100644 index 0000000..42b8ab4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.html @@ -0,0 +1,7 @@ +
+

This is the first level of quoting.

+
+

This is nested blockquote. +Back to the first level.

+
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.md new file mode 100644 index 0000000..e01158b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested-return-level1.md @@ -0,0 +1,3 @@ +> This is the first level of quoting. +> > This is nested blockquote. +> Back to the first level. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.html b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.html new file mode 100644 index 0000000..f3f11f9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.html @@ -0,0 +1,6 @@ +
+

This is the first level of quoting.

+
+

This is nested blockquote.

+
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.md b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.md new file mode 100644 index 0000000..739ac21 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/blockquote-nested.md @@ -0,0 +1,2 @@ +> This is the first level of quoting. +> > This is nested blockquote. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.html b/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.html new file mode 100644 index 0000000..9b8bb7a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.html @@ -0,0 +1,3 @@ +
10 PRINT HELLO INFINITE
+20 GOTO 10
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.md b/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.md new file mode 100644 index 0000000..ff1e25d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-1-tab.md @@ -0,0 +1,2 @@ + 10 PRINT HELLO INFINITE + 20 GOTO 10 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.html b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.html new file mode 100644 index 0000000..6d9fa87 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.html @@ -0,0 +1,3 @@ +
10 PRINT < > &
+20 GOTO 10
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.md b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.md new file mode 100644 index 0000000..379cbbd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces-escaping.md @@ -0,0 +1,2 @@ + 10 PRINT < > & + 20 GOTO 10 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.html new file mode 100644 index 0000000..9b8bb7a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.html @@ -0,0 +1,3 @@ +
10 PRINT HELLO INFINITE
+20 GOTO 10
+
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.md new file mode 100644 index 0000000..e3bc4ba --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/code-4-spaces.md @@ -0,0 +1,2 @@ + 10 PRINT HELLO INFINITE + 20 GOTO 10 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.html b/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.html new file mode 100644 index 0000000..74f7f90 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.html @@ -0,0 +1 @@ +

asterisks

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.md b/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.md new file mode 100644 index 0000000..b49e7ba --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-middle-word.md @@ -0,0 +1 @@ +as*te*risks diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-star.html b/static/showdown/test/functional/makehtml/cases/karlcow/em-star.html new file mode 100644 index 0000000..d35dd53 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-star.html @@ -0,0 +1 @@ +

single asterisks

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-star.md b/static/showdown/test/functional/makehtml/cases/karlcow/em-star.md new file mode 100644 index 0000000..1e7c8de --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-star.md @@ -0,0 +1 @@ +*single asterisks* diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.html b/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.html new file mode 100644 index 0000000..2627bde --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.html @@ -0,0 +1 @@ +

single underscores

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.md b/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.md new file mode 100644 index 0000000..b6eac78 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/em-underscore.md @@ -0,0 +1 @@ +_single underscores_ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.html b/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.html new file mode 100644 index 0000000..6924fea --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.html @@ -0,0 +1 @@ +

HTML entities are written using ampersand notation: ©

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.md b/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.md new file mode 100644 index 0000000..336eae1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/entities-text-flow.md @@ -0,0 +1 @@ +HTML entities are written using ampersand notation: © diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.html new file mode 100644 index 0000000..af0c276 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.html @@ -0,0 +1 @@ +

This is an H1

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.md new file mode 100644 index 0000000..313c1dc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-equal-underlined.md @@ -0,0 +1,2 @@ +This is an H1 +============= diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.html new file mode 100644 index 0000000..af0c276 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.html @@ -0,0 +1 @@ +

This is an H1

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.md new file mode 100644 index 0000000..d25887a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-closed.md @@ -0,0 +1 @@ +# This is an H1 # diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.html new file mode 100644 index 0000000..1b48fc2 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.html @@ -0,0 +1 @@ +

# This is an H1

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.md new file mode 100644 index 0000000..49d1ae3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-1-space.md @@ -0,0 +1,2 @@ + # This is an H1 + \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.html new file mode 100644 index 0000000..013acb3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.html @@ -0,0 +1,2 @@ +

this is an h1 with two trailing spaces

+

A new paragraph.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.md new file mode 100644 index 0000000..a390af0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign-trailing-2-spaces.md @@ -0,0 +1,2 @@ +# this is an h1 with two trailing spaces +A new paragraph. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.html new file mode 100644 index 0000000..af0c276 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.html @@ -0,0 +1 @@ +

This is an H1

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.md new file mode 100644 index 0000000..90944c9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level1-hash-sign.md @@ -0,0 +1 @@ +# This is an H1 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.html new file mode 100644 index 0000000..2f4138b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.html @@ -0,0 +1 @@ +

This is an H2

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.md new file mode 100644 index 0000000..a912f0e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-dash-underlined.md @@ -0,0 +1,2 @@ +This is an H2 +------------- diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.html new file mode 100644 index 0000000..2f4138b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.html @@ -0,0 +1 @@ +

This is an H2

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.md new file mode 100644 index 0000000..9539252 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign-closed.md @@ -0,0 +1 @@ +## This is an H2 ## diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.html new file mode 100644 index 0000000..2f4138b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.html @@ -0,0 +1 @@ +

This is an H2

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.md new file mode 100644 index 0000000..bf1c56f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level2-hash-sign.md @@ -0,0 +1 @@ +## This is an H2 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.html new file mode 100644 index 0000000..a9d3ba9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.html @@ -0,0 +1 @@ +

This is an H3

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.md new file mode 100644 index 0000000..f875665 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign-closed.md @@ -0,0 +1 @@ +### This is an H3 ### diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.html new file mode 100644 index 0000000..a9d3ba9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.html @@ -0,0 +1 @@ +

This is an H3

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.md new file mode 100644 index 0000000..247ce34 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level3-hash-sign.md @@ -0,0 +1 @@ +### This is an H3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.html new file mode 100644 index 0000000..1c0f3d6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.html @@ -0,0 +1 @@ +

This is an H4

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.md new file mode 100644 index 0000000..24a9eb3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign-closed.md @@ -0,0 +1 @@ +#### This is an H4 #### diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.html new file mode 100644 index 0000000..1c0f3d6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.html @@ -0,0 +1 @@ +

This is an H4

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.md new file mode 100644 index 0000000..36f0db0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level4-hash-sign.md @@ -0,0 +1 @@ +#### This is an H4 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.html new file mode 100644 index 0000000..aa43910 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.html @@ -0,0 +1 @@ +
This is an H5
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.md new file mode 100644 index 0000000..889f789 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign-closed.md @@ -0,0 +1 @@ +##### This is an H5 ##### diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.html new file mode 100644 index 0000000..aa43910 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.html @@ -0,0 +1 @@ +
This is an H5
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.md new file mode 100644 index 0000000..a66d50b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level5-hash-sign.md @@ -0,0 +1 @@ +##### This is an H5 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.html new file mode 100644 index 0000000..2cbc7b1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.html @@ -0,0 +1 @@ +
This is an H6
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.md new file mode 100644 index 0000000..92dc1df --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign-closed.md @@ -0,0 +1 @@ +###### This is an H6 ###### diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.html b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.html new file mode 100644 index 0000000..2cbc7b1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.html @@ -0,0 +1 @@ +
This is an H6
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.md b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.md new file mode 100644 index 0000000..c85f1a7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/header-level6-hash-sign.md @@ -0,0 +1 @@ +###### This is an H6 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.html new file mode 100644 index 0000000..1d6667d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.md new file mode 100644 index 0000000..75fb4cd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes-spaces.md @@ -0,0 +1 @@ +- - - diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.html b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.html new file mode 100644 index 0000000..1d6667d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.md b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.md new file mode 100644 index 0000000..ed97d53 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-dashes.md @@ -0,0 +1 @@ +--- diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.html b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.html new file mode 100644 index 0000000..1d6667d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.md b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.md new file mode 100644 index 0000000..6a7e452 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-stars.md @@ -0,0 +1 @@ +*** diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.html b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.html new file mode 100644 index 0000000..1d6667d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.md b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.md new file mode 100644 index 0000000..88f351d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-3-underscores.md @@ -0,0 +1 @@ +___ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.html b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.html new file mode 100644 index 0000000..1d6667d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.md b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.md new file mode 100644 index 0000000..3e21f7e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/horizontal-rule-7-dashes.md @@ -0,0 +1 @@ +------- diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.html b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.html new file mode 100644 index 0000000..f9b1715 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.html @@ -0,0 +1 @@ +

HTML5

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.md b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.md new file mode 100644 index 0000000..c4dfe52 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref-title.md @@ -0,0 +1,3 @@ +![HTML5][h5] + +[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 for everyone" diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.html b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.html new file mode 100644 index 0000000..79103a8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.html @@ -0,0 +1 @@ +

HTML5

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.md b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.md new file mode 100644 index 0000000..71387b4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-idref.md @@ -0,0 +1,3 @@ +![HTML5][h5] + +[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-title.html b/static/showdown/test/functional/makehtml/cases/karlcow/img-title.html new file mode 100644 index 0000000..cc0e195 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-title.html @@ -0,0 +1 @@ +

HTML5

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img-title.md b/static/showdown/test/functional/makehtml/cases/karlcow/img-title.md new file mode 100644 index 0000000..a1dc1aa --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img-title.md @@ -0,0 +1 @@ +![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 logo for everyone") diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img.html b/static/showdown/test/functional/makehtml/cases/karlcow/img.html new file mode 100644 index 0000000..79103a8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img.html @@ -0,0 +1 @@ +

HTML5

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/img.md b/static/showdown/test/functional/makehtml/cases/karlcow/img.md new file mode 100644 index 0000000..bffc42a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/img.md @@ -0,0 +1 @@ +![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png) diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.html b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.html new file mode 100644 index 0000000..726e8a8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.html @@ -0,0 +1 @@ +

We love <code> and & for everything

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.md b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.md new file mode 100644 index 0000000..641ae90 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-escaping-entities.md @@ -0,0 +1 @@ +We love ` and &` for everything diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.html b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.html new file mode 100644 index 0000000..bc92165 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.html @@ -0,0 +1 @@ +

We love `code` for everything

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.md b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.md new file mode 100644 index 0000000..9e2325d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code-with-visible-backtick.md @@ -0,0 +1 @@ +``We love `code` for everything`` diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.html b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.html new file mode 100644 index 0000000..bc92165 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.html @@ -0,0 +1 @@ +

We love `code` for everything

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.md b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.md new file mode 100644 index 0000000..9e2325d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/inline-code.md @@ -0,0 +1 @@ +``We love `code` for everything`` diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.html new file mode 100644 index 0000000..f4f61ed --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.html @@ -0,0 +1,2 @@ +

A first sentence
+and a line break.

diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.md new file mode 100644 index 0000000..9150278 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-2-spaces.md @@ -0,0 +1,2 @@ +A first sentence +and a line break. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.html new file mode 100644 index 0000000..f4f61ed --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.html @@ -0,0 +1,2 @@ +

A first sentence
+and a line break.

diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.md new file mode 100644 index 0000000..07c1dbb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/line-break-5-spaces.md @@ -0,0 +1,2 @@ +A first sentence +and a line break. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.html new file mode 100644 index 0000000..604cbdc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.html @@ -0,0 +1 @@ +

This is an automatic link http://www.w3.org/

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.md new file mode 100644 index 0000000..a01ea4b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-automatic.md @@ -0,0 +1 @@ +This is an automatic link diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.html new file mode 100644 index 0000000..5e568ba --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.html @@ -0,0 +1 @@ +

W3C

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.md new file mode 100644 index 0000000..ac8dc5a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis-title.md @@ -0,0 +1 @@ +[W3C](http://www.w3.org/ "Discover w3c") diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.html new file mode 100644 index 0000000..ba65be8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.html @@ -0,0 +1 @@ +

W3C

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.md new file mode 100644 index 0000000..1ac993b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-bracket-paranthesis.md @@ -0,0 +1 @@ +[W3C](http://www.w3.org/) diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.html new file mode 100644 index 0000000..dbee9a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.md new file mode 100644 index 0000000..a963597 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-angle-bracket.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][w3c] + +[w3c]: diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.html new file mode 100644 index 0000000..dbee9a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.md new file mode 100644 index 0000000..24447d1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit-spaces.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][] + +[World Wide Web Consortium]: http://www.w3.org/ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.html new file mode 100644 index 0000000..9ba2da6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.html @@ -0,0 +1 @@ +

w3c

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.md new file mode 100644 index 0000000..91aa48d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-implicit.md @@ -0,0 +1,3 @@ +[w3c][] + +[w3c]: http://www.w3.org/ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.html new file mode 100644 index 0000000..dbee9a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.md new file mode 100644 index 0000000..dda6a3e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-space.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium] [w3c] + +[w3c]: http://www.w3.org/ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.html new file mode 100644 index 0000000..9c2dda6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.md new file mode 100644 index 0000000..1e55a1d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-next-line.md @@ -0,0 +1,4 @@ +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ + "Discover W3C" diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.html new file mode 100644 index 0000000..f80f8ce --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.md new file mode 100644 index 0000000..3ebc083 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-paranthesis.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ (Discover w3c) diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.html new file mode 100644 index 0000000..f80f8ce --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.md new file mode 100644 index 0000000..71fd319 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title-single-quote.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ 'Discover w3c' diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.html new file mode 100644 index 0000000..f80f8ce --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.md new file mode 100644 index 0000000..637940d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref-title.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ "Discover w3c" diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.html b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.html new file mode 100644 index 0000000..dbee9a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.html @@ -0,0 +1 @@ +

World Wide Web Consortium

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.md b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.md new file mode 100644 index 0000000..83f741e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/link-idref.md @@ -0,0 +1,3 @@ +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.html b/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.html new file mode 100644 index 0000000..60b1770 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.html @@ -0,0 +1,6 @@ +
    +
  • a list containing a blockquote

    +
    +

    this the blockquote in the list

    +
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.md b/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.md new file mode 100644 index 0000000..763ae3e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-blockquote.md @@ -0,0 +1,3 @@ +* a list containing a blockquote + + > this the blockquote in the list diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-code.html b/static/showdown/test/functional/makehtml/cases/karlcow/list-code.html new file mode 100644 index 0000000..664a61c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-code.html @@ -0,0 +1,6 @@ +
    +
  • a list containing a block of code

    +
    10 PRINT HELLO INFINITE
    +20 GOTO 10
    +
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-code.md b/static/showdown/test/functional/makehtml/cases/karlcow/list-code.md new file mode 100644 index 0000000..71d2bc8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-code.md @@ -0,0 +1,4 @@ +* a list containing a block of code + + 10 PRINT HELLO INFINITE + 20 GOTO 10 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.html b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.html new file mode 100644 index 0000000..3f499b0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.html @@ -0,0 +1,9 @@ +
    +
  • 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.

  • +
  • Suspendisse id sem consectetuer libero luctus adipiscing.

  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.md b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.md new file mode 100644 index 0000000..0decb6f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs-tab.md @@ -0,0 +1,9 @@ +* 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. + +* Suspendisse id sem consectetuer libero luctus adipiscing. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.html b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.html new file mode 100644 index 0000000..3f499b0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.html @@ -0,0 +1,9 @@ +
    +
  • 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.

  • +
  • Suspendisse id sem consectetuer libero luctus adipiscing.

  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.md b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.md new file mode 100644 index 0000000..d8b1b67 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/list-multiparagraphs.md @@ -0,0 +1,9 @@ +* 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. + +* Suspendisse id sem consectetuer libero luctus adipiscing. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.html b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.html new file mode 100644 index 0000000..f6c477d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.html @@ -0,0 +1 @@ +

1. ordered list escape

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.md b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.md new file mode 100644 index 0000000..ecd4a74 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-escaped.md @@ -0,0 +1 @@ +1\. ordered list escape diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.html b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.html new file mode 100644 index 0000000..dbe72cf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.html @@ -0,0 +1,6 @@ +
    +
  1. 1

    +
      +
    • inner par list
  2. +
  3. 2

  4. +
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.md b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.md new file mode 100644 index 0000000..05c6490 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-inner-par-list.md @@ -0,0 +1,5 @@ +1. 1 + + - inner par list + +2. 2 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.html b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.html new file mode 100644 index 0000000..c34d859 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.html @@ -0,0 +1,5 @@ +
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
  5. list item 3
  6. +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.md b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.md new file mode 100644 index 0000000..53c3066 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items-random-number.md @@ -0,0 +1,3 @@ +1. list item 1 +8. list item 2 +1. list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.html b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.html new file mode 100644 index 0000000..c34d859 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.html @@ -0,0 +1,5 @@ +
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
  5. list item 3
  6. +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.md b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.md new file mode 100644 index 0000000..9ab0ada --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/ordered-list-items.md @@ -0,0 +1,3 @@ +1. list item 1 +2. list item 2 +3. list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.html new file mode 100644 index 0000000..7915e29 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.html @@ -0,0 +1,3 @@ +

This is a paragraph +on multiple lines +with hard return.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.md new file mode 100644 index 0000000..42b1fa5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-hard-return.md @@ -0,0 +1,3 @@ +This is a paragraph +on multiple lines +with hard return. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.html new file mode 100644 index 0000000..5fc0e44 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.html @@ -0,0 +1 @@ +

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.md new file mode 100644 index 0000000..ca72f4b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-line.md @@ -0,0 +1 @@ +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.html new file mode 100644 index 0000000..d99afcd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.html @@ -0,0 +1 @@ +

This is a paragraph with a trailing and leading space.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.md new file mode 100644 index 0000000..b83c0db --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-leading-spaces.md @@ -0,0 +1 @@ + This is a paragraph with a trailing and leading space. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.html new file mode 100644 index 0000000..f4bcd7c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.html @@ -0,0 +1 @@ +

This is a paragraph with 1 trailing tab.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.md new file mode 100644 index 0000000..a3617e0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraph-trailing-tab.md @@ -0,0 +1 @@ +This is a paragraph with 1 trailing tab. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.html new file mode 100644 index 0000000..bd08e95 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.html @@ -0,0 +1 @@ +

This is a paragraph with 2 leading spaces.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.md new file mode 100644 index 0000000..81f814e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-2-leading-spaces.md @@ -0,0 +1 @@ + This is a paragraph with 2 leading spaces. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.html new file mode 100644 index 0000000..9c91f46 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.html @@ -0,0 +1 @@ +

This is a paragraph with 3 leading spaces.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.md new file mode 100644 index 0000000..652f19a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-3-leading-spaces.md @@ -0,0 +1 @@ + This is a paragraph with 3 leading spaces. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.html new file mode 100644 index 0000000..917426d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.html @@ -0,0 +1 @@ +

This is a paragraph with 1 leading space.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.md new file mode 100644 index 0000000..d462e28 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-leading-space.md @@ -0,0 +1 @@ + This is a paragraph with 1 leading space. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.html new file mode 100644 index 0000000..7636c46 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.html @@ -0,0 +1 @@ +

This is a paragraph with a trailing space.

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.md new file mode 100644 index 0000000..6809b73 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/paragraphs-trailing-spaces.md @@ -0,0 +1 @@ +This is a paragraph with a trailing space. \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.html b/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.html new file mode 100644 index 0000000..4550f32 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.html @@ -0,0 +1 @@ +

asterisks

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.md b/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.md new file mode 100644 index 0000000..b13d5e9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-middle-word.md @@ -0,0 +1 @@ +as**te**risks diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.html b/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.html new file mode 100644 index 0000000..3181aea --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.html @@ -0,0 +1 @@ +

double asterisks

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.md b/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.md new file mode 100644 index 0000000..3af6887 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-star.md @@ -0,0 +1 @@ +**double asterisks** diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.html b/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.html new file mode 100644 index 0000000..ef613bb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.html @@ -0,0 +1 @@ +

double underscores

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.md b/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.md new file mode 100644 index 0000000..2ed3020 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/strong-underscore.md @@ -0,0 +1 @@ +__double underscores__ diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.html new file mode 100644 index 0000000..f2ca34f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.md new file mode 100644 index 0000000..01e3e61 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-asterisk.md @@ -0,0 +1,3 @@ +* list item 1 +* list item 2 +* list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.html new file mode 100644 index 0000000..10428d5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.md new file mode 100644 index 0000000..068ef97 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-dashsign.md @@ -0,0 +1,3 @@ +- list item 1 +- list item 2 +- list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.html new file mode 100644 index 0000000..f2ca34f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.md new file mode 100644 index 0000000..2fa48c3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-1space.md @@ -0,0 +1,3 @@ + * list item 1 + * list item 2 + * list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.html new file mode 100644 index 0000000..10428d5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.md new file mode 100644 index 0000000..f86969c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-2spaces.md @@ -0,0 +1,3 @@ + * list item 1 + * list item 2 + * list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.html new file mode 100644 index 0000000..10428d5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.md new file mode 100644 index 0000000..ee8ba46 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-leading-3spaces.md @@ -0,0 +1,3 @@ + * list item 1 + * list item 2 + * list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.html new file mode 100644 index 0000000..10428d5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.html @@ -0,0 +1,5 @@ +
    +
  • list item 1
  • +
  • list item 2
  • +
  • list item 3
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.md new file mode 100644 index 0000000..afa0018 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-items-plussign.md @@ -0,0 +1,3 @@ ++ list item 1 ++ list item 2 ++ list item 3 diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.html new file mode 100644 index 0000000..e78215e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.html @@ -0,0 +1,4 @@ +
    +
  • list item in paragraph

  • +
  • another list item in paragraph

  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.md new file mode 100644 index 0000000..4d9c3d7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-paragraphs.md @@ -0,0 +1,3 @@ +* list item in paragraph + +* another list item in paragraph diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.html new file mode 100644 index 0000000..44d07b8 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.html @@ -0,0 +1,4 @@ +
    +
  • This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a list.
  • +
  • and yet another long long long long long long long long long long long long long long long long long long long long long long line.
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.md new file mode 100644 index 0000000..483b979 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-unindented-content.md @@ -0,0 +1,2 @@ +* This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a list. +* and yet another long long long long long long long long long long long long long long long long long long long long long long line. diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.html b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.html new file mode 100644 index 0000000..003d8ce --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.html @@ -0,0 +1,7 @@ +
    +
  • This is a list item +with the content on +multiline and indented.
  • +
  • And this another list item +with the same principle.
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.md b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.md new file mode 100644 index 0000000..96ad00a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/karlcow/unordered-list-with-indented-content.md @@ -0,0 +1,5 @@ +* This is a list item + with the content on + multiline and indented. +* And this another list item + with the same principle. diff --git a/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.html b/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.html new file mode 100644 index 0000000..1bba333 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.html @@ -0,0 +1,4 @@ +

This is an example reference-style link. + This is another reference-style link. + This is a third reference-style link. + This is a fourth reference-style link.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.md b/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.md new file mode 100644 index 0000000..5990adf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/anchors-by-reference.md @@ -0,0 +1,11 @@ + +This is [an example][id] reference-style link. +This is [another] [foo] reference-style link. +This is [a third][bar] reference-style link. +This is [a fourth][4] reference-style link. + + [id]: http://example.com/ "Optional Title Here" + [foo]: http://example.com/ (Optional Title Here) + [bar]: http://example.com/ (Optional Title Here) + [4]: + "Optional Title Here" diff --git a/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.html b/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.html new file mode 100644 index 0000000..1b1abac --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.html @@ -0,0 +1,4 @@ +

This is a link (some other text)

+

This is a link (some other text)

+

This is a link (some other text)

+

This is a link (some other text)

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.md b/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.md new file mode 100644 index 0000000..974fdd3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/anchors-followed-by-brakets.md @@ -0,0 +1,7 @@ +This is a [link](https://en.wikipedia.org/wiki/Textile) (some other text) + +This is a [link](https://en.wikipedia.org/wiki/Textile_(markup) (some other text) + +This is a [link](https://en.wikipedia.org/wiki/Textile_(markup_language)) (some other text) + +This is a [link](https://en.wikipedia.org/wiki/Textile_(markup_language)/foo) (some other text) \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.html b/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.html new file mode 100644 index 0000000..6de71a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.html @@ -0,0 +1 @@ +

http://example.com/

diff --git a/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.md b/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.md new file mode 100644 index 0000000..9049dad --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/automatic-anchors.md @@ -0,0 +1,2 @@ + + diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.html b/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.html new file mode 100644 index 0000000..0f48cab --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.html @@ -0,0 +1,10 @@ +
+

a blockquote +with a 4 space indented line (not code)

+
+

sep

+
+

a blockquote

+
+
with some code after
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.md b/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.md new file mode 100644 index 0000000..b0426b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-followed-by-code.md @@ -0,0 +1,8 @@ +> a blockquote + with a 4 space indented line (not code) + +sep + +> a blockquote + + with some code after diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.html b/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.html new file mode 100644 index 0000000..b46311f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.html @@ -0,0 +1,7 @@ +
> this is a pseudo blockquote
+    > inside a code block
+
+

foo

+
> this is another bq
+    inside code
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.md b/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.md new file mode 100644 index 0000000..eeb225a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-inside-code.md @@ -0,0 +1,7 @@ + > this is a pseudo blockquote + > inside a code block + +foo + + > this is another bq + inside code diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.html b/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.html new file mode 100644 index 0000000..a73ca6e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.html @@ -0,0 +1,10 @@ +
+

This is a header.

+
    +
  1. This is the first list item.
  2. +
  3. This is the second list item.
  4. +
+

Here's some example code:

+
return shell_exec("echo $input | $markdown_script");
+    
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.md b/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.md new file mode 100644 index 0000000..56b6aa5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote-nested-markdown.md @@ -0,0 +1,8 @@ +> ## 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"); diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote.html b/static/showdown/test/functional/makehtml/cases/standard/blockquote.html new file mode 100644 index 0000000..0b47c63 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote.html @@ -0,0 +1,4 @@ +
+

This is a multi line blockquote test

+

With more than one line.

+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/blockquote.md b/static/showdown/test/functional/makehtml/cases/standard/blockquote.md new file mode 100644 index 0000000..5a07ed1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/blockquote.md @@ -0,0 +1,4 @@ + + > This is a multi line blockquote test + > + > With more than one line. diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.html b/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.html new file mode 100644 index 0000000..770e126 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.html @@ -0,0 +1,3 @@ +

This is some HTML:

+
<h1>Heading</h1>
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.md b/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.md new file mode 100644 index 0000000..728fee3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block-html-escape.md @@ -0,0 +1,4 @@ + +This is some HTML: + +

Heading

diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.html b/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.html new file mode 100644 index 0000000..f97977f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.html @@ -0,0 +1,7 @@ +
//**this** code _has_ special chars
+var arr = ['foo', 'bar', 'baz'];
+function () {
+    return 'foo';
+}
+\n
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.md b/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.md new file mode 100644 index 0000000..fd25d57 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block-with-special-chars.md @@ -0,0 +1,6 @@ + //**this** code _has_ special chars + var arr = ['foo', 'bar', 'baz']; + function () { + return 'foo'; + } + \n diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block.html b/static/showdown/test/functional/makehtml/cases/standard/code-block.html new file mode 100644 index 0000000..56bc5d0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block.html @@ -0,0 +1,3 @@ +

This is a normal paragraph:

+
This is a code block.
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/code-block.md b/static/showdown/test/functional/makehtml/cases/standard/code-block.md new file mode 100644 index 0000000..2873811 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/code-block.md @@ -0,0 +1,4 @@ + +This is a normal paragraph: + + This is a code block. diff --git a/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.html b/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.html new file mode 100644 index 0000000..8391bff --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.html @@ -0,0 +1,4 @@ +

a strong and em thingy

+

barbazingabar

+

a strong and em thingy

+

barbazingabar

diff --git a/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.md b/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.md new file mode 100644 index 0000000..73f2d39 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/double-emphasis.md @@ -0,0 +1,7 @@ +a ___strong and em___ thingy + +bar___bazinga___bar + +a ***strong and em*** thingy + +bar***bazinga***bar diff --git a/static/showdown/test/functional/makehtml/cases/standard/doubline-list.html b/static/showdown/test/functional/makehtml/cases/standard/doubline-list.html new file mode 100644 index 0000000..a2fe204 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/doubline-list.html @@ -0,0 +1,4 @@ +
    +
  • Bird

  • +
  • Magic

  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/doubline-list.md b/static/showdown/test/functional/makehtml/cases/standard/doubline-list.md new file mode 100644 index 0000000..bea70ea --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/doubline-list.md @@ -0,0 +1,4 @@ + + * Bird + + * Magic diff --git a/static/showdown/test/functional/makehtml/cases/standard/ellipsis.html b/static/showdown/test/functional/makehtml/cases/standard/ellipsis.html new file mode 100644 index 0000000..fd77939 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ellipsis.html @@ -0,0 +1,19 @@ +

ellipsis in text…

+

+
    +
  1. foo…
  2. +
  3. bar
  4. +
+
+

ellipsis in blockquote…

+
+
ellipsis in code...
+
+
ellipsis in code...
+
+

ellipsis in header…

+

1…

+
    +
  1. ..
  2. +
+

1…

diff --git a/static/showdown/test/functional/makehtml/cases/standard/ellipsis.md b/static/showdown/test/functional/makehtml/cases/standard/ellipsis.md new file mode 100644 index 0000000..e790fb5 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ellipsis.md @@ -0,0 +1,22 @@ +ellipsis in text... + +... + +1. foo... +2. bar + +> ellipsis in blockquote... + +``` +ellipsis in code... +``` + + ellipsis in code... + +# ellipsis in header... + +1... + +1. .. + +1... \ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.html b/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.html new file mode 100644 index 0000000..0a70937 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.html @@ -0,0 +1 @@ +

some text **foo**

diff --git a/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.md b/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.md new file mode 100644 index 0000000..df8b95d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/emphasis-inside-inline-code.md @@ -0,0 +1 @@ +some text `**foo**` diff --git a/static/showdown/test/functional/makehtml/cases/standard/emphasis.html b/static/showdown/test/functional/makehtml/cases/standard/emphasis.html new file mode 100644 index 0000000..a243682 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/emphasis.html @@ -0,0 +1,38 @@ +

single asterisks

+

single underscores

+

double asterisks

+

double underscores

+

text with italic sentence in middle

+

text with bold sentence in middle

+

text with bold text that + spans across multiple lines

+

underscored_word

+

doubleunderscore__word

+

asterix*word

+

doubleasterix**word

+

line with_underscored word

+

line with__doubleunderscored word

+

line with*asterixed word

+

line with**doubleasterixed word

+

some linewithinner underscores

+

some linewithinner double underscores

+

some linewithinner asterixs

+

some linewithinner double asterixs

+

another line with just _one underscore

+

another line with just __one double underscore

+

another line with just *one asterix

+

another line with just **one double asterix

+

a sentence withunderscore and anotherunderscore

+

a sentence withdoubleunderscore and anotherdoubleunderscore

+

a sentence withasterix and anotherasterix

+

a sentence withdoubleasterix and anotherdoubleasterix

+

escaped word_with_underscores

+

escaped word__with__double underscores

+

escaped word_with_single italic underscore

+

escaped word*with*asterixs

+

escaped word**with**asterixs

+

escaped word*with*bold asterixs

+

foobarbaz

+

foobarbaz

+

this is imbued link with strong

+

this is imbued link with strong

diff --git a/static/showdown/test/functional/makehtml/cases/standard/emphasis.md b/static/showdown/test/functional/makehtml/cases/standard/emphasis.md new file mode 100644 index 0000000..4d808f2 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/emphasis.md @@ -0,0 +1,74 @@ +*single asterisks* + +_single underscores_ + +**double asterisks** + +__double underscores__ + +text *with italic sentence* in middle + +text __with bold sentence__ in middle + +text with __bold text that +spans across multiple__ lines + +underscored_word + +doubleunderscore__word + +asterix*word + +doubleasterix**word + +line with_underscored word + +line with__doubleunderscored word + +line with*asterixed word + +line with**doubleasterixed word + +some line_with_inner underscores + +some line__with__inner double underscores + +some line*with*inner asterixs + +some line**with**inner double asterixs + +another line with just _one underscore + +another line with just __one double underscore + +another line with just *one asterix + +another line with just **one double asterix + +a sentence with_underscore and another_underscore + +a sentence with__doubleunderscore and another__doubleunderscore + +a sentence with*asterix and another*asterix + +a sentence with**doubleasterix and another**doubleasterix + +escaped word\_with\_underscores + +escaped word\_\_with\_\_double underscores + +escaped word_\_with\__single italic underscore + +escaped word\*with*asterixs + +escaped word\*\*with\*\*asterixs + +escaped word**\*with\***bold asterixs + +foo**bar**baz + +foo__bar__baz + +this is **imbued link with strong** + +this is __imbued link with strong__ diff --git a/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.html b/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.html new file mode 100644 index 0000000..870bf1e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.html @@ -0,0 +1,4 @@ +

this is code some <span>text</span> yeah!

+

+<div>foo</div>
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.md b/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.md new file mode 100644 index 0000000..f61677a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/encodeHTMLCodeTags.md @@ -0,0 +1,5 @@ +this is code some text yeah! + +

+
foo
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.html b/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.html new file mode 100644 index 0000000..42f286d --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.html @@ -0,0 +1 @@ +

It happened in 1986. What a great season.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.md b/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.md new file mode 100644 index 0000000..654761b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/escaped-number-period.md @@ -0,0 +1 @@ +It happened in 1986\. What a great season. diff --git a/static/showdown/test/functional/makehtml/cases/standard/escaping.html b/static/showdown/test/functional/makehtml/cases/standard/escaping.html new file mode 100644 index 0000000..80a0ddb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/escaping.html @@ -0,0 +1,16 @@ +

These should all be escaped:

+

\

+

`

+

*

+

_

+

{

+

}

+

[

+

]

+

(

+

)

+

#

+

+

+

-

+

.

+

!

diff --git a/static/showdown/test/functional/makehtml/cases/standard/escaping.md b/static/showdown/test/functional/makehtml/cases/standard/escaping.md new file mode 100644 index 0000000..cfcb70c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/escaping.md @@ -0,0 +1,32 @@ + +These should all be escaped: + +\\ + +\` + +\* + +\_ + +\{ + +\} + +\[ + +\] + +\( + +\) + +\# + +\+ + +\- + +\. + +\! diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.html b/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.html new file mode 100644 index 0000000..79c0044 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.html @@ -0,0 +1,5 @@ +
function MyFunc(a) {
+  // ...
+  }
+
+

That is some code!

diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.md b/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.md new file mode 100644 index 0000000..557d63c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-at-start.md @@ -0,0 +1,7 @@ +``` +function MyFunc(a) { + // ... +} +``` + +That is some code! diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.html b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.html new file mode 100644 index 0000000..2800050 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.html @@ -0,0 +1,12 @@ +
+

Define a function in javascript:

+
function MyFunc(a) {
+  var s = '`';
+  }
+
+
+

And some nested quote

+
<div>HTML!</div>
+
+
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.md b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.md new file mode 100644 index 0000000..23c4714 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock-inside-quote.md @@ -0,0 +1,13 @@ +> Define a function in javascript: +> +> ``` +> function MyFunc(a) { +> var s = '`'; +> } +> ``` +> +>> And some nested quote +>> +>> ```html +>>
HTML!
+>> ``` diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.html b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.html new file mode 100644 index 0000000..57fdf4e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.html @@ -0,0 +1,14 @@ +

Define a function in javascript:

+
function MyFunc(a) {
+  var s = '`';
+  }
+
+

And some HTML

+
<div>HTML!</div>
+
+

Use more than 3 backticks

+
some code
+
+

Use tilde as delimiter

+
another piece of code
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.md b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.md new file mode 100644 index 0000000..bae8447 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-codeblock.md @@ -0,0 +1,26 @@ + +Define a function in javascript: + +``` +function MyFunc(a) { + var s = '`'; +} +``` + +And some HTML + +```html +
HTML!
+``` + +Use more than 3 backticks + +````` +some code +````` + +Use tilde as delimiter + +~~~ +another piece of code +~~~ diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.html b/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.html new file mode 100644 index 0000000..e92a482 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.html @@ -0,0 +1,3 @@ +
code can go here
+  this is rendered on a second line
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.md b/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.md new file mode 100644 index 0000000..1b55536 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/github-style-linebreaks.md @@ -0,0 +1,4 @@ +``` +code can go here +this is rendered on a second line +``` diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.html new file mode 100644 index 0000000..ab5b555 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.html @@ -0,0 +1 @@ +

This is an H1

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.md new file mode 100644 index 0000000..d25887a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-double-hash.md @@ -0,0 +1 @@ +# This is an H1 # diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.html b/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.html new file mode 100644 index 0000000..ab5b555 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.html @@ -0,0 +1 @@ +

This is an H1

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.md b/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.md new file mode 100644 index 0000000..313c1dc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-equals.md @@ -0,0 +1,2 @@ +This is an H1 +============= diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.html new file mode 100644 index 0000000..ab5b555 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.html @@ -0,0 +1 @@ +

This is an H1

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.md new file mode 100644 index 0000000..90944c9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h1-with-single-hash.md @@ -0,0 +1 @@ +# This is an H1 diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.html b/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.html new file mode 100644 index 0000000..375a0d0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.html @@ -0,0 +1 @@ +

This is an H2

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.md b/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.md new file mode 100644 index 0000000..a912f0e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-dashes.md @@ -0,0 +1,2 @@ +This is an H2 +------------- diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.html new file mode 100644 index 0000000..375a0d0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.html @@ -0,0 +1 @@ +

This is an H2

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.md new file mode 100644 index 0000000..9539252 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-double-hash.md @@ -0,0 +1 @@ +## This is an H2 ## diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.html new file mode 100644 index 0000000..375a0d0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.html @@ -0,0 +1 @@ +

This is an H2

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.md new file mode 100644 index 0000000..bf1c56f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h2-with-single-hash.md @@ -0,0 +1 @@ +## This is an H2 diff --git a/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.html new file mode 100644 index 0000000..13f8c9e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.html @@ -0,0 +1 @@ +

This is an H3

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.md new file mode 100644 index 0000000..f875665 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h3-with-double-hash.md @@ -0,0 +1 @@ +### This is an H3 ### diff --git a/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.html new file mode 100644 index 0000000..13f8c9e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.html @@ -0,0 +1 @@ +

This is an H3

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.md new file mode 100644 index 0000000..247ce34 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h3-with-single-hash.md @@ -0,0 +1 @@ +### This is an H3 diff --git a/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.html new file mode 100644 index 0000000..165b4ef --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.html @@ -0,0 +1 @@ +

This is an H4

diff --git a/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.md new file mode 100644 index 0000000..36f0db0 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h4-with-single-hash.md @@ -0,0 +1 @@ +#### This is an H4 diff --git a/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.html new file mode 100644 index 0000000..28eac14 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.html @@ -0,0 +1 @@ +
This is an H5
diff --git a/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.md new file mode 100644 index 0000000..a66d50b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h5-with-single-hash.md @@ -0,0 +1 @@ +##### This is an H5 diff --git a/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.html b/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.html new file mode 100644 index 0000000..47574cc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.html @@ -0,0 +1 @@ +
This is an H6
diff --git a/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.md b/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.md new file mode 100644 index 0000000..c85f1a7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/h6-with-single-hash.md @@ -0,0 +1 @@ +###### This is an H6 diff --git a/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.html b/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.html new file mode 100644 index 0000000..52f2479 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.html @@ -0,0 +1,5 @@ +
+
+
+
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.md b/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.md new file mode 100644 index 0000000..6a45ca1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/horizontal-rules.md @@ -0,0 +1,10 @@ + +* * * + +*** + +***** + +- - - + +--------------------------------------- diff --git a/static/showdown/test/functional/makehtml/cases/standard/html-comments.html b/static/showdown/test/functional/makehtml/cases/standard/html-comments.html new file mode 100644 index 0000000..767353e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html-comments.html @@ -0,0 +1,10 @@ + + +

words words

+ +

words

+ +
<!-- comment -->
+
+

<!----------------------------------------------------------------------------------------------------------------------------------------------------

+ diff --git a/static/showdown/test/functional/makehtml/cases/standard/html-comments.md b/static/showdown/test/functional/makehtml/cases/standard/html-comments.md new file mode 100644 index 0000000..a9fcf5f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html-comments.md @@ -0,0 +1,15 @@ + + + + +words words + + words + + + + + + diff --git a/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.html b/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.html new file mode 100644 index 0000000..31001d9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.html @@ -0,0 +1,8 @@ +
    +
  • list item 1

    +
    <a href="www.google.com">google</a>
    +<div>
    +<div>some div</div>
    +</div>
    +
  • +
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.md b/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.md new file mode 100644 index 0000000..5034d5e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html-inside-listed-code.md @@ -0,0 +1,8 @@ + - list item 1 + + ```html + google +
+
some div
+
+ ``` diff --git a/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.html b/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.html new file mode 100644 index 0000000..f054d42 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.html @@ -0,0 +1,57 @@ +

These HTML5 tags should pass through just fine.

+
hello
+
head
+
footsies
+ +
read me
+ +
read + me
+ +

the end

+ + + + + + + +
Foo
Bar
+ + + + + + + + + + + + + + +
Foo
Bar
Bar
+ + +
My street
+ + Sorry, your browser doesn't support the <canvas> element. + +
+ An awesome picture +
Caption for the awesome picture
+
+
+

Main title

+

Secondary title

+
+ diff --git a/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.md b/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.md new file mode 100644 index 0000000..bbf9c67 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/html5-strutural-tags.md @@ -0,0 +1,68 @@ +These HTML5 tags should pass through just fine. + +
hello
+
head
+
footsies
+ +
read me
+ +
read +me
+ + +the end + + + + + + + + +
Foo
Bar
+ + + + + + + + + + + + + + + +
Foo
Bar
Bar
+ + + + + +
My street
+ + + Sorry, your browser doesn't support the <canvas> element. + + +
+ An awesome picture +
Caption for the awesome picture
+
+ +
+

Main title

+

Secondary title

+
+ + diff --git a/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.html b/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.html new file mode 100644 index 0000000..20e2292 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.html @@ -0,0 +1,2 @@ +

image link(some text between brackets)

+

image link(some text between brackets)

\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.md b/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.md new file mode 100644 index 0000000..1481067 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/images-followed-by-brackets.md @@ -0,0 +1,3 @@ +![image link](<./image/cat1.png>)(some text between brackets) + +![image link](<./image/cat(1).png>)(some text between brackets) diff --git a/static/showdown/test/functional/makehtml/cases/standard/images.html b/static/showdown/test/functional/makehtml/cases/standard/images.html new file mode 100644 index 0000000..f28e0b9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/images.html @@ -0,0 +1,6 @@ +

Alt text

+

Alt text

+

Alt text

+

My Image

+

![leave me alone]

+

![leave me alone][]

diff --git a/static/showdown/test/functional/makehtml/cases/standard/images.md b/static/showdown/test/functional/makehtml/cases/standard/images.md new file mode 100644 index 0000000..2cd5930 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/images.md @@ -0,0 +1,14 @@ +![Alt text](/path/to/img.jpg) + +![Alt text](/path/to/img.jpg "Optional title") + +![Alt text][id] + +![My Image] + +![leave me alone] + +![leave me alone][] + + [id]: url/to/image.jpg "Optional title attribute" + [My Image]: url/to/image2.jpg "Optional title attribute" diff --git a/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.html b/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.html new file mode 100644 index 0000000..170f0c7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.html @@ -0,0 +1,2 @@ +

Search the web at Google or Daring Fireball.

+

Search the web at Google or Daring Fireball.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.md b/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.md new file mode 100644 index 0000000..9bec02f --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/implicit-anchors.md @@ -0,0 +1,7 @@ +Search the web at [Google][] or [Daring Fireball][]. + +Search the web at [Google] or [Daring Fireball]. + + + [Google]: http://google.com/ + [Daring Fireball]: http://daringfireball.net/ diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.html b/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.html new file mode 100644 index 0000000..69a8a2e --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.html @@ -0,0 +1,2 @@ +

This is an example inline link.

+

This link has no title attribute.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.md b/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.md new file mode 100644 index 0000000..989f573 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-anchors.md @@ -0,0 +1,3 @@ +This is [an example](http://example.com/ "Title") inline link. + +[This link](http://example.net/) has no title attribute. diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-code.html b/static/showdown/test/functional/makehtml/cases/standard/inline-code.html new file mode 100644 index 0000000..9f316ca --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-code.html @@ -0,0 +1,7 @@ +

Create a new function.

+

Use the backtick in MySQL syntax SELECT `column` FROM whatever.

+

A single backtick in a code span: `

+

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

+

Please don't use any <blink> tags.

+

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

+

this inline **code** has ___magic___ chars

diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-code.md b/static/showdown/test/functional/makehtml/cases/standard/inline-code.md new file mode 100644 index 0000000..f809a23 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-code.md @@ -0,0 +1,13 @@ +Create a new `function`. + +Use the backtick in MySQL syntax ``SELECT `column` FROM whatever``. + +A single backtick in a code span: `` ` `` + +A backtick-delimited string in a code span: `` `foo` `` + +Please don't use any `` tags. + +`—` is the decimal-encoded equivalent of `—`. + +this `inline **code** has ___magic___` chars diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.html b/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.html new file mode 100644 index 0000000..5ee58e6 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.html @@ -0,0 +1,2 @@ +

Hello.this_is_a_variable + and.this.is.another_one

diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.md b/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.md new file mode 100644 index 0000000..93a43bc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-escaped-chars.md @@ -0,0 +1,2 @@ +Hello.this\_is\_a\_variable +and.this.is.another_one diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.html b/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.html new file mode 100644 index 0000000..3941994 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.html @@ -0,0 +1,4 @@ + +

An exciting sentence.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.md b/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.md new file mode 100644 index 0000000..65b63ca --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/inline-style-tag.md @@ -0,0 +1,5 @@ + + +An exciting sentence. diff --git a/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.html b/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.html new file mode 100644 index 0000000..0b47c63 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.html @@ -0,0 +1,4 @@ +
+

This is a multi line blockquote test

+

With more than one line.

+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.md b/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.md new file mode 100644 index 0000000..86f80c9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/lazy-blockquote.md @@ -0,0 +1,3 @@ + > This is a multi line blockquote test + + > With more than one line. diff --git a/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.html b/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.html new file mode 100644 index 0000000..29bf9b4 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.html @@ -0,0 +1,2 @@ +

some text words

+


words

diff --git a/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.md b/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.md new file mode 100644 index 0000000..71f11fd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/line-starts-with-html.md @@ -0,0 +1,3 @@ +some text words + +
words diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.html b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.html new file mode 100644 index 0000000..7257454 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.html @@ -0,0 +1,12 @@ +

some title

+
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
+
+

some text in a blockquote

+
+
    +
  • another list item 1
  • +
  • another list item 2
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.md b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.md new file mode 100644 index 0000000..dfce7bd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-blockquote.md @@ -0,0 +1,9 @@ +# some title + +1. list item 1 +2. list item 2 + +> some text in a blockquote + +* another list item 1 +* another list item 2 diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.html b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.html new file mode 100644 index 0000000..b218fb7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.html @@ -0,0 +1,13 @@ +

some title

+
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
+
some code
+
+    and some other line of code
+
+
    +
  • another list item 1
  • +
  • another list item 2
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.md b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.md new file mode 100644 index 0000000..7bd70ba --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-followed-by-ghcode.md @@ -0,0 +1,13 @@ +# some title + +1. list item 1 +2. list item 2 + +``` +some code + +and some other line of code +``` + +* another list item 1 +* another list item 2 diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.html b/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.html new file mode 100644 index 0000000..20ca2e1 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.html @@ -0,0 +1,7 @@ +
    +
  • A list item with a blockquote:

    +
    +

    This is a blockquote + inside a list item.

    +
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.md b/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.md new file mode 100644 index 0000000..68c79a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-with-blockquote.md @@ -0,0 +1,4 @@ +* A list item with a blockquote: + + > This is a blockquote + > inside a list item. diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-with-code.html b/static/showdown/test/functional/makehtml/cases/standard/list-with-code.html new file mode 100644 index 0000000..5096858 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-with-code.html @@ -0,0 +1,5 @@ +
    +
  • A list item with code:

    +
    alert('Hello world!');
    +    
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/list-with-code.md b/static/showdown/test/functional/makehtml/cases/standard/list-with-code.md new file mode 100644 index 0000000..276ee59 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/list-with-code.md @@ -0,0 +1,3 @@ +* A list item with code: + + alert('Hello world!'); diff --git a/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.html b/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.html new file mode 100644 index 0000000..c3ed5a7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.html @@ -0,0 +1,5 @@ +

some **code** yeah

+

some inline **code** block

+

some inline **code** block

+

yo dawg some <code start="false">code</code> inception

+
some **div** yeah
\ No newline at end of file diff --git a/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.md b/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.md new file mode 100644 index 0000000..4a596a9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/literal-html-tags.md @@ -0,0 +1,9 @@ +some **code** yeah + +some inline **code** block + +some inline **code** block + +yo dawg some code inception + +
some **div** yeah
diff --git a/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.html b/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.html new file mode 100644 index 0000000..b226540 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.html @@ -0,0 +1,5 @@ +
    +
  1. This is a major bullet point.

    +

    That contains multiple paragraphs.

  2. +
  3. And another line

  4. +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.md b/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.md new file mode 100644 index 0000000..1e14867 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/multi-paragraph-list.md @@ -0,0 +1,5 @@ + 1. This is a major bullet point. + + That contains multiple paragraphs. + + 2. And another line diff --git a/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.html b/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.html new file mode 100644 index 0000000..6af8aac --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.html @@ -0,0 +1,5 @@ +
    +
  • This line spans + more than one line and is lazy
  • +
  • Similar to this line
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.md b/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.md new file mode 100644 index 0000000..2f52a4c --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/multiline-unordered-list.md @@ -0,0 +1,3 @@ + - This line spans + more than one line and is lazy + - Similar to this line diff --git a/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.html b/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.html new file mode 100644 index 0000000..6063347 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.html @@ -0,0 +1,7 @@ +
+

This is a multi line blockquote test

+
+

And nesting!

+
+

With more than one line.

+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.md b/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.md new file mode 100644 index 0000000..9585277 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/nested-blockquote.md @@ -0,0 +1,5 @@ + > This is a multi line blockquote test + > + > > And nesting! + > + > With more than one line. diff --git a/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.html b/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.html new file mode 100644 index 0000000..8eea4b3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.html @@ -0,0 +1,8 @@ +
1. some code idented 4 spaces
+
+    ```
+    var foobar = 'foo';
+    ```
+
+2. another line
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.md b/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.md new file mode 100644 index 0000000..515d8c7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/nested-gh-codeblocks.md @@ -0,0 +1,9 @@ +``` +1. some code idented 4 spaces + + ``` + var foobar = 'foo'; + ``` + +2. another line +``` diff --git a/static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.html b/static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.html new file mode 100644 index 0000000..e69de29 diff --git a/static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.md b/static/showdown/test/functional/makehtml/cases/standard/obfuscated-emails.md new file mode 100644 index 0000000..e69de29 diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.html b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.html new file mode 100644 index 0000000..a48b0b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.html @@ -0,0 +1,5 @@ +
    +
  1. Red
  2. +
  3. Green
  4. +
  5. Blue
  6. +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.md b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.md new file mode 100644 index 0000000..1759c55 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-same-number.md @@ -0,0 +1,3 @@ + 1. Red + 1. Green + 1. Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.html b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.html new file mode 100644 index 0000000..45666bb --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.html @@ -0,0 +1,12 @@ +
    +
  1. foo
  2. +
  3. bar
  4. +
  5. baz
  6. +
+
+
    +
  1. a
  2. +
  3. b
  4. +
  5. c
  6. +
  7. d
  8. +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.md b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.md new file mode 100644 index 0000000..b5e9fde --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-starting-number.md @@ -0,0 +1,10 @@ +5. foo +6. bar +7. baz + +--- + +3. a +2. b +7. c +23. d diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.html b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.html new file mode 100644 index 0000000..a48b0b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.html @@ -0,0 +1,5 @@ +
    +
  1. Red
  2. +
  3. Green
  4. +
  5. Blue
  6. +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.md b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.md new file mode 100644 index 0000000..1759c55 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list-wrong-numbers.md @@ -0,0 +1,3 @@ + 1. Red + 1. Green + 1. Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list.html b/static/showdown/test/functional/makehtml/cases/standard/ordered-list.html new file mode 100644 index 0000000..a48b0b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list.html @@ -0,0 +1,5 @@ +
    +
  1. Red
  2. +
  3. Green
  4. +
  5. Blue
  6. +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/ordered-list.md b/static/showdown/test/functional/makehtml/cases/standard/ordered-list.md new file mode 100644 index 0000000..2e2686a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/ordered-list.md @@ -0,0 +1,3 @@ + 1. Red + 2. Green + 3. Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.html b/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.html new file mode 100644 index 0000000..0367bb2 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.html @@ -0,0 +1,11 @@ +
    +
  • foo

    +
      +
    • bazinga

    • +
    • yeah

  • +
  • bar

    +
      +
    1. damn

    2. +
    3. so many paragraphs

  • +
  • baz

  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.md b/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.md new file mode 100644 index 0000000..4aade2a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/paragraphed-list-with-sublists.md @@ -0,0 +1,13 @@ + - foo + + - bazinga + + - yeah + + - bar + + 1. damn + + 2. so many paragraphs + + - baz diff --git a/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.html b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.html new file mode 100644 index 0000000..88501bd --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.html @@ -0,0 +1,5 @@ +

code inception

+
<pre><code>
+<div>some html code inside code html tags inside a fenced code block</div>
+</code></pre>
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.md b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.md new file mode 100644 index 0000000..dad08e9 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags-inside-code-block.md @@ -0,0 +1,7 @@ +code inception + +``` +

+
some html code inside code html tags inside a fenced code block
+
+``` diff --git a/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.html b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.html new file mode 100644 index 0000000..aa18009 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.html @@ -0,0 +1,13 @@ +
+
+foobar
+
+
+

blabla

+

+foobar
+
+
+

+<div>some html code</div>
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.md b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.md new file mode 100644 index 0000000..4cab343 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/pre-code-tags.md @@ -0,0 +1,16 @@ +
+
+foobar
+
+
+ +blabla + +

+foobar
+
+
+ +

+
some html code
+
diff --git a/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.html b/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.html new file mode 100644 index 0000000..6db73dc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.html @@ -0,0 +1 @@ +

See my About page for details.

diff --git a/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.md b/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.md new file mode 100644 index 0000000..c42eeaf --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/relative-anchors.md @@ -0,0 +1 @@ +See my [About](/about/) page for details. diff --git a/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.html b/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.html new file mode 100644 index 0000000..2cb8916 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.html @@ -0,0 +1,3 @@ +

Same Title

+

some text

+

Same Title

diff --git a/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.md b/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.md new file mode 100644 index 0000000..4369318 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/repeated-headers.md @@ -0,0 +1,5 @@ +# Same Title + +some text + +# Same Title diff --git a/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.html b/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.html new file mode 100644 index 0000000..7ce5354 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.html @@ -0,0 +1 @@ +

Hello, world!

diff --git a/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.md b/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.md new file mode 100644 index 0000000..af5626b --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/simple-paragraph.md @@ -0,0 +1 @@ +Hello, world! diff --git a/static/showdown/test/functional/makehtml/cases/standard/strip-references.html b/static/showdown/test/functional/makehtml/cases/standard/strip-references.html new file mode 100644 index 0000000..e69de29 diff --git a/static/showdown/test/functional/makehtml/cases/standard/strip-references.md b/static/showdown/test/functional/makehtml/cases/standard/strip-references.md new file mode 100644 index 0000000..3fec643 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/strip-references.md @@ -0,0 +1,13 @@ +[1]: http://www.google.co.uk + +[http://www.google.co.uk]: http://www.google.co.uk + + + + + +[1]: http://dsurl.stuff/something.jpg + +[1]:http://www.google.co.uk + + [1]:http://www.google.co.uk diff --git a/static/showdown/test/functional/makehtml/cases/standard/strong.html b/static/showdown/test/functional/makehtml/cases/standard/strong.html new file mode 100644 index 0000000..8b185b7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/strong.html @@ -0,0 +1,3 @@ +

important

+

important

+

really freakingstrong

diff --git a/static/showdown/test/functional/makehtml/cases/standard/strong.md b/static/showdown/test/functional/makehtml/cases/standard/strong.md new file mode 100644 index 0000000..6cc7163 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/strong.md @@ -0,0 +1,5 @@ +**important** + +__important__ + +really **freaking**strong diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.html b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.html new file mode 100644 index 0000000..62dba34 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.html @@ -0,0 +1,5 @@ +
    +
  • Red
  • +
  • Green
  • +
  • Blue
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.md b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.md new file mode 100644 index 0000000..402a6ed --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-asterisk.md @@ -0,0 +1,3 @@ + * Red + * Green + * Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.html b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.html new file mode 100644 index 0000000..62dba34 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.html @@ -0,0 +1,5 @@ +
    +
  • Red
  • +
  • Green
  • +
  • Blue
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.md b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.md new file mode 100644 index 0000000..7e2e09a --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-minus.md @@ -0,0 +1,3 @@ + - Red + - Green + - Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.html b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.html new file mode 100644 index 0000000..62dba34 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.html @@ -0,0 +1,5 @@ +
    +
  • Red
  • +
  • Green
  • +
  • Blue
  • +
diff --git a/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.md b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.md new file mode 100644 index 0000000..9c9e2f7 --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/unordered-list-plus.md @@ -0,0 +1,3 @@ + + Red + + Green + + Blue diff --git a/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.html b/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.html new file mode 100644 index 0000000..9e1e7cc --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.html @@ -0,0 +1 @@ +

There's an episode of Star Trek: The Next Generation

diff --git a/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.md b/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.md new file mode 100644 index 0000000..d1777ab --- /dev/null +++ b/static/showdown/test/functional/makehtml/cases/standard/url-with-parenthesis.md @@ -0,0 +1 @@ +There's an [episode](http://en.memory-alpha.org/wiki/Darmok_(episode)) of Star Trek: The Next Generation diff --git a/static/showdown/test/functional/makehtml/makehtml.bootstrap.js b/static/showdown/test/functional/makehtml/makehtml.bootstrap.js new file mode 100644 index 0000000..c518c8a --- /dev/null +++ b/static/showdown/test/functional/makehtml/makehtml.bootstrap.js @@ -0,0 +1,89 @@ +/** + * Created by Estevao on 08-06-2015. + */ + +//jscs:disable requireCamelCaseOrUpperCaseIdentifiers +(function () { + 'use strict'; + + require('source-map-support').install(); + require('chai').should(); + var fs = require('fs'); + + function getTestSuite (dir) { + return fs.readdirSync(dir) + .filter(filter()) + .map(map(dir)); + } + + function filter () { + return function (file) { + var ext = file.slice(-3); + return (ext === '.md'); + }; + } + + function map (dir) { + return function (file) { + var name = file.replace('.md', ''), + htmlPath = dir + name + '.html', + html = fs.readFileSync(htmlPath, 'utf8'), + mdPath = dir + name + '.md', + md = fs.readFileSync(mdPath, 'utf8'); + + return { + name: name, + input: md, + expected: html + }; + }; + } + + function assertion (testCase, converter) { + return function () { + testCase.actual = converter.makeHtml(testCase.input); + testCase = normalize(testCase); + + // Compare + testCase.actual.should.equal(testCase.expected); + }; + } + + //Normalize input/output + function normalize (testCase) { + + // Normalize line returns + testCase.expected = testCase.expected.replace(/(\r\n)|\n|\r/g, '\n'); + testCase.actual = testCase.actual.replace(/(\r\n)|\n|\r/g, '\n'); + + // Ignore all leading/trailing whitespace + testCase.expected = testCase.expected.split('\n').map(function (x) { + return x.trim(); + }).join('\n'); + testCase.actual = testCase.actual.split('\n').map(function (x) { + return x.trim(); + }).join('\n'); + + // Remove extra lines + testCase.expected = testCase.expected.trim(); + testCase.actual = testCase.actual.trim(); + + //Beautify + //testCase.expected = beautify(testCase.expected, beauOptions); + //testCase.actual = beautify(testCase.actual, beauOptions); + + // Normalize line returns + testCase.expected = testCase.expected.replace(/(\r\n)|\n|\r/g, '\n'); + testCase.actual = testCase.actual.replace(/(\r\n)|\n|\r/g, '\n'); + + return testCase; + } + + module.exports = { + getTestSuite: getTestSuite, + assertion: assertion, + normalize: normalize, + showdown: require('../../../.build/showdown.js') + }; +})(); + diff --git a/static/showdown/test/functional/makehtml/testsuite.features.js b/static/showdown/test/functional/makehtml/testsuite.features.js new file mode 100644 index 0000000..3efa178 --- /dev/null +++ b/static/showdown/test/functional/makehtml/testsuite.features.js @@ -0,0 +1,279 @@ +/** + * Created by Estevao on 08-06-2015. + */ +var bootstrap = require('./makehtml.bootstrap.js'), + showdown = bootstrap.showdown, + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/'), + tableSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/tables/'), + simplifiedAutoLinkSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/simplifiedAutoLink/'), + openLinksInNewWindowSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/openLinksInNewWindow/'), + disableForced4SpacesIndentedSublistsSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/disableForced4SpacesIndentedSublists/'), + rawHeaderIdSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/rawHeaderId/'), + rawPrefixHeaderIdSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/rawPrefixHeaderId/'), + emojisSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/emojis/'), + underlineSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/underline/'), + literalMidWordUnderscoresSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/literalMidWordUnderscores/'), + literalMidWordAsterisksSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/literalMidWordAsterisks/'), + completeHTMLOutputSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/completeHTMLOutput/'), + metadataSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/metadata/'), + splitAdjacentBlockquotesSuite = bootstrap.getTestSuite('test/functional/makehtml/cases/features/splitAdjacentBlockquotes/'); + +describe('makeHtml() features testsuite', function () { + 'use strict'; + + describe('issues', function () { + for (var i = 0; i < testsuite.length; ++i) { + var converter; + if (testsuite[i].name === '#143.support-image-dimensions') { + converter = new showdown.Converter({parseImgDimensions: true}); + } else if (testsuite[i].name === '#69.header-level-start') { + converter = new showdown.Converter({headerLevelStart: 3}); + } else if (testsuite[i].name === '#164.1.simple-autolink' || testsuite[i].name === '#204.certain-links-with-at-and-dot-break-url') { + converter = new showdown.Converter({simplifiedAutoLink: true}); + } else if (testsuite[i].name === 'literalMidWordUnderscores') { + converter = new showdown.Converter({literalMidWordUnderscores: true}); + } else if (testsuite[i].name === '#164.2.disallow-underscore-emphasis-mid-word') { + converter = new showdown.Converter({literalMidWordUnderscores: true}); + } else if (testsuite[i].name === '#164.3.strikethrough' || testsuite[i].name === '#214.escaped-markdown-chars-break-strikethrough') { + converter = new showdown.Converter({strikethrough: true}); + } else if (testsuite[i].name === 'disable-gh-codeblocks') { + converter = new showdown.Converter({ghCodeBlocks: false}); + } else if (testsuite[i].name === '#164.4.tasklists') { + converter = new showdown.Converter({tasklists: true}); + } else if (testsuite[i].name === '#198.literalMidWordUnderscores-changes-behavior-of-asterisk') { + converter = new showdown.Converter({literalMidWordUnderscores: true}); + } else if (testsuite[i].name === '#259.es6-template-strings-indentation-issues') { + converter = new showdown.Converter({smartIndentationFix: true}); + } else if (testsuite[i].name === '#284.simplifiedAutoLink-does-not-match-GFM-style') { + converter = new showdown.Converter({simplifiedAutoLink: true}); + } else if (testsuite[i].name === 'disableForced4SpacesIndentedSublists') { + converter = new showdown.Converter({disableForced4SpacesIndentedSublists: true}); + } else if (testsuite[i].name === '#206.treat-single-line-breaks-as-br') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === 'simpleLineBreaks2') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === '#316.new-simpleLineBreaks-option-breaks-lists') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === '#323.simpleLineBreaks-breaks-with-strong') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === '#318.simpleLineBreaks-does-not-work-with-chinese-characters') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === 'simpleLineBreaks-handle-html-pre') { + converter = new showdown.Converter({simpleLineBreaks: true}); + } else if (testsuite[i].name === 'excludeTrailingPunctuationFromURLs-option') { + converter = new showdown.Converter({simplifiedAutoLink: true, excludeTrailingPunctuationFromURLs: true}); + } else if (testsuite[i].name === 'requireSpaceBeforeHeadingText') { + converter = new showdown.Converter({requireSpaceBeforeHeadingText: true}); + } else if (testsuite[i].name === '#320.github-compatible-generated-header-id') { + converter = new showdown.Converter({ghCompatibleHeaderId: true}); + } else if (testsuite[i].name === 'ghMentions') { + converter = new showdown.Converter({ghMentions: true}); + } else if (testsuite[i].name === 'disable-email-encoding') { + converter = new showdown.Converter({encodeEmails: false}); + } else if (testsuite[i].name === '#330.simplifiedAutoLink-drops-character-before-and-after-linked-mail') { + converter = new showdown.Converter({encodeEmails: false, simplifiedAutoLink: true}); + } else if (testsuite[i].name === '#331.allow-escaping-of-tilde') { + converter = new showdown.Converter({strikethrough: true}); + } else if (testsuite[i].name === 'enable-literalMidWordAsterisks') { + converter = new showdown.Converter({literalMidWordAsterisks: true}); + } else if (testsuite[i].name === 'prefixHeaderId-simple') { + converter = new showdown.Converter({prefixHeaderId: true}); + } else if (testsuite[i].name === 'prefixHeaderId-string') { + converter = new showdown.Converter({prefixHeaderId: 'my-prefix-'}); + } else if (testsuite[i].name === 'prefixHeaderId-string-and-ghCompatibleHeaderId') { + converter = new showdown.Converter({prefixHeaderId: 'my-prefix-', ghCompatibleHeaderId: true}); + } else if (testsuite[i].name === 'prefixHeaderId-string-and-ghCompatibleHeaderId2') { + converter = new showdown.Converter({prefixHeaderId: 'my prefix ', ghCompatibleHeaderId: true}); + } else if (testsuite[i].name === 'simplifiedAutoLink') { + converter = new showdown.Converter({simplifiedAutoLink: true, strikethrough: true}); + } else if (testsuite[i].name === 'customizedHeaderId-simple') { + converter = new showdown.Converter({customizedHeaderId: true}); + } else if (testsuite[i].name === '#378.simplifiedAutoLinks-with-excludeTrailingPunctuationFromURLs') { + converter = new showdown.Converter({simplifiedAutoLink: true, excludeTrailingPunctuationFromURLs: true}); + } else if (testsuite[i].name === '#374.escape-html-tags') { + converter = new showdown.Converter({backslashEscapesHTMLTags: true}); + } else if (testsuite[i].name === '#379.openLinksInNewWindow-breaks-em-markdup') { + converter = new showdown.Converter({openLinksInNewWindow: true}); + } else if (testsuite[i].name === '#398.literalMidWordAsterisks-treats-non-word-characters-as-characters') { + converter = new showdown.Converter({literalMidWordAsterisks: true}); + } else { + converter = new showdown.Converter(); + } + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } + }); + + /** test Table Syntax Support **/ + describe('table support', function () { + var converter, + suite = tableSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'basic-with-header-ids') { + converter = new showdown.Converter({tables: true, tablesHeaderId: true}); + } else if (suite[i].name === '#179.parse-md-in-table-ths') { + converter = new showdown.Converter({tables: true, strikethrough: true}); + } else { + converter = new showdown.Converter({tables: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test simplifiedAutoLink Support **/ + describe('simplifiedAutoLink support in', function () { + var converter, + suite = simplifiedAutoLinkSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'emphasis-and-strikethrough') { + converter = new showdown.Converter({simplifiedAutoLink: true, strikethrough: true}); + } else if (suite[i].name === 'disallow-underscores') { + converter = new showdown.Converter({literalMidWordUnderscores: true, simplifiedAutoLink: true}); + } else if (suite[i].name === 'disallow-asterisks') { + converter = new showdown.Converter({literalMidWordAsterisks: true, simplifiedAutoLink: true}); + } else { + converter = new showdown.Converter({simplifiedAutoLink: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test openLinksInNewWindow support **/ + describe('openLinksInNewWindow support in', function () { + var converter, + suite = openLinksInNewWindowSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'simplifiedAutoLink') { + converter = new showdown.Converter({openLinksInNewWindow: true, simplifiedAutoLink: true}); + } else { + converter = new showdown.Converter({openLinksInNewWindow: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test disableForced4SpacesIndentedSublists support **/ + describe('disableForced4SpacesIndentedSublists support in', function () { + var converter, + suite = disableForced4SpacesIndentedSublistsSuite; + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({disableForced4SpacesIndentedSublists: true}); + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test rawHeaderId support **/ + describe('rawHeaderId support', function () { + var converter, + suite = rawHeaderIdSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'with-prefixHeaderId') { + converter = new showdown.Converter({rawHeaderId: true, prefixHeaderId: '/prefix/'}); + } else { + converter = new showdown.Converter({rawHeaderId: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test rawPrefixHeaderId support **/ + describe('rawPrefixHeaderId support', function () { + var converter, + suite = rawPrefixHeaderIdSuite; + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({rawPrefixHeaderId: true, prefixHeaderId: '/prefix/'}); + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test emojis support **/ + describe('emojis support', function () { + var converter, + suite = emojisSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'simplifiedautolinks') { + converter = new showdown.Converter({emoji: true, simplifiedAutoLink: true}); + } else { + converter = new showdown.Converter({emoji: true}); + } + + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test underline support **/ + describe('underline support', function () { + var converter, + suite = underlineSuite; + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'simplifiedautolinks') { + converter = new showdown.Converter({underline: true, simplifiedAutoLink: true}); + } else { + converter = new showdown.Converter({underline: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test literalMidWordUnderscores option **/ + describe('literalMidWordUnderscores option', function () { + var converter, + suite = literalMidWordUnderscoresSuite; + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({literalMidWordUnderscores: true}); + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test literalMidWordAsterisks option **/ + describe('literalMidWordAsterisks option', function () { + var converter, + suite = literalMidWordAsterisksSuite; + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({literalMidWordAsterisks: true}); + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + + /** test completeHTMLDocument option **/ + describe('completeHTMLDocument option', function () { + var converter, + suite = completeHTMLOutputSuite; + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({completeHTMLDocument: true}); + + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test metadata option **/ + describe('metadata option', function () { + var converter, + suite = metadataSuite; + + for (var i = 0; i < suite.length; ++i) { + if (suite[i].name === 'embeded-in-output' || + suite[i].name === 'embeded-two-consecutive-metadata-blocks' || + suite[i].name === 'embeded-two-consecutive-metadata-blocks-different-symbols') { + converter = new showdown.Converter({metadata: true, completeHTMLDocument: true}); + } else if (suite[i].name === 'ignore-metadata') { + converter = new showdown.Converter({metadata: false}); + } else { + converter = new showdown.Converter({metadata: true}); + } + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); + + /** test metadata option **/ + describe('splitAdjacentBlockquotes option', function () { + var converter, + suite = splitAdjacentBlockquotesSuite; + + for (var i = 0; i < suite.length; ++i) { + converter = new showdown.Converter({splitAdjacentBlockquotes: true}); + it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter)); + } + }); +}); diff --git a/static/showdown/test/functional/makehtml/testsuite.ghost.js b/static/showdown/test/functional/makehtml/testsuite.ghost.js new file mode 100644 index 0000000..cbffcf3 --- /dev/null +++ b/static/showdown/test/functional/makehtml/testsuite.ghost.js @@ -0,0 +1,22 @@ +/** + * Created by Estevao on 14-07-2015. + */ +var bootstrap = require('./makehtml.bootstrap.js'), + converter = new bootstrap.showdown.Converter({ + strikethrough: true, + literalMidWordUnderscores: true, + simplifiedAutoLink: true, + tables: true, + parseImgDimensions: true, //extra + tasklists: true //extra + }), + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/ghost/'); + +//MD-Testsuite (borrowed from karlcow/markdown-testsuite) +describe('makeHtml() ghost testsuite', function () { + 'use strict'; + for (var i = 0; i < testsuite.length; ++i) { + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } +}); diff --git a/static/showdown/test/functional/makehtml/testsuite.issues.js b/static/showdown/test/functional/makehtml/testsuite.issues.js new file mode 100644 index 0000000..6ace606 --- /dev/null +++ b/static/showdown/test/functional/makehtml/testsuite.issues.js @@ -0,0 +1,14 @@ +/** + * Created by Estevao on 08-06-2015. + */ +var bootstrap = require('./makehtml.bootstrap.js'), + converter = new bootstrap.showdown.Converter(), + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/issues/'); + +describe('makeHtml() issues testsuite', function () { + 'use strict'; + for (var i = 0; i < testsuite.length; ++i) { + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } +}); diff --git a/static/showdown/test/functional/makehtml/testsuite.karlcow.js b/static/showdown/test/functional/makehtml/testsuite.karlcow.js new file mode 100644 index 0000000..6cbae52 --- /dev/null +++ b/static/showdown/test/functional/makehtml/testsuite.karlcow.js @@ -0,0 +1,16 @@ +/** + * Created by Estevao on 08-06-2015. + */ + +var bootstrap = require('./makehtml.bootstrap.js'), + converter = new bootstrap.showdown.Converter({noHeaderId: true}), + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/karlcow/'); + +//MD-Testsuite (borrowed from karlcow/markdown-testsuite) +describe('makeHtml() karlcow testsuite', function () { + 'use strict'; + for (var i = 0; i < testsuite.length; ++i) { + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } +}); diff --git a/static/showdown/test/functional/makehtml/testsuite.standard.js b/static/showdown/test/functional/makehtml/testsuite.standard.js new file mode 100644 index 0000000..81fc123 --- /dev/null +++ b/static/showdown/test/functional/makehtml/testsuite.standard.js @@ -0,0 +1,15 @@ +/** + * Created by Estevao on 08-06-2015. + */ + +var bootstrap = require('./makehtml.bootstrap.js'), + converter = new bootstrap.showdown.Converter(), + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/standard/'); + +describe('makeHtml() standard testsuite', function () { + 'use strict'; + for (var i = 0; i < testsuite.length; ++i) { + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } +}); diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.html b/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.html new file mode 100644 index 0000000..6db73dc --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.html @@ -0,0 +1 @@ +

See my About page for details.

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.md b/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.md new file mode 100644 index 0000000..3b3699b --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/anchors-relative.md @@ -0,0 +1 @@ +See my [About]() page for details. diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/anchors.html b/static/showdown/test/functional/makemarkdown/cases/standard/anchors.html new file mode 100644 index 0000000..69a8a2e --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/anchors.html @@ -0,0 +1,2 @@ +

This is an example inline link.

+

This link has no title attribute.

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/anchors.md b/static/showdown/test/functional/makemarkdown/cases/standard/anchors.md new file mode 100644 index 0000000..0441e15 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/anchors.md @@ -0,0 +1,3 @@ +This is [an example]( "Title") inline link. + +[This link]() has no title attribute. diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.html b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.html new file mode 100644 index 0000000..babf16c --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.html @@ -0,0 +1,9 @@ +
+

a blockquote +with a 4 space indented line (not code)

+
+

sep

+
+

a blockquote

+
+
with some code after
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.md b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.md new file mode 100644 index 0000000..e70298f --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-followed-by-code.md @@ -0,0 +1,9 @@ +> a blockquote with a 4 space indented line (not code) + +sep + +> a blockquote + +``` +with some code after +``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.html b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.html new file mode 100644 index 0000000..a73ca6e --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.html @@ -0,0 +1,10 @@ +
+

This is a header.

+
    +
  1. This is the first list item.
  2. +
  3. This is the second list item.
  4. +
+

Here's some example code:

+
return shell_exec("echo $input | $markdown_script");
+    
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.md b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.md new file mode 100644 index 0000000..db21bd8 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote-nested-markdown.md @@ -0,0 +1,10 @@ +> ## 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"); +> ``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.html b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.html new file mode 100644 index 0000000..3f27012 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.html @@ -0,0 +1,4 @@ +
+

This is a multi line blockquote test

+

With more than one line.

+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.md b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.md new file mode 100644 index 0000000..4f3b4b5 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/blockquote.md @@ -0,0 +1,3 @@ +> This is a multi line blockquote test +> +> With more than one line. diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.html b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.html new file mode 100644 index 0000000..02932e2 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.html @@ -0,0 +1,2 @@ +

a strong and em thingy

+

barbazingabar

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.md b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.md new file mode 100644 index 0000000..5f94406 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-double.md @@ -0,0 +1,3 @@ +a ***strong and em*** thingy + +bar***bazinga***bar diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.html b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.html new file mode 100644 index 0000000..0a70937 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.html @@ -0,0 +1 @@ +

some text **foo**

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.md b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.md new file mode 100644 index 0000000..df8b95d --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis-inside-inline-code.md @@ -0,0 +1 @@ +some text `**foo**` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.html b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.html new file mode 100644 index 0000000..44f7831 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.html @@ -0,0 +1,37 @@ +

single asterisks

+

single underscores

+

double asterisks

+

double underscores

+

text with italic sentence in middle

+

text with bold sentence in middle

+

text with bold text that + spans across multiple lines

+

underscored_word

+

doubleunderscore__word

+

asterix*word

+

doubleasterix**word

+

line with_underscored word

+

line with__doubleunderscored word

+

line with*asterixed word

+

line with**doubleasterixed word

+

some linewithinner underscores

+

some linewithinner double underscores

+

some linewithinner asterixs

+

some linewithinner double asterixs

+

another line with just _one underscore

+

another line with just __one double underscore

+

another line with just *one asterix

+

another line with just **one double asterix

+

a sentence withunderscore and anotherunderscore

+

a sentence withdoubleunderscore and anotherdoubleunderscore

+

a sentence withasterix and anotherasterix

+

a sentence withdoubleasterix and anotherdoubleasterix

+

escaped word_with_underscores

+

escaped word__with__double underscores

+

escaped word_with_single italic underscore

+

escaped word*with*asterixs

+

escaped word**with**asterixs

+

escaped word*with*bold asterixs

+

foobarbaz

+

foobarbaz

+

this is imbued link with strong

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.md b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.md new file mode 100644 index 0000000..1b8b51f --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/emphasis.md @@ -0,0 +1,71 @@ +*single asterisks* + +*single underscores* + +**double asterisks** + +**double underscores** + +text *with italic sentence* in middle + +text **with bold sentence** in middle + +text with **bold text that spans across multiple** lines + +underscored\_word + +doubleunderscore\_\_word + +asterix\*word + +doubleasterix\*\*word + +line with\_underscored word + +line with\_\_doubleunderscored word + +line with\*asterixed word + +line with\*\*doubleasterixed word + +some line*with*inner underscores + +some line**with**inner double underscores + +some line*with*inner asterixs + +some line**with**inner double asterixs + +another line with just \_one underscore + +another line with just \_\_one double underscore + +another line with just \*one asterix + +another line with just \*\*one double asterix + +a sentence with*underscore and another*underscore + +a sentence with**doubleunderscore and another**doubleunderscore + +a sentence with*asterix and another*asterix + +a sentence with**doubleasterix and another**doubleasterix + +escaped word\_with\_underscores + +escaped word\_\_with\_\_double underscores + +escaped word*\_with\_*single italic underscore + +escaped word\*with\*asterixs + +escaped word\*\*with\*\*asterixs + +escaped word**\*with\***bold asterixs + +foo**bar**baz + +foo**bar**baz + +this is **[imbued link with strong]()** diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.html b/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.html new file mode 100644 index 0000000..86cb370 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.html @@ -0,0 +1,4 @@ +

a "quoted" string

+

duarte&companhia

+

1 < 2

+

2 > 1

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.md b/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.md new file mode 100644 index 0000000..ecb7acd --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/escaping-html-entities.md @@ -0,0 +1,7 @@ +a "quoted" string + +duarte&companhia + +1 < 2 + +2 > 1 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/escaping.html b/static/showdown/test/functional/makemarkdown/cases/standard/escaping.html new file mode 100644 index 0000000..f122012 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/escaping.html @@ -0,0 +1,17 @@ +

[a false reference]: must be escaped

+

- a list item

+

*

+

~

+

|

+

[a faux](link)

+

# at start

+

in the # middle is ok

+

> at start

+

in the middle > is ok

+

---

+

1. must be escaped

+

but. this should not

+

. nor this

+

or this.

+

4 spaces at the beginning of line are removed

+

multiple spaces are colapsed to 1

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/escaping.md b/static/showdown/test/functional/makemarkdown/cases/standard/escaping.md new file mode 100644 index 0000000..dda0fae --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/escaping.md @@ -0,0 +1,33 @@ +\[a false reference]: must be escaped + +\- a list item + +\* + +\~ + +\| + +[a faux\]\(link) + +\# at start + +in the # middle is ok + +\> at start + +in the middle > is ok + +\--- + +1\. must be escaped + +but. this should not + +. nor this + +or this. + +4 spaces at the beginning of line are removed + +multiple spaces are colapsed to 1 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.html b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.html new file mode 100644 index 0000000..46639d0 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.html @@ -0,0 +1,6 @@ +

+function MyFunc(a) {
+  // ...
+}
+
+

That is some code!

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.md b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.md new file mode 100644 index 0000000..833cadd --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-at-start.md @@ -0,0 +1,7 @@ +``` +function MyFunc(a) { + // ... +} +``` + +That is some code! diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.html b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.html new file mode 100644 index 0000000..776c79a --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.html @@ -0,0 +1,13 @@ +
+

Define a function in javascript:

+

+function MyFunc(a) {
+    var s = '`';
+}
+
+
+

And some nested quote

+
<div>HTML!</div>
+
+
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.md b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.md new file mode 100644 index 0000000..50556a9 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock-inside-quote.md @@ -0,0 +1,13 @@ +> Define a function in javascript: +> +> ``` +> function MyFunc(a) { +> var s = '`'; +> } +> ``` +> +> > And some nested quote +> > +> > ```html +> >
HTML!
+> > ``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.html b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.html new file mode 100644 index 0000000..63af297 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.html @@ -0,0 +1,13 @@ +

Define a function in javascript:

+
function MyFunc(a) {
+    var s = '`';
+}
+
+

And some HTML

+
<div>HTML!</div>
+
+

+function foo() {
+    return 'bar';
+}
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.md b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.md new file mode 100644 index 0000000..2c73709 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-codeblock.md @@ -0,0 +1,20 @@ + +Define a function in javascript: + +``` +function MyFunc(a) { + var s = '`'; +} +``` + +And some HTML + +```html +
HTML!
+``` + +```javascript +function foo() { + return 'bar'; +} +``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.html b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.html new file mode 100644 index 0000000..276dbf0 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.html @@ -0,0 +1,3 @@ +
code can go here
+this is rendered on a second line
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.md b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.md new file mode 100644 index 0000000..1b55536 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/github-style-linebreaks.md @@ -0,0 +1,4 @@ +``` +code can go here +this is rendered on a second line +``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.html new file mode 100644 index 0000000..ab5b555 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.html @@ -0,0 +1 @@ +

This is an H1

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.md new file mode 100644 index 0000000..90944c9 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h1-with-single-hash.md @@ -0,0 +1 @@ +# This is an H1 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.html new file mode 100644 index 0000000..375a0d0 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.html @@ -0,0 +1 @@ +

This is an H2

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.md new file mode 100644 index 0000000..bf1c56f --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h2-with-single-hash.md @@ -0,0 +1 @@ +## This is an H2 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.html new file mode 100644 index 0000000..13f8c9e --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.html @@ -0,0 +1 @@ +

This is an H3

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.md new file mode 100644 index 0000000..247ce34 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h3-with-single-hash.md @@ -0,0 +1 @@ +### This is an H3 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.html new file mode 100644 index 0000000..165b4ef --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.html @@ -0,0 +1 @@ +

This is an H4

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.md new file mode 100644 index 0000000..36f0db0 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h4-with-single-hash.md @@ -0,0 +1 @@ +#### This is an H4 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.html new file mode 100644 index 0000000..28eac14 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.html @@ -0,0 +1 @@ +
This is an H5
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.md new file mode 100644 index 0000000..a66d50b --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h5-with-single-hash.md @@ -0,0 +1 @@ +##### This is an H5 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.html b/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.html new file mode 100644 index 0000000..47574cc --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.html @@ -0,0 +1 @@ +
This is an H6
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.md b/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.md new file mode 100644 index 0000000..c85f1a7 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/h6-with-single-hash.md @@ -0,0 +1 @@ +###### This is an H6 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.html b/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.html new file mode 100644 index 0000000..6bdf710 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.html @@ -0,0 +1,2 @@ +
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.md b/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.md new file mode 100644 index 0000000..853d812 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/horizontal-rules.md @@ -0,0 +1,3 @@ +--- + +--- diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.html b/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.html new file mode 100644 index 0000000..215b8c6 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.html @@ -0,0 +1,9 @@ + + + +

words

+ +
<!-- comment -->
+
+

<!----------------------------------------------------------------------------------------------------------------------------------------------------

+ diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.md b/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.md new file mode 100644 index 0000000..436d5b9 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html-comments.md @@ -0,0 +1,17 @@ + + + + + + +words + + + +``` + +``` + + diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html.html b/static/showdown/test/functional/makemarkdown/cases/standard/html.html new file mode 100644 index 0000000..7039db1 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html.html @@ -0,0 +1,10 @@ +
+ some text +
+ +an inline element + +
+ a span inside a div +
+ diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html.md b/static/showdown/test/functional/makemarkdown/cases/standard/html.md new file mode 100644 index 0000000..4d9c824 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html.md @@ -0,0 +1,6 @@ +
some text
+ +an inline element + +
a span inside a div
+ diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html b/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html new file mode 100644 index 0000000..9437a87 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html @@ -0,0 +1,34 @@ +

These HTML5 tags should pass through just fine.

+
hello
+
head
+
footsies
+ +
read me
+ +
read + me
+ +

the end

+ + +
My street
+ + Sorry, your browser doesn't support the <canvas> element. + +
+ An awesome picture +
Caption for the awesome picture
+
+
+

Main title

+

Secondary title

+
+ diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md b/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md new file mode 100644 index 0000000..3c6c7c8 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md @@ -0,0 +1,33 @@ +These HTML5 tags should pass through just fine. + +
hello
+ +
head
+ +
footsies
+ + + +
read me
+ + + +
read me
+ + + +the end + + + + + +
My street
+ + Sorry, your browser doesn't support the <canvas> element. + +
An awesome picture
Caption for the awesome picture
+ +

Main title

Secondary title

+ + diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.html b/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.html new file mode 100644 index 0000000..5f723bf --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.html @@ -0,0 +1,2 @@ +

image link(some text between brackets)

+

image link(some text between brackets)

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.md b/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.md new file mode 100644 index 0000000..1481067 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/images-followed-by-brackets.md @@ -0,0 +1,3 @@ +![image link](<./image/cat1.png>)(some text between brackets) + +![image link](<./image/cat(1).png>)(some text between brackets) diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/images.html b/static/showdown/test/functional/makemarkdown/cases/standard/images.html new file mode 100644 index 0000000..f28e0b9 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/images.html @@ -0,0 +1,6 @@ +

Alt text

+

Alt text

+

Alt text

+

My Image

+

![leave me alone]

+

![leave me alone][]

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/images.md b/static/showdown/test/functional/makemarkdown/cases/standard/images.md new file mode 100644 index 0000000..9473295 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/images.md @@ -0,0 +1,11 @@ +![Alt text]() + +![Alt text]( "Optional title") + +![Alt text]( "Optional title attribute") + +![My Image]( "Optional title attribute") + +![leave me alone] + +![leave me alone][] diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.html b/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.html new file mode 100644 index 0000000..a2fe204 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.html @@ -0,0 +1,4 @@ +
    +
  • Bird

  • +
  • Magic

  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.md b/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.md new file mode 100644 index 0000000..e22d3b6 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-doubleline.md @@ -0,0 +1,3 @@ +- Bird + +- Magic diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.html b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.html new file mode 100644 index 0000000..7257454 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.html @@ -0,0 +1,12 @@ +

some title

+
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
+
+

some text in a blockquote

+
+
    +
  • another list item 1
  • +
  • another list item 2
  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.md b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.md new file mode 100644 index 0000000..500a3f6 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-blockquote.md @@ -0,0 +1,9 @@ +# some title + +1. list item 1 +2. list item 2 + +> some text in a blockquote + +- another list item 1 +- another list item 2 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.html b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.html new file mode 100644 index 0000000..abd72f9 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.html @@ -0,0 +1,13 @@ +

some title

+
    +
  1. list item 1
  2. +
  3. list item 2
  4. +
+
some code
+
+and some other line of code
+
+
    +
  • another list item 1
  • +
  • another list item 2
  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.md b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.md new file mode 100644 index 0000000..45e2d6f --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-followed-by-ghcode.md @@ -0,0 +1,13 @@ +# some title + +1. list item 1 +2. list item 2 + +``` +some code + +and some other line of code +``` + +- another list item 1 +- another list item 2 diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.html b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.html new file mode 100644 index 0000000..20ca2e1 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.html @@ -0,0 +1,7 @@ +
    +
  • A list item with a blockquote:

    +
    +

    This is a blockquote + inside a list item.

    +
  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.md b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.md new file mode 100644 index 0000000..bcd7a76 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-blockquote.md @@ -0,0 +1,3 @@ +- A list item with a blockquote: + + > This is a blockquote inside a list item. diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.html b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.html new file mode 100644 index 0000000..5096858 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.html @@ -0,0 +1,5 @@ +
    +
  • A list item with code:

    +
    alert('Hello world!');
    +    
  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.md b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.md new file mode 100644 index 0000000..98d158c --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/list-with-code.md @@ -0,0 +1,5 @@ +- A list item with code: + + ``` + alert('Hello world!'); + ``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.html b/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.html new file mode 100644 index 0000000..b226540 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.html @@ -0,0 +1,5 @@ +
    +
  1. This is a major bullet point.

    +

    That contains multiple paragraphs.

  2. +
  3. And another line

  4. +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.md b/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.md new file mode 100644 index 0000000..f58fefd --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/multi-paragraph-list.md @@ -0,0 +1,5 @@ +1. This is a major bullet point. + + That contains multiple paragraphs. + +2. And another line diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.html b/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.html new file mode 100644 index 0000000..8eea4b3 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.html @@ -0,0 +1,8 @@ +
1. some code idented 4 spaces
+
+    ```
+    var foobar = 'foo';
+    ```
+
+2. another line
+
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.md b/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.md new file mode 100644 index 0000000..515d8c7 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/nested-gh-codeblocks.md @@ -0,0 +1,9 @@ +``` +1. some code idented 4 spaces + + ``` + var foobar = 'foo'; + ``` + +2. another line +``` diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.html b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.html new file mode 100644 index 0000000..ea1b39a --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.html @@ -0,0 +1,5 @@ +
    +
  1. foo
  2. +
  3. bar
  4. +
  5. baz
  6. +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.md b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.md new file mode 100644 index 0000000..8576e95 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list-starting-number.md @@ -0,0 +1,4 @@ +5. foo +6. bar +7. baz + diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.html b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.html new file mode 100644 index 0000000..a48b0b7 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.html @@ -0,0 +1,5 @@ +
    +
  1. Red
  2. +
  3. Green
  4. +
  5. Blue
  6. +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.md b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.md new file mode 100644 index 0000000..5f63751 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/ordered-list.md @@ -0,0 +1,3 @@ +1. Red +2. Green +3. Blue diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.html b/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.html new file mode 100644 index 0000000..7ce5354 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.html @@ -0,0 +1 @@ +

Hello, world!

diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.md b/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.md new file mode 100644 index 0000000..af5626b --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/paragraph-simple.md @@ -0,0 +1 @@ +Hello, world! diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.html b/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.html new file mode 100644 index 0000000..0367bb2 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.html @@ -0,0 +1,11 @@ +
    +
  • foo

    +
      +
    • bazinga

    • +
    • yeah

  • +
  • bar

    +
      +
    1. damn

    2. +
    3. so many paragraphs

  • +
  • baz

  • +
diff --git a/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.md b/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.md new file mode 100644 index 0000000..3cd54c4 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/cases/standard/paragraphed-list-with-sublists.md @@ -0,0 +1,13 @@ +- foo + + - bazinga + + - yeah + +- bar + + 1. damn + + 2. so many paragraphs + +- baz diff --git a/static/showdown/test/functional/makemarkdown/makemarkdown.bootstrap.js b/static/showdown/test/functional/makemarkdown/makemarkdown.bootstrap.js new file mode 100644 index 0000000..c72f725 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/makemarkdown.bootstrap.js @@ -0,0 +1,73 @@ +/** + * Created by Estevao on 22-12-2017. + */ + +//jscs:disable requireCamelCaseOrUpperCaseIdentifiers +(function () { + 'use strict'; + + require('source-map-support').install(); + require('chai').should(); + var fs = require('fs'); + + function getTestSuite (dir) { + return fs.readdirSync(dir) + .filter(filter()) + .map(map(dir)); + } + + function filter () { + return function (file) { + var ext = file.slice(-3); + return (ext === '.md'); + }; + } + + function map (dir) { + return function (file) { + var name = file.replace('.md', ''), + htmlPath = dir + name + '.html', + html = fs.readFileSync(htmlPath, 'utf8'), + mdPath = dir + name + '.md', + md = fs.readFileSync(mdPath, 'utf8'); + + return { + name: name, + input: html, + expected: md + }; + }; + } + + function assertion (testCase, converter) { + return function () { + testCase.actual = converter.makeMarkdown(testCase.input); + testCase = normalize(testCase); + + // Compare + testCase.actual.should.equal(testCase.expected); + }; + } + + //Normalize input/output + function normalize (testCase) { + + // Normalize line returns + testCase.expected = testCase.expected.replace(/(\r\n)|\n|\r/g, '\n'); + testCase.actual = testCase.actual.replace(/(\r\n)|\n|\r/g, '\n'); + + // Remove extra lines + testCase.expected = testCase.expected.replace(/^\n+/, '').replace(/\n+$/, ''); + testCase.actual = testCase.actual.replace(/^\n+/, '').replace(/\n+$/, ''); + + return testCase; + } + + module.exports = { + getTestSuite: getTestSuite, + assertion: assertion, + normalize: normalize, + showdown: require('../../../.build/showdown.js') + }; +})(); + diff --git a/static/showdown/test/functional/makemarkdown/testsuite.standard.js b/static/showdown/test/functional/makemarkdown/testsuite.standard.js new file mode 100644 index 0000000..923b863 --- /dev/null +++ b/static/showdown/test/functional/makemarkdown/testsuite.standard.js @@ -0,0 +1,15 @@ +/** + * Created by Estevao on 08-06-2015. + */ + +var bootstrap = require('./makemarkdown.bootstrap.js'), + converter = new bootstrap.showdown.Converter(), + assertion = bootstrap.assertion, + testsuite = bootstrap.getTestSuite('test/functional/makemarkdown/cases/standard/'); + +describe('makeMarkdown() standard testsuite', function () { + 'use strict'; + for (var i = 0; i < testsuite.length; ++i) { + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); + } +}); diff --git a/static/showdown/test/performance.testfile.md b/static/showdown/test/performance.testfile.md new file mode 100644 index 0000000..895e466 --- /dev/null +++ b/static/showdown/test/performance.testfile.md @@ -0,0 +1,1912 @@ + +This is [an example][id] reference-style link. +This is [another] [foo] reference-style link. +This is [a third][bar] reference-style link. +This is [a fourth][4] reference-style link. + + [id]: http://example.com/ "Optional Title Here" + [foo]: http://example.com/ (Optional Title Here) + [bar]: http://example.com/ (Optional Title Here) + [4]: + "Optional Title Here" + + + + + + +> a blockquote + with a 4 space indented line (not code) + +sep + +> a blockquote + + with some code after + + + > this is a pseudo blockquote + > inside a code block + +foo + + > this is another bq + inside code + + +> ## 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"); + + + + > This is a multi line blockquote test + > + > With more than one line. + + + +This is some HTML: + +

Heading

+ + + +This is a normal paragraph: + + This is a code block. + + + + * Bird + + * Magic + + +*single asterisks* + +_single underscores_ + +**double asterisks** + +__double underscores__ + +text *with italic sentence* in middle + +text __with bold sentence__ in middle + +text with __bold text that +spans across multiple__ lines + +underscored_word + +doubleunderscore__word + +asterix*word + +doubleasterix**word + +line with_underscored word + +line with__doubleunderscored word + +line with*asterixed word + +line with**doubleasterixed word + +some line_with_inner underscores + +some line__with__inner double underscores + +some line*with*inner asterixs + +some line**with**inner double asterixs + +another line with just _one underscore + +another line with just __one double underscore + +another line with just *one asterix + +another line with just **one double asterix + +a sentence with_underscore and another_underscore + +a sentence with__doubleunderscore and another__doubleunderscore + +a sentence with*asterix and another*asterix + +a sentence with**doubleasterix and another**doubleasterix + +escaped word\_with\_underscores + +escaped word\_\_with\_\_double underscores + +escaped word_\_with\__single italic underscore + +escaped word\*with*asterixs + +escaped word\*\*with\*\*asterixs + +escaped word**\*with\***bold asterixs + + +It happened in 1986\. What a great season. + + + +These should all be escaped: + +\\ + +\` + +\* + +\_ + +\{ + +\} + +\[ + +\] + +\( + +\) + +\# + +\+ + +\- + +\. + +\! + + +``` +function MyFunc(a) { + // ... +} +``` + +That is some code! + + +> Define a function in javascript: +> +> ``` +> function MyFunc(a) { +> var s = '`'; +> } +> ``` +> +>> And some nested quote +>> +>> ```html +>>
HTML!
+>> ``` + + + +Define a function in javascript: + +``` +function MyFunc(a) { + var s = '`'; +} +``` + +And some HTML + +```html +
HTML!
+``` + + +``` +code can go here +this is rendered on a second line +``` + + +# This is an H1 # + + +This is an H1 +============= + + +# This is an H1 + + +This is an H2 +------------- + + +## This is an H2 ## + + +## This is an H2 + + +### This is an H3 ### + + +### This is an H3 + + +#### This is an H4 + + +##### This is an H5 + + +###### This is an H6 + + + +* * * + +*** + +***** + +- - - + +--------------------------------------- + + + + + + +words words + + words + + + + + + + - list item 1 + + ```html + google +
+
some div
+
+ ``` + + + +These HTML5 tags should pass through just fine. + +
hello
+
head
+
footsies
+ +
read me
+ +
read +me
+ + +the end + + + + + + + + +
Foo
Bar
+ + + + + + + + + + + + + + + +
Foo
Bar
Bar
+ + + + + +
My street
+ + + Sorry, your browser doesn't support the <canvas> element. + + +
+ An awesome picture +
Caption for the awesome picture
+
+ +
+

Main title

+

Secondary title

+
+ + + + + +![Alt text](/path/to/img.jpg) + +![Alt text](/path/to/img.jpg "Optional title") + +![Alt text][id] + + [id]: url/to/image "Optional title attribute" + + + +Search the web at [Google][] or [Daring Fireball][]. + + [Google]: http://google.com/ + [Daring Fireball]: http://daringfireball.net/ + + + +This is [an example](http://example.com/ "Title") inline link. + +[This link](http://example.net/) has no title attribute. + + + +Create a new `function`. + +Use the backtick in MySQL syntax ``SELECT `column` FROM whatever``. + +A single backtick in a code span: `` ` `` + +A backtick-delimited string in a code span: `` `foo` `` + +Please don't use any `` tags. + +`—` is the decimal-encoded equivalent of `—`. + + + +Hello.this\_is\_a\_variable +and.this.is.another_one + + + + + +An exciting sentence. + + + + > This is a multi line blockquote test + + > With more than one line. + + +some text words + +
words + + +# some title + +1. list item 1 +2. list item 2 + +> some text in a blockquote + +* another list item 1 +* another list item 2 + + +# some title + +1. list item 1 +2. list item 2 + +``` +some code + +and some other line of code +``` + +* another list item 1 +* another list item 2 + + +* A list item with a blockquote: + + > This is a blockquote + > inside a list item. + + +* A list item with code: + + alert('Hello world!'); + + +some **code** yeah + +some inline **code** block + +some inline **code** block + +yo dawg some code inception + +
some **div** yeah
+ + + + 1. This is a major bullet point. + + That contains multiple paragraphs. + + 2. And another line + + + + - This line spans + more than one line and is lazy + - Similar to this line + + + + > This is a multi line blockquote test + > + > > And nesting! + > + > With more than one line. + + + + 1. Red + 1. Green + 1. Blue + + + + 8. Red + 1. Green + 3. Blue + + + + 1. Red + 2. Green + 3. Blue + + + - foo + + - bazinga + + - yeah + + - bar + + 1. damn + + 2. so many paragraphs + + - baz + + +code inception + +``` +

+
some html code inside code html tags inside a fenced code block
+
+``` + + +
+
+foobar
+
+
+ +blabla + +

+foobar
+
+
+ +

+
some html code
+
+ + + +See my [About](/about/) page for details. + + +# Same Title + +some text + +# Same Title + + + +Hello, world! + + + +**important** + +__important__ + +really **freaking**strong + + + + * Red + * Green + * Blue + + + + - Red + - Green + - Blue + + + + + Red + + Green + + Blue + + +There's an [episode](http://en.memory-alpha.org/wiki/Darmok_(episode)) of Star Trek: The Next Generation + + +# some title + +Test **bold** and _italic_ + + +![my image](./pic/pic1_50.png =100pxx20px) + +![my image2][1] + +[1]: ./pic/pic1_50.png =100pxx20px + + +foo.bar + +www.foobar + +www.foobar.com + +http://foobar.com + +https://www.foobar.com/baz?bazinga=nhecos; + +http://www.google.com + + +this is a sentence_with_mid underscores + +this is a sentence with just_one underscore + +this _should be parsed_ as emphasis + +this is double__underscore__mid word + +this has just__one double underscore + +this __should be parsed__ as bold + +emphasis at _end of sentence_ + +_emphasis at_ line start + +multi _line emphasis +yeah it is_ yeah + + +a ~~strikethrough~~ word + +this should~~not be parsed + +~~strike-through text~~ + + +# my things + + - foo + - [] bar + - [ ] baz + - [x] bazinga + +otherthings + + +# some markdown + +blabla +
This is **not parsed**
+
This is **parsed**
+
This is **not parsed**
+ + +​pointer *ptr *thing + +something _else _bla + +something __else __bla + + +http://website.com/img@x2.jpg + +http://website.com/img-x2.jpg + +http://website.com/img@x2 + +http://website.com/img@.jpg + + +a simple +wrapped line + + +Your friend ~~[**test\***](www.google.com)~~ (~~[*@test*](www.google.com)~~) updated his/her description + + + ## markdown doc + + you can use markdown for card documentation + - foo + - bar + + +this is a link to www.github.com + +this is a link to + + +1. One +2. Two + - A + - B +3. Three + +> this has +> simple linebreaks + + testing + some + code + + 1. paragraphed list + + this belongs + to the first list item + + 2. This text + also + +simple +text + + - a list + item + - another + list item + +simple +text + + - some item + + another + paragraph + + - And + now + + paragraph + sublist + + - and + even + + another + one + + - foo + + + +foo烫 +bar + +foo +bar + + +# some header + +# some header with &+$,/:;=?@\"#{}|^~[]`\\*()%.!' chars + +# another header > with < chars + + +**Nom :** aaaa +**Nom :** aaa + + +Just an example info@example.com ok?​ + + +#Given + +#When + +#Then + +foo +=== + +bar +--- + + +http://en.wikipedia.org/wiki/Tourism_in_Germany + + +this email should not be encoded + + +this is some text + +```php +function thisThing() { + echo "some weird formatted code!"; +} +``` + +some other text + + +* foo + * bar + +... + +* baz + 1. bazinga + + +url http://www.google.com. + +url http://www.google.com! + +url http://www.google.com? foo + +url (http://www.google.com) bazinga + + +hello @tivie how are you? + +this email foo@gmail.com is not parsed + +this \@mentions is not parsed also + + +# header + +#header + + + 1. One + 2. Two + foo + + bar + bazinga + + + + + nhecos + + 3. Three + + - foo + + - bar + + +| *foo* | **bar** | ~~baz~~ | +|-------|---------|---------| +| 100 | blabla | aaa | + + +|key|value| +|--|--| +|My Key|My Value| + + +| First Header | Second Header | +| :------------ | :------------ | +| Row 1 Cell 1 | Row 1 Cell 2 | +| Row 2 Cell 1 | Row 2 Cell 2 | + + +| First Header | Second Header | +| ------------- | ------------- | +| Row 1 Cell 1 | Row 1 Cell 2 | +| Row 2 Cell 1 | Row 2 Cell 2 | + + +| First Header | Second Header | +| ------------- | ------------- | +| Row 1 Cell 1 | Row 1 Cell 2 | +| Row 2 Cell 1 | Row 2 Cell 2 | + + +First Header | Second Header|Third Header +------------- | -------------|--- +Content Cell | Content Cell|C +Content Cell | Content Cell|C + + +| First Header | Second Header | Third Header | Fourth Header | +| :------------ |: ----------- :| ------------ :| ------------- | +| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 | +| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 | +| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 | +| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 | +| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 | + + +| First Header | Second Header | Third Header | Fourth Header | +| ------------- | ------------- | ------------ | ------------- | +| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 | +| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 | +| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 | +| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 | +| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 | + + +| Left-Aligned | Center-Aligned | Right-Aligned | +| :------------ |:--------------------:| -------------:| +| col 3 is | some wordy paragraph | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + + +Table Test +============ + +section 1 +------------ + +|header1 |header2 |header3| +|-----------|-----------|---------| +|Value1 |Value2 |Value3 | + + +section 2 +----------- + +|headerA |headerB |headerC| +|-----------|-----------|---------| +|ValueA |ValueB |ValueC | + + +some text + + + | Tables | Are | Cool | + | ------------- |:-------------:| -----:| + | **col 3 is** | right-aligned | $1600 | + | col 2 is | *centered* | $12 | + | zebra stripes | ~~are neat~~ | $1 | + + + +### Stats + + +Status | AGENT1 | AGENT2 | AGENT3 | AGENT4 | AGENT5 | AGENT6 | AGENT7 | AGENT8 | AGENT9 | TOTAL | +--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | +AGENT ERROR | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +APPROVED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | + + +| First Header | Second Header | +| ============= | ============= | +| Row 1 Cell 1 | Row 1 Cell 2 | +| Row 2 Cell 1 | Row 2 Cell 2 | + + +| First Header | Second Header | +| ------------- | ----------------- | +| **bold** | ![img](foo.jpg) | +| _italic_ | [link](bla.html) | +| `some code` | [google][1] | +| | normal | + + + [1]: www.google.com + + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisi est, +ullamcorper euismod iaculis sed, tristique at neque. Nullam metus risus, +malesuada vitae imperdiet ac, tincidunt eget lacus. Proin ullamcorper +vulputate dictum. Vestibulum consequat ultricies nibh, sed tempus nisl mattis a. + +| First Header | Second Header | +| ------------- | ------------- | +| Row 1 Cell 1 | Row 1 Cell 2 | +| Row 2 Cell 1 | Row 2 Cell 2 | + +Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum. +Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet +rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo +nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis +blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper. +Sed vel pretium lorem. + + +| First Header | Second Header | +| ------------- | ------------- | + + +| First Header | Second Header | + + +### Automatic Links + +``` +https://ghost.org +``` + +https://ghost.org + +### Markdown Footnotes + +``` +The quick brown fox[^1] jumped over the lazy dog[^2]. + +[^1]: Foxes are red +[^2]: Dogs are usually not red +``` + +The quick brown fox[^1] jumped over the lazy dog[^2]. + + +### Syntax Highlighting + + ```language-javascript + [...] + ``` + +Combined with [Prism.js](http://prismjs.com/) in the Ghost theme: + +```language-javascript +// # Notifications API +// RESTful API for creating notifications +var Promise = require('bluebird'), + _ = require('lodash'), + canThis = require('../permissions').canThis, + errors = require('../errors'), + utils = require('./utils'), + + // Holds the persistent notifications + notificationsStore = [], + // Holds the last used id + notificationCounter = 0, + notifications; +``` + + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +_baz_bar_foo_ + +__baz_bar_foo__ + +___baz_bar_foo___ + +baz bar foo _baz_bar_foo foo bar baz_ and foo + +foo\_bar\_baz foo\_bar\_baz\_bar\_foo \_foo\_bar baz\_bar\_ baz\_foo + +`foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo` + + + foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + + +```html +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +``` + +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ +
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
+ + + +[foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo) + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +----- + +### foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +1. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +2. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +> blockquote foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo +* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +------- + +http://en.wikipedia.org/wiki/Tourism_in_Germany + +[an example] [wiki] + +Another [example][wiki] of a link + +[wiki]: http://en.wikipedia.org/wiki/Tourism_in_Germany + +

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

+ + + +foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo + +![foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo) + +http://myurl.com/foo_bar_baz_bar_foo + + + +_italics_. + +_italics_ . + + +escaped word\_with\_underscores + +escaped word\_\_with\_\_double underscores + +escaped word_\_with\__single italic underscore + +escaped word\*with*asterixs + +escaped word\*\*with\*\*asterixs + +escaped word**\*with\***bold asterixs + + +* Item 1 +* Item 2 + +1. Item 1 +2. Item 2 + +- Item 1 +- Item 2 + + +2015-10-04 + + +1. Hi, I am a thing + + ```sh + + $ git clone thing.git + + dfgdfg + ``` + +1. I am another thing! + + ```sh + + $ git clone other-thing.git + + foobar + ``` + + +> a blockquote +# followed by an heading + + +Test pre in a list + +- & < +- `& <` + - & < + - `& <` + - & < + - `& <` + - & < + - `& <` + + +Title 1 +------- + +
+ + +# Title 2 + + +
+
+ + +

+foo
+
+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+bar
+
+ +this is a long paragraph + +this is another long paragraph + +
```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
+ + +

+```javascript
+var s = "JavaScript syntax highlighting";
+alert(s);
+```
+
+```python
+s = "Python syntax highlighting"
+print s
+```
+
+```
+No language indicated, so no syntax highlighting.
+But let's throw in a tag.
+```
+
+ + +
```python
+var s;
+```
+
+ +this is a long paragraph + +

+```javascript
+var s;
+```
+
+ + +![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo] + +foo + +[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo] + +foo + +![sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +foo + +[sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +foo + +[![sd-ref][sd-logo]](http://www.google.com/) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png + + +![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo] + +foo + +![sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png + + +[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo] + +foo + +[sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) + +[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png + + +* list item 1 + + ``` + + child1 + + child2 + some text + + ``` + +* list item 2 + +``` + +child1 + +child2 +some text + +``` + + + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + 1. two + +foo + + * one + * two + +foo + + * one + * two + +foo + + * one + * two + +foo + + * one +* two + +foo + + * one + * two + + + * one long paragraph of +text + 1. two + +foo + + * one long paragraph of +text + 1. two + + +* one +1. two + +foo + +* one + 1. two + +foo + +* one + 1. two + +foo + +* one + 1. two + +foo + +* uli one +* uli two + +foo + +* uli one + * uli two + +foo + +* uli one + * uli two + +foo + +* uli one + * uli two + + +- - - a + +a + ++ - * - - + a + +a + +1. 2. 3. 4. 5. + +a + +1. 2. 3. 4. 5. a + + +- - - a + ++ - * - - + a + +1. 2. 3. 4. 5. + +1. 2. 3. 4. 5. a + + +- - +a + + +fooo + + +- - - aaaaa + + bbbbb + + +- - - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd + + + --- + + - - - + + +plain text link http://test.com/this_has/one.html with underscores + +legit·word_with·1·underscore + +a word_with_2underscores (gets em) + + +this is a underscore_test ![my cat](http://myserver.com/my_kitty.jpg) + +another ![my cat](http://myserver.com/my_kitty.jpg) underscore_test bla + + +This is a first paragraph, +on multiple lines. + +This is a second paragraph. +There are spaces in between the two. + + +This is a first paragraph, +on multiple lines. + +This is a second paragraph +which has multiple lines too. + + +A first paragraph. + + + +A second paragraph after 3 CR (carriage return). + + +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line. + + +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line. + + +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + +A new long long long long long long long long long long long long long long long long paragraph on 1 line. + + +An ampersand & in the text flow is escaped as an html entity. + + +There is an [ampersand](http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1) in the URI. + + +This is \*an asterisk which should stay as is. + + +This is * an asterisk which should stay as is. + + +\\ backslash +\` backtick +\* asterisk +\_ underscore +\{\} curly braces +\[\] square brackets +\(\) parentheses +\# hash mark +\+ plus sign +\- minus sign (hyphen) +\. dot +\! exclamation mark + + +> # heading level 1 +> +> paragraph + + +>A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line. + +>and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line. + + +>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote. + + +> A blockquote +> on multiple lines +> like this. + + +>A blockquote +>on multiple lines +>like this. + + +>A blockquote +>on multiple lines +>like this. +> +>But it has +>two paragraphs. + + +>A blockquote +>on multiple lines +>like this + + +> This is the first level of quoting. +> +> > This is nested blockquote. +> +> Back to the first level. + + +> This is the first level of quoting. +> +> > This is nested blockquote. + + +> This is the first level of quoting. +> > This is nested blockquote. +> Back to the first level. + + +> This is the first level of quoting. +> > This is nested blockquote. + + + 10 PRINT HELLO INFINITE + 20 GOTO 10 + + + 10 PRINT < > & + 20 GOTO 10 + + + 10 PRINT HELLO INFINITE + 20 GOTO 10 + + +as*te*risks + + +*single asterisks* + + +_single underscores_ + + +HTML entities are written using ampersand notation: © + + +These lines all end with end of line (EOL) sequences. + +Seriously, they really do. + +If you don't believe me: HEX EDIT! + + + +These lines all end with end of line (EOL) sequences. Seriously, they really do. If you don't believe me: HEX EDIT! + +These lines all end with end of line (EOL) sequences. + +Seriously, they really do. + +If you don't believe me: HEX EDIT! + + + +This is an H1 +============= + + +# This is an H1 # + + + # This is an H1 + + +# this is an h1 with two trailing spaces +A new paragraph. + + +# This is an H1 + + +This is an H2 +------------- + + +## This is an H2 ## + + +## This is an H2 + + +### This is an H3 ### + + +### This is an H3 + + +#### This is an H4 #### + + +#### This is an H4 + + +##### This is an H5 ##### + + +##### This is an H5 + + +###### This is an H6 ###### + + +###### This is an H6 + + +- - - + + +--- + + +*** + + +___ + + +------- + + +![HTML5][h5] + +[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 for everyone" + + +![HTML5][h5] + +[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png + + +![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 logo for everyone") + + +![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png) + + +We love ` and &` for everything + + +``We love `code` for everything`` + + +``We love `code` for everything`` + + +A first sentence +and a line break. + + +A first sentence +and a line break. + + +This is an automatic link + + +[W3C](http://www.w3.org/ "Discover w3c") + + +[W3C](http://www.w3.org/) + + +[World Wide Web Consortium][w3c] + +[w3c]: + + +[World Wide Web Consortium][] + +[World Wide Web Consortium]: http://www.w3.org/ + + +[w3c][] + +[w3c]: http://www.w3.org/ + + +[World Wide Web Consortium] [w3c] + +[w3c]: http://www.w3.org/ + + +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ + "Discover W3C" + + +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ (Discover w3c) + + +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ 'Discover w3c' + + +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ "Discover w3c" + + +[World Wide Web Consortium][w3c] + +[w3c]: http://www.w3.org/ + + +* a list containing a blockquote + + > this the blockquote in the list + + +* a list containing a block of code + + 10 PRINT HELLO INFINITE + 20 GOTO 10 + + +* 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. + +* Suspendisse id sem consectetuer libero luctus adipiscing. + + +* 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. + +* Suspendisse id sem consectetuer libero luctus adipiscing. + + +1\. ordered list escape + + +1. 1 + + - inner par list + +2. 2 + + +1. list item 1 +8. list item 2 +1. list item 3 + + +1. list item 1 +2. list item 2 +3. list item 3 + + +This is a paragraph +on multiple lines +with hard return. + + +This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line. + + + This is a paragraph with a trailing and leading space. + + +This is a paragraph with 1 trailing tab. + + + This is a paragraph with 2 leading spaces. + + + This is a paragraph with 3 leading spaces. + + + This is a paragraph with 1 leading space. + + +This is a paragraph with a trailing space. + +as**te**risks + + +**double asterisks** + + +__double underscores__ + + +* list item 1 +* list item 2 +* list item 3 + + +- list item 1 +- list item 2 +- list item 3 + + + * list item 1 + * list item 2 + * list item 3 + + + * list item 1 + * list item 2 + * list item 3 + + + * list item 1 + * list item 2 + * list item 3 + + ++ list item 1 ++ list item 2 ++ list item 3 + + +* list item in paragraph + +* another list item in paragraph + + +* This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a list. +* and yet another long long long long long long long long long long long long long long long long long long long long long long line. + + +* This is a list item + with the content on + multiline and indented. +* And this another list item + with the same principle. + + diff --git a/static/showdown/test/performance/lib/performance.lib.js b/static/showdown/test/performance/lib/performance.lib.js new file mode 100644 index 0000000..c24c582 --- /dev/null +++ b/static/showdown/test/performance/lib/performance.lib.js @@ -0,0 +1,236 @@ +/** + * Created by Tivie on 21/12/2016. + */ +'use strict'; +var now = require('performance-now'), + fs = require('fs'), + semverSort = require('semver-sort'), + performance = { + version: '', + libraryName: '', + MDFile: 'performance.log.md', + logFile: 'performance.json', + testSuites: [], + silent: false, + githubLink: '' + }; + +performance.setVersion = function (version) { + performance.version = version; +}; + +performance.setLibraryName = function (name) { + performance.libraryName = name; +}; + +performance.setGithubLink = function (url) { + performance.githubLink = url; +}; + +performance.generateLog = function (filename, MDFilename, asTable) { + filename = filename || performance.logFile; + MDFilename = MDFilename || performance.MDFile; + asTable = !!asTable; + + fs.closeSync(fs.openSync(filename, 'a')); + + var json = fs.readFileSync(filename), + jsonParsed; + + try { + jsonParsed = JSON.parse(json); + } catch (err) { + jsonParsed = {}; + } + + var jData = []; + + for (var i = 0; i < performance.testSuites.length; ++i) { + // Suite + var suiteName = performance.testSuites[i].getSuiteName(), + cycles = performance.testSuites[i].getOption('cycles'), + subJData = { + suiteName: suiteName, + cycles: cycles, + tests: [] + }, + testSuite = performance.testSuites[i].getTests(); + //make sure tests have ran first + if (!performance.testSuites[i].hasRun()) { + performance.testSuites[i].run(); + } + + // loop through tests + for (var ii = 0; ii < testSuite.length; ++ii) { + // Test + var test = testSuite[ii]; + subJData.tests.push({ + name: test.name, + time: test.time, + maxTime: test.maxTime, + minTime: test.minTime + }); + } + jData.push(subJData); + } + jsonParsed[performance.version] = jData; + + //Sort jsonParsed + var versions = []; + for (var version in jsonParsed) { + if (jsonParsed.hasOwnProperty(version)) { + versions.push(version); + } + } + + semverSort.desc(versions); + + var finalJsonObj = {}; + + for (i = 0; i < versions.length; ++i) { + if (jsonParsed.hasOwnProperty(versions[i])) { + finalJsonObj[versions[i]] = jsonParsed[versions[i]]; + } + } + + fs.writeFileSync(filename, JSON.stringify(finalJsonObj)); + + generateMD(MDFilename, finalJsonObj, asTable); +}; + +function generateMD (filename, obj, asTable) { + fs.closeSync(fs.openSync(filename, 'w')); + asTable = !!asTable; + + // generate MD + var otp = '# Performance Tests for ' + performance.libraryName + '\n\n\n'; + + for (var version in obj) { + if (obj.hasOwnProperty(version)) { + otp += '## [version ' + version + '](' + performance.githubLink + version + ')\n\n'; + var testSuite = obj[version]; + for (var i = 0; i < testSuite.length; ++i) { + otp += '### Test Suite: ' + testSuite[i].suiteName + ' (' + testSuite[i].cycles + ' cycles)\n'; + var tests = testSuite[i].tests; + if (asTable) { + otp += '| test | avgTime | max | min |\n'; + otp += '|:-----|--------:|----:|----:|\n'; + } + for (var ii = 0; ii < tests.length; ++ii) { + var time = parseFloat(tests[ii].time).toFixed(3), + maxTime = parseFloat(tests[ii].maxTime).toFixed(3), + minTime = parseFloat(tests[ii].minTime).toFixed(3); + if (asTable) { + otp += '|' + tests[ii].name + '|' + time + '|' + maxTime + '|' + minTime + '|\n'; + } else { + otp += ' - **' + tests[ii].name + ':** took ' + time + 'ms (*max: ' + maxTime + 'ms; min: ' + minTime + 'ms*)\n'; + } + } + otp += '\n'; + } + otp += '\n'; + } + } + fs.writeFileSync(filename, otp); +} + +performance.Suite = function (name) { + var suiteName = name || '', + tests = [], + hasRunFlag = false, + options = { + cycles: 20 + }; + + this.setOption = function (key, val) { + options[key] = val; + return this; + }; + + this.getOption = function (key) { + return options[key]; + }; + + this.add = function (name, obj) { + if (typeof obj === 'function') { + obj = { + prepare: function () {}, + test: obj, + teardown: function () {} + }; + } + + if (!obj.hasOwnProperty('test')) { + throw 'obj must have a property called test'; + } + + if (typeof obj.test !== 'function') { + throw 'obj test property must be a function'; + } + + if (!obj.hasOwnProperty('prepare')) { + obj.prepare = function () {}; + } + + if (!obj.hasOwnProperty('teardown')) { + obj.teardown = function () {}; + } + + if (typeof obj.prepare !== 'function') { + throw 'obj prepare property must be a function'; + } + + if (typeof obj.teardown !== 'function') { + throw 'obj teardown property must be a function'; + } + + tests.push({ + name: name, + obj: obj, + time: 0, + maxTime: 0, + minTime: 0 + }); + return this; + }; + + this.run = function run () { + var nn = options.cycles; + console.log('running tests: ' + nn + ' cycles each.'); + for (var i = 0; i < tests.length; ++i) { + var times = [], + passVar = tests[i].obj.prepare(); + for (var ii = 0; ii < nn; ++ii) { + var before = now(); + tests[i].obj.test(passVar); + var after = now(); + times.push(after - before); + } + var total = times.reduce(function (a, b) {return a + b;}, 0); + tests[i].time = total / options.cycles; + tests[i].minTime = Math.min.apply(null, times); + tests[i].maxTime = Math.max.apply(null, times); + if (!options.silent) { + console.log(tests[i].name + ' took an average of ' + tests[i].time + 'ms (min: ' + tests[i].minTime + 'ms; max: ' + tests[i].maxTime + 'ms'); + } + } + hasRunFlag = true; + return this; + }; + + this.hasRun = function () { + return hasRunFlag; + }; + + this.getSuiteName = function () { + return suiteName; + }; + + this.getTests = function () { + return tests; + }; + + performance.testSuites.push(this); +}; + +module.exports = performance; diff --git a/static/showdown/test/performance/performance.js b/static/showdown/test/performance/performance.js new file mode 100644 index 0000000..a68e912 --- /dev/null +++ b/static/showdown/test/performance/performance.js @@ -0,0 +1,141 @@ +/** + * Created by Tivie on 21/12/2016. + */ +'use strict'; +var fs = require('fs'), + showdown = require('../../.build/showdown.js'), + converter = new showdown.Converter(), + pkg = require('../../package.json'), + performance = require('./lib/performance.lib.js'); + +performance.setLibraryName(pkg.name); +performance.setVersion(pkg.version); +performance.setGithubLink('https://github.com/showdownjs/showdown/tree/'); + +var globals = { + gHtmlBlocks: [], + gHtmlMdBlocks: [], + gHtmlSpans: [], + gUrls: {}, + gTitles: {}, + gDimensions: {}, + gListLevel: 0, + hashLinkCounts: {}, + langExtensions: [], + outputModifiers: [], + converter: converter, + ghCodeBlocks: [] + }, + options = showdown.getOptions(); + +function runTests () { + var testMDFile = fs.readFileSync('test/performance.testfile.md', 'utf8'); + new performance.Suite('Basic') + .setOption('cycles', 50) + .add('Simple "Hello World"', function () { + converter.makeHtml('*Hello* **World**!'); + }) + .add('performance.testfile.md', { + prepare: function () { + return testMDFile; + }, + test: function (mdText) { + converter.makeHtml(mdText); + } + }); + new performance.Suite('subParsers') + .setOption('cycles', 20) + .add('hashHTMLBlocks', function () { + showdown.subParser('makehtml.hashHTMLBlocks')(testMDFile, options, globals); + }) + .add('anchors', function () { + showdown.subParser('makehtml.anchors')(testMDFile, options, globals); + }) + .add('autoLinks', function () { + showdown.subParser('makehtml.autoLinks')(testMDFile, options, globals); + }) + .add('blockQuotes', function () { + showdown.subParser('makehtml.blockQuotes')(testMDFile, options, globals); + }) + .add('codeBlocks', function () { + showdown.subParser('makehtml.codeBlocks')(testMDFile, options, globals); + }) + .add('codeSpans', function () { + showdown.subParser('makehtml.codeSpans')(testMDFile, options, globals); + }) + .add('detab', function () { + showdown.subParser('makehtml.detab')(testMDFile, options, globals); + }) + .add('encodeAmpsAndAngles', function () { + showdown.subParser('makehtml.encodeAmpsAndAngles')(testMDFile, options, globals); + }) + .add('encodeBackslashEscapes', function () { + showdown.subParser('makehtml.encodeBackslashEscapes')(testMDFile, options, globals); + }) + .add('encodeCode', function () { + showdown.subParser('makehtml.encodeCode')(testMDFile, options, globals); + }) + .add('escapeSpecialCharsWithinTagAttributes', function () { + showdown.subParser('makehtml.escapeSpecialCharsWithinTagAttributes')(testMDFile, options, globals); + }) + .add('githubCodeBlocks', function () { + showdown.subParser('makehtml.githubCodeBlocks')(testMDFile, options, globals); + }) + .add('hashBlock', function () { + showdown.subParser('makehtml.hashBlock')(testMDFile, options, globals); + }) + .add('hashElement', function () { + showdown.subParser('makehtml.hashElement')(testMDFile, options, globals); + }) + .add('hashHTMLSpans', function () { + showdown.subParser('makehtml.hashHTMLSpans')(testMDFile, options, globals); + }) + .add('hashPreCodeTags', function () { + showdown.subParser('makehtml.hashPreCodeTags')(testMDFile, options, globals); + }) + .add('headers', function () { + showdown.subParser('makehtml.headers')(testMDFile, options, globals); + }) + .add('horizontalRule', function () { + showdown.subParser('makehtml.horizontalRule')(testMDFile, options, globals); + }) + .add('images', function () { + showdown.subParser('makehtml.images')(testMDFile, options, globals); + }) + .add('italicsAndBold', function () { + showdown.subParser('makehtml.italicsAndBold')(testMDFile, options, globals); + }) + .add('lists', function () { + showdown.subParser('makehtml.lists')(testMDFile, options, globals); + }) + .add('outdent', function () { + showdown.subParser('makehtml.outdent')(testMDFile, options, globals); + }) + .add('paragraphs', function () { + showdown.subParser('makehtml.paragraphs')(testMDFile, options, globals); + }) + .add('spanGamut', function () { + showdown.subParser('makehtml.spanGamut')(testMDFile, options, globals); + }) + .add('strikethrough', function () { + showdown.subParser('makehtml.strikethrough')(testMDFile, options, globals); + }) + .add('stripLinkDefinitions', function () { + showdown.subParser('makehtml.stripLinkDefinitions')(testMDFile, options, globals); + }) + .add('tables', function () { + showdown.subParser('makehtml.tables')(testMDFile, options, globals); + }) + .add('unescapeSpecialChars', function () { + showdown.subParser('makehtml.unescapeSpecialChars')(testMDFile, options, globals); + }); +} + +function generateLogs () { + performance.generateLog(null, null, true); +} + +module.exports = { + runTests: runTests, + generateLogs: generateLogs +}; diff --git a/static/showdown/test/unit/optionswp.js b/static/showdown/test/unit/optionswp.js new file mode 100644 index 0000000..dd20264 --- /dev/null +++ b/static/showdown/test/unit/optionswp.js @@ -0,0 +1,9 @@ +/* jshint ignore:start */ +var fs = require('fs'), + filedata; +filedata = fs.readFileSync('src/options.js', 'utf8'); +eval(filedata); +module.exports = { + getDefaultOpts: getDefaultOpts +}; +/* jshint ignore:end */ diff --git a/static/showdown/test/unit/showdown.Converter.js b/static/showdown/test/unit/showdown.Converter.js new file mode 100644 index 0000000..d215441 --- /dev/null +++ b/static/showdown/test/unit/showdown.Converter.js @@ -0,0 +1,163 @@ +/** + * Created by Estevao on 31-05-2015. + */ +require('source-map-support').install(); +require('chai').should(); +require('sinon'); +var showdown = require('../../.build/showdown.js'); + +describe('showdown.Converter', function () { + 'use strict'; + + describe('option methods', function () { + var converter = new showdown.Converter(); + + it('setOption() should set option foo=baz', function () { + converter.setOption('foo', 'baz'); + }); + + it('getOption() should get option foo to equal baz', function () { + converter.getOption('foo').should.equal('baz'); + }); + + it('getOptions() should contain foo=baz', function () { + var options = converter.getOptions(); + options.should.have.ownProperty('foo'); + options.foo.should.equal('baz'); + }); + }); + + describe('metadata methods', function () { + var converter = new showdown.Converter(); + + it('_setMetadataPair() should set foo to bar', function () { + converter._setMetadataPair('foo', 'bar'); + converter.getMetadata().should.eql({foo: 'bar'}); + }); + + it('_setMetadata should set metadata to {baz: bazinga}', function () { + converter._setMetadataRaw('{baz: bazinga}'); + converter.getMetadata(true).should.eql('{baz: bazinga}'); + }); + }); + + describe('converter.setFlavor()', function () { + + /** + * Test setFlavor('github') + */ + describe('github', function () { + var converter = new showdown.Converter(), + ghOpts = showdown.getFlavorOptions('github'); + + converter.setFlavor('github'); + + for (var opt in ghOpts) { + if (ghOpts.hasOwnProperty(opt)) { + check(opt, ghOpts[opt]); + } + } + function check (key, val) { + it('should set ' + opt + ' to ' + val, function () { + converter.getOption(key).should.equal(val); + }); + } + }); + }); + + describe('getFlavor method', function () { + + // reset showdown + showdown.setFlavor('vanilla'); + + describe('flavor', function () { + it('should be vanilla by default', function () { + var converter = new showdown.Converter(); + converter.getFlavor().should.equal('vanilla'); + }); + + it('should be changed if global option is changed', function () { + showdown.setFlavor('github'); + var converter = new showdown.Converter(); + converter.getFlavor().should.equal('github'); + showdown.setFlavor('vanilla'); + }); + + it('should not be changed if converter is initialized before global change', function () { + var converter = new showdown.Converter(); + showdown.setFlavor('github'); + converter.getFlavor().should.equal('vanilla'); + showdown.setFlavor('vanilla'); + }); + }); + }); + + describe('extension methods', function () { + var extObjMock = { + type: 'lang', + filter: function () {} + }, + extObjFunc = function () { + return extObjMock; + }; + + it('addExtension() should add an extension Object', function () { + var converter = new showdown.Converter(); + converter.addExtension(extObjMock); + converter.getAllExtensions().language.should.contain(extObjMock); + }); + + it('addExtension() should unwrap an extension wrapped in a function', function () { + var converter = new showdown.Converter(); + + converter.addExtension(extObjFunc); + converter.getAllExtensions().language.should.contain(extObjMock); + }); + + it('useExtension() should use a previous registered extension in showdown', function () { + showdown.extension('foo', extObjMock); + var converter = new showdown.Converter(); + + converter.useExtension('foo'); + converter.getAllExtensions().language.should.contain(extObjMock); + showdown.resetExtensions(); + }); + }); + + describe('events', function () { + var events = [ + 'anchors', + 'autoLinks', + 'blockGamut', + 'blockQuotes', + 'codeBlocks', + 'codeSpans', + 'githubCodeBlocks', + 'headers', + 'images', + 'italicsAndBold', + 'lists', + 'paragraph', + 'spanGamut' + //'strikeThrough', + //'tables' + ]; + + for (var i = 0; i < events.length; ++i) { + runListener(events[i] + '.before'); + runListener(events[i] + '.after'); + } + + function runListener (name) { + it('should listen to ' + name, function () { + var converter = new showdown.Converter(); + converter.listen(name, function (evtName, text) { + evtName.should.equal(name); + text.should.match(/^[\s\S]*foo[\s\S]*$/); + return text; + }) + .makeHtml('foo'); + }); + } + }); +}); diff --git a/static/showdown/test/unit/showdown.Converter.makeHtml.js b/static/showdown/test/unit/showdown.Converter.makeHtml.js new file mode 100644 index 0000000..9f1591e --- /dev/null +++ b/static/showdown/test/unit/showdown.Converter.makeHtml.js @@ -0,0 +1,99 @@ +/** + * Created by Estevao on 15-01-2015. + */ + +describe('showdown.Converter', function () { + 'use strict'; + + require('source-map-support').install(); + require('chai').should(); + + var showdown = require('../../.build/showdown.js'); + + describe('Converter.options extensions', function () { + var runCount; + showdown.extension('testext', function () { + return [{ + type: 'output', + filter: function (text) { + runCount = runCount + 1; + return text; + } + }]; + }); + + var converter = new showdown.Converter({extensions: ['testext']}); + + it('output extensions should run once', function () { + runCount = 0; + converter.makeHtml('# testext'); + runCount.should.equal(1); + }); + }); + + describe('makeHtml() with option omitExtraWLInCodeBlocks', function () { + var converter = new showdown.Converter({omitExtraWLInCodeBlocks: true}), + text = 'var foo = bar;', + html = converter.makeHtml(' ' + text); + it('should omit extra line after code tag', function () { + var expectedHtml = '
' + text + '
'; + html.should.equal(expectedHtml); + }); + }); + + describe('makeHtml() with option prefixHeaderId', function () { + var converter = new showdown.Converter(), + text = 'foo header'; + + it('should prefix header id with "section"', function () { + converter.setOption('prefixHeaderId', true); + var html = converter.makeHtml('# ' + text), + expectedHtml = '

' + text + '

'; + html.should.equal(expectedHtml); + }); + + it('should prefix header id with custom string', function () { + converter.setOption('prefixHeaderId', 'blabla'); + var html = converter.makeHtml('# ' + text), + expectedHtml = '

' + text + '

'; + html.should.equal(expectedHtml); + }); + }); + + describe('makeHtml() with option metadata', function () { + var converter = new showdown.Converter(), + text1 = + '---SIMPLE\n' + + 'foo: bar\n' + + 'baz: bazinga\n' + + '---\n', + text2 = + '---TIVIE\n' + + 'a: b\n' + + 'c: 123\n' + + '---\n'; + + it('should correctly set metadata', function () { + converter.setOption('metadata', true); + + var expectedHtml = '', + expectedObj = {foo: 'bar', baz: 'bazinga'}, + expectedRaw = 'foo: bar\nbaz: bazinga', + expectedFormat = 'SIMPLE'; + converter.makeHtml(text1).should.equal(expectedHtml); + converter.getMetadata().should.eql(expectedObj); + converter.getMetadata(true).should.equal(expectedRaw); + converter.getMetadataFormat().should.equal(expectedFormat); + }); + + it('consecutive calls should reset metadata', function () { + converter.makeHtml(text2); + var expectedObj = {a: 'b', c: '123'}, + expectedRaw = 'a: b\nc: 123', + expectedFormat = 'TIVIE'; + converter.getMetadata().should.eql(expectedObj); + converter.getMetadata(true).should.equal(expectedRaw); + converter.getMetadataFormat().should.equal(expectedFormat); + }); + }); +}); diff --git a/static/showdown/test/unit/showdown.helpers.js b/static/showdown/test/unit/showdown.helpers.js new file mode 100644 index 0000000..c9e35c8 --- /dev/null +++ b/static/showdown/test/unit/showdown.helpers.js @@ -0,0 +1,247 @@ +/** + * Created by Estevao on 27/01/2017. + */ +/*jshint expr: true*/ +/*jshint -W053 */ +/*jshint -W010 */ +/*jshint -W009 */ +var showdown = require('../../.build/showdown.js'); + +describe('encodeEmailAddress()', function () { + 'use strict'; + var encoder = showdown.helper.encodeEmailAddress, + email = 'foobar@example.com', + encodedEmail = encoder(email); + + it('should encode email', function () { + encodedEmail.should.not.equal(email); + }); + + it('should decode to original email', function () { + var decodedEmail = encodedEmail.replace(/&#(.+?);/g, function (wm, cc) { + if (cc.charAt(0) === 'x') { + //hex + return String.fromCharCode('0' + cc); + } else { + //dec + return String.fromCharCode(cc); + } + }); + decodedEmail.should.equal(email); + }); +}); + +describe('isString()', function () { + 'use strict'; + var isString = showdown.helper.isString; + + it('should return true for new String Object', function () { + isString(new String('some string')).should.be.true; + }); + + it('should return true for String Object', function () { + isString(String('some string')).should.be.true; + }); + + it('should return true for string literal', function () { + isString('some string').should.be.true; + }); + + it('should return false for integers', function () { + isString(5).should.be.false; + }); + + it('should return false for random objects', function () { + isString({foo: 'bar'}).should.be.false; + }); + + it('should return false for arrays', function () { + isString(['bar']).should.be.false; + }); +}); + +describe('isFunction()', function () { + 'use strict'; + var isFunction = showdown.helper.isFunction; + + it('should return true for closures', function () { + isFunction(function () {}).should.be.true; + }); + + it('should return true for defined functions', function () { + function foo () {} + isFunction(foo).should.be.true; + }); + + it('should return true for function variables', function () { + var bar = function () {}; + isFunction(bar).should.be.true; + }); + + it('should return false for hash objects', function () { + isFunction({}).should.be.false; + }); + + it('should return false for objects', function () { + isFunction(new Object ()).should.be.false; + }); + + it('should return false for string primitives', function () { + isFunction('foo').should.be.false; + }); +}); + +describe('isArray()', function () { + 'use strict'; + var isArray = showdown.helper.isArray; + + it('should return true for short syntax arrays', function () { + isArray([]).should.be.true; + }); + + it('should return true for array objects', function () { + var myArr = new Array(); + isArray(myArr).should.be.true; + }); + + it('should return false for functions', function () { + isArray(function () {}).should.be.false; + function baz () {} + isArray(baz).should.be.false; + }); + + it('should return false for objects', function () { + isArray({}).should.be.false; + isArray(new Object ()).should.be.false; + }); + + it('should return false for strings', function () { + isArray('foo').should.be.false; + isArray(new String('foo')).should.be.false; + }); +}); + +describe('isUndefined()', function () { + 'use strict'; + var isUndefined = showdown.helper.isUndefined; + + it('should return true if nothing is passed', function () { + isUndefined().should.be.true; + }); + + it('should return true if a variable is initialized but not defined', function () { + var myVar; + isUndefined(myVar).should.be.true; + }); + + it('should return false for null', function () { + isUndefined(null).should.be.false; + }); + + it('should return false for 0', function () { + isUndefined(0).should.be.false; + }); + + it('should return false for empty string', function () { + isUndefined('').should.be.false; + }); + + it('should return false for empty booleans false or true', function () { + isUndefined(false).should.be.false; + isUndefined(true).should.be.false; + }); + + it('should return false for anything not undefined', function () { + isUndefined('foo').should.be.false; + isUndefined(2).should.be.false; + isUndefined({}).should.be.false; + }); +}); + +describe('stdExtName()', function () { + 'use strict'; + var stdExtName = showdown.helper.stdExtName; + + it('should remove certain chars', function () { + var str = 'bla_- \nbla'; + //[_?*+\/\\.^-] + stdExtName(str).should.not.match(/[_?*+\/\\.^-]/g); + }); + it('should make everything lowercase', function () { + var str = 'BLABLA'; + //[_?*+\/\\.^-] + stdExtName(str).should.equal('blabla'); + }); +}); + +describe('forEach()', function () { + 'use strict'; + var forEach = showdown.helper.forEach; + + it('should throw an error if first parameter is undefined', function () { + (function () {forEach();}).should.throw('obj param is required'); + }); + + it('should throw an error if second parameter is undefined', function () { + (function () {forEach([]);}).should.throw('callback param is required'); + }); + + it('should throw an error if second parameter is not a function', function () { + (function () {forEach([], 'foo');}).should.throw('callback param must be a function/closure'); + }); + + it('should throw an error if first parameter is not an object or an array', function () { + (function () {forEach('foo', function () {});}).should.throw('obj does not seem to be an array or an iterable object'); + }); + + it('should not throw even if object is empty', function () { + (function () {forEach({}, function () {});}).should.not.throw(); + }); + + it('should iterate array items', function () { + var myArray = ['banana', 'orange', 'grape']; + forEach(myArray, function (val, key, obj) { + key.should.be.a('number'); + (key % 1).should.equal(0); + val.should.equal(myArray[key]); + obj.should.equal(myArray); + }); + }); + + it('should iterate over object properties', function () { + var myObj = {foo: 'banana', bar: 'orange', baz: 'grape'}; + forEach(myObj, function (val, key, obj) { + myObj.should.have.ownProperty(key); + val.should.equal(myObj[key]); + obj.should.equal(myObj); + }); + }); + + it('should iterate only over object own properties', function () { + var Obj1 = {foo: 'banana'}, + myObj = Object.create(Obj1); + myObj.bar = 'orange'; + myObj.baz = 'grape'; + + myObj.should.have.ownProperty('bar'); + myObj.should.have.ownProperty('baz'); + myObj.should.not.have.ownProperty('foo'); + + forEach(myObj, function (val, key) { + key.should.not.equal('foo'); + }); + }); +}); + +describe('matchRecursiveRegExp()', function () { + 'use strict'; + + var rRegExp = showdown.helper.matchRecursiveRegExp; + + it('should match nested elements', function () { + var result = rRegExp('
a
', ']*>', '', 'gim'); + result.should.deep.equal([['
a
', '
a
', '
', '
']]); + }); + +}); + diff --git a/static/showdown/test/unit/showdown.js b/static/showdown/test/unit/showdown.js new file mode 100644 index 0000000..dc297e4 --- /dev/null +++ b/static/showdown/test/unit/showdown.js @@ -0,0 +1,158 @@ +require('source-map-support').install(); +require('chai').should(); +var expect = require('chai').expect, + showdown = require('../../.build/showdown.js'); + +describe('showdown.options', function () { + 'use strict'; + + describe('setOption() and getOption()', function () { + it('should set option foo=bar', function () { + showdown.setOption('foo', 'bar'); + showdown.getOption('foo').should.equal('bar'); + showdown.resetOptions(); + (typeof showdown.getOption('foo')).should.equal('undefined'); + }); + }); + + describe('getDefaultOptions()', function () { + it('should get default options', function () { + var opts = require('./optionswp.js').getDefaultOpts(true); + expect(showdown.getDefaultOptions()).to.be.eql(opts); + }); + }); +}); + +describe('showdown.extension()', function () { + 'use strict'; + + var extObjMock = { + type: 'lang', + filter: function () {} + }, + extObjFunc = function () { + return extObjMock; + }; + + describe('should register', function () { + it('an extension object', function () { + showdown.extension('foo', extObjMock); + showdown.extension('foo').should.eql([extObjMock]); + showdown.resetExtensions(); + }); + + it('an extension function', function () { + showdown.extension('foo', extObjFunc); + showdown.extension('foo').should.eql([extObjMock]); + showdown.resetExtensions(); + }); + + it('a listener extension', function () { + showdown.extension('foo', { + type: 'listener', + listeners: { + foo: function (name, txt) { + return txt; + } + } + }); + showdown.resetExtensions(); + }); + }); + + describe('should refuse to register', function () { + it('a generic object', function () { + var fn = function () { + showdown.extension('foo', {}); + }; + expect(fn).to.throw(); + }); + + it('an extension with invalid type', function () { + var fn = function () { + showdown.extension('foo', { + type: 'foo' + }); + }; + expect(fn).to.throw(/type .+? is not recognized\. Valid values: "lang\/language", "output\/html" or "listener"/); + }); + + it('an extension without regex or filter', function () { + var fn = function () { + showdown.extension('foo', { + type: 'lang' + }); + }; + expect(fn).to.throw(/extensions must define either a "regex" property or a "filter" method/); + }); + + it('a listener extension without a listeners property', function () { + var fn = function () { + showdown.extension('foo', { + type: 'listener' + }); + }; + expect(fn).to.throw(/Extensions of type "listener" must have a property called "listeners"/); + }); + }); +}); + +describe('showdown.getAllExtensions()', function () { + 'use strict'; + var extObjMock = { + type: 'lang', + filter: function () {} + }; + + it('should return all extensions', function () { + showdown.extension('bar', extObjMock); + showdown.getAllExtensions().should.eql({bar: [extObjMock]}); + }); +}); + +describe('showdown.setFlavor()', function () { + 'use strict'; + it('should set flavor to github', function () { + showdown.setFlavor('github'); + showdown.getFlavor().should.equal('github'); + showdown.setFlavor('vanilla'); + }); + + it('should set options correctly', function () { + showdown.setFlavor('github'); + var ghOpts = showdown.getFlavorOptions('github'), + shOpts = showdown.getOptions(); + for (var opt in ghOpts) { + if (ghOpts.hasOwnProperty(opt)) { + shOpts.should.have.property(opt); + shOpts[opt].should.equal(ghOpts[opt]); + } + } + showdown.setFlavor('vanilla'); + }); + + it('should switch between flavors correctly', function () { + showdown.setFlavor('github'); + var ghOpts = showdown.getFlavorOptions('github'), + shOpts = showdown.getOptions(), + dfOpts = showdown.getDefaultOptions(); + for (var opt in dfOpts) { + if (ghOpts.hasOwnProperty(opt)) { + shOpts[opt].should.equal(ghOpts[opt]); + } else { + shOpts[opt].should.equal(dfOpts[opt]); + } + } + showdown.setFlavor('original'); + var orOpts = showdown.getFlavorOptions('original'); + shOpts = showdown.getOptions(); + for (opt in dfOpts) { + if (orOpts.hasOwnProperty(opt)) { + shOpts[opt].should.equal(orOpts[opt]); + } else { + shOpts[opt].should.equal(dfOpts[opt]); + } + } + showdown.setFlavor('vanilla'); + }); +});