0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

add test for allowing 4 underscores in markdown

This commit is contained in:
Sebastian Gräßl 2013-11-24 17:35:38 +01:00
parent 7d98fab6c1
commit 038e0cf3c1

View file

@ -55,6 +55,15 @@ describe("Ghostdown showdown extensions", function () {
});
});
it("should allow 4 underscores", function () {
var processedMarkup =
ghostdown().reduce(function (prev, processor) {
return processor.filter(prev);
}, "Ghost ____");
processedMarkup.should.match(/Ghost\s(?:_){4}$/);
});
it("should correctly include an image", function () {
[
"![image and another,/ image](http://dsurl.stuff)",