showdown/test/functional/makehtml/cases/issues
Estevao Soares dos Santos 63763b136f fix(images): fix error when using image references
In some circumstances, on a reference style image, the last capturing
group is ignored, which causes the fucntion argument to return the number
of matches instead of a string (or undefined).
Checking if the title parameter is a string ensures that the title
parameter is actually something that was caught by the regex and not some
metadata.

Closes #585
2018-09-14 15:40:18 +01:00
..
#83.parsed-text-links-with-underscores.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#83.parsed-text-links-with-underscores.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#96.underscores-in-links.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#96.underscores-in-links.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#107.inner-underscore-parse-to-block.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#107.inner-underscore-parse-to-block.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#142.odd-behaviour-for-multiple-consecutive-lists.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#142.odd-behaviour-for-multiple-consecutive-lists.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#150.hyphens-are-getting-removed.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#150.hyphens-are-getting-removed.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#183.gh-code-blocks-within-lists-do-not-render-properly.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#183.gh-code-blocks-within-lists-do-not-render-properly.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#191.blockquote-followed-by-an-heading.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#191.blockquote-followed-by-an-heading.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#196.entity-in-code-block-in-nested-list.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#196.entity-in-code-block-in-nested-list.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#220.html-breaks-markdown-parsing.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#220.html-breaks-markdown-parsing.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#229.2.code-being-parsed-inside-HTML-code-tags.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#229.2.code-being-parsed-inside-HTML-code-tags.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#229.code-being-parsed-inside-HTML-code-tags.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#229.code-being-parsed-inside-HTML-code-tags.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#230.paragraphs-are-ignored-between-code-tags.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#230.paragraphs-are-ignored-between-code-tags.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#236.wrong-lt-parsing-when-attached-to-word.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#236.wrong-lt-parsing-when-attached-to-word.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.mix-images-with-links.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.mix-images-with-links.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-2.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-2.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-3.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-3.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char2.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char2.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char3.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char3.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char4.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#312.spaced-dashes-followed-by-char4.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#317.spaces-before-hr.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#317.spaces-before-hr.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#332.inconsistent-behavior-of-emphasis-and-strong.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#332.inconsistent-behavior-of-emphasis-and-strong.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#345.no-escape-for-the-pipe-character.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#345.no-escape-for-the-pipe-character.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#390.brackets-in-URL-break-images.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#390.brackets-in-URL-break-images.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#390.brackets-in-URL-break-links.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#390.brackets-in-URL-break-links.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#393.showdown-hangs-with-malformed-html.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#393.showdown-hangs-with-malformed-html.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#397.unordered-list-strange-behavior.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#397.unordered-list-strange-behavior.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#429.multiline-base64-image-support.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#429.multiline-base64-image-support.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#467.header-ids-for-subheadings.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#467.header-ids-for-subheadings.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
#585.error-when-using-image-references.html fix(images): fix error when using image references 2018-09-14 15:40:18 +01:00
#585.error-when-using-image-references.md fix(images): fix error when using image references 2018-09-14 15:40:18 +01:00
crazy-urls.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
crazy-urls.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
deeply-nested-HTML-blocks.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
deeply-nested-HTML-blocks.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
handle-html-pre.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
handle-html-pre.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
one-line-HTML-input.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
one-line-HTML-input.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
URLs-with-multiple-parenthesis.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
URLs-with-multiple-parenthesis.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00