1.5.0
Bug Fixes
- lists: enforce 4 space indentation in sublists (d51be6e)
- lists: fix sublists inconsistent behavior (9cfe8b1), closes #299
Features
- disableForced4SpacesIndentedSublists: option that disables the requirement of indenting nested sublists by 4 spaces. The option is disabled by default (0be39bc)
BREAKING CHANGES
- syntax for sublists is now more restrictive. Before, sublists SHOULD be
indented by 4 spaces, but indenting at least 2 spaces would work.
Now, sublists MUST be indented 4 spaces or they won't work.
With this input:
* one
* two
* three
Before (ouput):
<ul>
<li>one
<ul>
<li>two
<ul><li>three</li></ul>
<li>
</ul>
</li>
<ul>
After (output):
<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
:
showdown.setOption('disableForced4SpacesIndentedSublists', true);