showdown/test/node/testsuite.features.js
Estevão Soares dos Santos af82c2b616 feat(image dimensions): add support for setting image dimensions within markdown syntax
This feature allows users to define the image dimensions using markdown syntax:
```
![my image](img.jpg =100x80 "image title")
```
To enable this feature, use the option `parseImgDimensions`.

Closes #143
2015-06-17 01:22:05 +01:00

21 lines
642 B
JavaScript

/**
* Created by Estevao on 08-06-2015.
*/
var showdown = require('../../dist/showdown.js'),
bootstrap = require('../bootstrap.js'),
assertion = bootstrap.assertion,
testsuite = bootstrap.getTestSuite('test/features/');
describe('makeHtml() features testsuite', function () {
'use strict';
for (var i = 0; i < testsuite.length; ++i) {
var converter;
if (testsuite[i].name === '#143.support_image_dimensions') {
converter = new showdown.Converter({parseImgDimensions: true});
} else {
converter = new showdown.Converter();
}
it(testsuite[i].name, assertion(testsuite[i], converter));
}
});