Skip to content

Commit 3d5a453

Browse files
committed
test for 0b8ef01
1 parent 0b8ef01 commit 3d5a453

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,12 @@ function describeTestsWithOptions(options, postText) {
401401
expected = replaceDelimiters('<ul>\n<li>{#ids} <a href="./link">link</a></li>\n</ul>\n', options);
402402
assert.equal(md.render(replaceDelimiters(src, options)), expected);
403403
});
404+
405+
it(replaceDelimiters('should support empty quoted attrs', options), () => {
406+
src = '![](https://example.com/image.jpg){class="" height="100" width=""}';
407+
expected = replaceDelimiters('<p><img src="https://example.com/image.jpg" alt="" class="" height="100" width=""></p>\n', options);
408+
assert.equal(md.render(replaceDelimiters(src, options)), expected);
409+
});
404410
});
405411
}
406412

0 commit comments

Comments
 (0)