mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
626f661e8e
Fix makeMarkdown() with tasklist by adding input subparser. Close #774 Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
24 lines
730 B
JavaScript
24 lines
730 B
JavaScript
/**
|
|
* Created by Estevao on 08-06-2015.
|
|
*/
|
|
var bootstrap = require('./makemarkdown.bootstrap.js'),
|
|
showdown = bootstrap.showdown,
|
|
assertion = bootstrap.assertion,
|
|
testsuite = bootstrap.getTestSuite('test/functional/makemarkdown/cases/features/');
|
|
|
|
describe('makeMarkdown() features testsuite', function () {
|
|
'use strict';
|
|
|
|
describe('issues', function () {
|
|
for (var i = 0; i < testsuite.length; ++i) {
|
|
var converter;
|
|
if (testsuite[i].name === '#164.4.tasklists') {
|
|
converter = new showdown.Converter({tasklists: true});
|
|
} else {
|
|
converter = new showdown.Converter();
|
|
}
|
|
it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter));
|
|
}
|
|
});
|
|
});
|