showdown/test/node/testsuite.makemd.js
Estevao Soares dos Santos e4b0e69724 feat(converter.makeMarkdown): add an HTML to MD converter
Showdown now supports a simple HTML to Markdown converter.

**Usage:**

```
var conv = new showdown.Converter();
var md = conv.makeMarkdown('<a href="/url">a link</a>');
```

Closes #388, #233
2018-11-10 02:39:38 +00:00

13 lines
416 B
JavaScript

var bootstrap = require('../bootstrap.js'),
converter = new bootstrap.showdown.Converter(),
testsuite = bootstrap.getHtmlToMdTestSuite('test/makeMd/'),
assertion = bootstrap.assertion;
describe('makeMd() standard testsuite', function () {
'use strict';
for (var i = 0; i < testsuite.length; ++i) {
it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter, 'makeMd'));
}
});