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:
parent
7d98fab6c1
commit
038e0cf3c1
1 changed files with 9 additions and 0 deletions
|
@ -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 () {
|
||||
[
|
||||
"",
|
||||
|
|
Loading…
Add table
Reference in a new issue