showdown/src/subParsers
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
..
anchors.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
autoLinks.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
blockGamut.js feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
blockQuotes.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
codeBlocks.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
codeSpans.js added check for undefined on text due to failing to parse tables 2016-05-24 10:26:59 +01:00
detab.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
encodeAmpsAndAngles.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
encodeBackslashEscapes.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
encodeCode.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
encodeEmailAddress.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
escapeSpecialCharsWithinTagAttributes.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
githubCodeBlocks.js feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
hashBlock.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
hashElement.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
hashHTMLBlocks.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
hashHTMLSpans.js feat(hashHTMLSpans): Add support for hashing span elements 2015-10-19 01:55:35 +01:00
hashPreCodeTags.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
headers.js feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
images.js fix(image-parser): fix ref style imgs after inline style imgs not parsing correctly 2016-06-08 17:16:49 +01:00
italicsAndBold.js Fixed IE8 regex compatability 2016-06-27 15:43:51 +00:00
lists.js fix(lists): enforce 4 space indentation in sublists 2016-11-11 07:56:29 +00:00
outdent.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
paragraphs.js fix(double linebreaks): fix double linebreaks in html output 2016-09-29 00:50:58 +01:00
runExtension.js feature(extensionLoading): refactor extension loading mechanism 2015-05-31 20:56:28 +01:00
spanGamut.js feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
strikethrough.js feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
stripBlankLines.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00
stripLinkDefinitions.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
tables.js fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
unescapeSpecialChars.js chore(): code fix to pass jscs linter 2015-01-19 14:57:43 +00:00