Skip to content

Commit

Permalink
add test for allowing 4 underscores in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bastilian committed Nov 24, 2013
1 parent 7d98fab commit 038e0cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/test/unit/client_ghostdown_spec.js
Expand Up @@ -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)",
Expand Down

0 comments on commit 038e0cf

Please sign in to comment.