showdown/test/issues
Estevao Soares dos Santos d51be6e0b4 fix(lists): enforce 4 space indentation in sublists
Acording to the spec, multi paragraph (or block) list item requires subblocks
to be indented 4 spaces (or 1 tab). Although, this is mentioned in the documentation,
Showdown didn't enforce this rule in sublists because other implementations,
such as GFM also didn't. However, in some edge cases, this led to inconsistent behavior,
as shown in issue #299. This commit makes 4 space indentation in sublists
mandatory.

BREAKING CHANGE: syntax for sublists is more restrictive. Before, sublists SHOULD be
indented by 4 spaces, but indenting 2 spaces would work. Now, sublists MUST be
indented 4 spaces or they won't work.

With this input:
```md
* one
  * two
    * three
```

Before (ouput):
```html
<ul>
  <li>one
    <ul>
      <li>two
        <ul><li>three</li></ul>
      <li>
    </ul>
  </li>
<ul>
```

After (output):
```html
<ul>
  <li>one</li>
  <li>two
    <ul><li>three</li></ul>
  </li>
</ul>
```

To migrate either fix source md files or activate the option `disableForced4SpacesIndentedSublists` (coming in v1.5.0):

```md
showdown.setOption('disableForced4SpacesIndentedSublists', true);
```
2016-11-11 07:56:29 +00:00
..
#83.parsed-text-links-with-underscores.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#83.parsed-text-links-with-underscores.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#96.underscores-in-links.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#96.underscores-in-links.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#107.inner-underscore-parse-to-block.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#107.inner-underscore-parse-to-block.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#142.odd-behaviour-for-multiple-consecutive-lists.html fix(lists linebreaks): fix lists linebreaks in html output 2016-09-29 01:12:27 +01:00
#142.odd-behaviour-for-multiple-consecutive-lists.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#150.hyphens-are-getting-removed.html chore: normalize test names 2015-10-19 02:50:32 +01:00
#150.hyphens-are-getting-removed.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#183.gh-code-blocks-within-lists-do-not-render-properly.html fix(lists linebreaks): fix lists linebreaks in html output 2016-09-29 01:12:27 +01:00
#183.gh-code-blocks-within-lists-do-not-render-properly.md chore: normalize test names 2015-10-19 02:50:32 +01:00
#191.blockquote-followed-by-an-heading.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#191.blockquote-followed-by-an-heading.md fix(blockGamut): fix for headings inside blockquotes 2015-08-23 03:11:11 +01:00
#196.entity-in-code-block-in-nested-list.html fix(lists linebreaks): fix lists linebreaks in html output 2016-09-29 01:12:27 +01:00
#196.entity-in-code-block-in-nested-list.md fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#220.html-breaks-markdown-parsing.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#220.html-breaks-markdown-parsing.md fix(hashHTMLBlock): fix issue with html breaking markdown parsing 2016-01-01 23:33:33 +00:00
#229.2.code-being-parsed-inside-HTML-code-tags.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#229.2.code-being-parsed-inside-HTML-code-tags.md fix(HTMLParser): fix ghCodeBlocks being parsed inside code tags 2016-01-25 01:04:06 +00:00
#229.code-being-parsed-inside-HTML-code-tags.html fix(HTMLParser): fix code tags parsing 2016-01-25 03:01:54 +00:00
#229.code-being-parsed-inside-HTML-code-tags.md fix(HTMLParser): fix ghCodeBlocks being parsed inside code tags 2016-01-25 01:04:06 +00:00
#230.paragraphs-are-ignored-between-code-tags.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#230.paragraphs-are-ignored-between-code-tags.md fix(HTMLParser): fix code tags parsing 2016-01-25 03:01:54 +00:00
#261.mix-images-with-links.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#261.mix-images-with-links.md fix(image-parser): fix ref style imgs after inline style imgs not parsing correctly 2016-06-08 17:16:49 +01:00
#261.reference-style-image-after-inline-style-image-does-not-work-correctely.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#261.reference-style-image-after-inline-style-image-does-not-work-correctely.md fix(image-parser): fix ref style imgs after inline style imgs not parsing correctly 2016-06-08 17:16:49 +01:00
#261.reference-style-link-after-inline-style-link-does-not-work-correctely.html fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
#261.reference-style-link-after-inline-style-link-does-not-work-correctely.md fix(image-parser): fix ref style imgs after inline style imgs not parsing correctly 2016-06-08 17:16:49 +01:00
#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.html fix(lists linebreaks): fix lists linebreaks in html output 2016-09-29 01:12:27 +01:00
#288.code-blocks-containing-xml-comments-are-not-converted-correctly-when-nested-in-list-items.md fix(parser): fix issue with comments inside nested code blocks 2016-08-30 06:07:57 +01:00
#299.nested-ordered-unordered-list-inconsistent-behavior-2.html fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-2.md fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-3.html fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior-3.md fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior.html fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
#299.nested-ordered-unordered-list-inconsistent-behavior.md fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00