Revert "fix(suparsbers/lists.js): fix odd behavior for multiple consecutive lists"

This reverts commit 11f32e04a6.
This commit is contained in:
Estevão Soares dos Santos 2015-05-30 00:10:21 +01:00
parent 11f32e04a6
commit e3a4541ab3
9 changed files with 4 additions and 74 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

View File

@ -1,19 +0,0 @@
<ul>
<li>foo</li>
<li>bar
<ul><li>baz
<ul><li>bazinga</li></ul></li>
<li>nhecos</li></ul></li>
<li>bada</li>
</ul>
<p>separator</p>
<ul>
<li>foo</li>
<li>bar
<ol><li>baz
<ul><li>bazinga</li></ul></li>
<li>nhecos</li></ol></li>
<li>bada</li>
</ul>

View File

@ -1,17 +0,0 @@
- foo
- bar
- baz
- bazinga
- nhecos
- bada
separator
- foo
- bar
1. baz
+ bazinga
2. nhecos
- bada

View File

@ -1,8 +0,0 @@
<ul>
<li>foo</li>
<li>bar</li>
</ul>
<ul>
<li>baz</li>
<li>bazinga</li>
</ul>

View File

@ -1,6 +0,0 @@
- foo
- bar
- baz
- bazinga

View File

@ -1,8 +0,0 @@
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>

View File

@ -1,5 +0,0 @@
* Item 1
* Item 2
1. Item 1
2. Item 2

View File

@ -15,26 +15,19 @@
.map(map('test/cases/')),
issues = fs.readdirSync('test/issues/')
.filter(filter())
.map(map('test/issues/')),
extra = fs.readdirSync('test/extra/')
.filter(filter())
.map(map('test/extra/'));
.map(map('test/issues/'));
//Tests
describe('Converter.makeHtml() simple testcases', function () {
var converter = new showdown.Converter();
for (var i = 0; i < cases.length; ++i) {
if (cases[i].name === 'github-style-at-start') {
console.log(showdown.getOptions());
}
it(cases[i].name, assertion(cases[i], converter));
}
});
describe('Converter.makeHtml() EXTRA testcases', function () {
var converter = new showdown.Converter();
for (var i = 0; i < extra.length; ++i) {
it(extra[i].name, assertion(extra[i], converter));
}
});
describe('Converter.makeHtml() issues testcase', function () {
var converter = new showdown.Converter();
for (var i = 0; i < issues.length; ++i) {