Skip to content

Commit

Permalink
test for 0b8ef01
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Dec 10, 2022
1 parent 0b8ef01 commit 3d5a453
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Expand Up @@ -401,6 +401,12 @@ function describeTestsWithOptions(options, postText) {
expected = replaceDelimiters('<ul>\n<li>{#ids} <a href="./link">link</a></li>\n</ul>\n', options);
assert.equal(md.render(replaceDelimiters(src, options)), expected);
});

it(replaceDelimiters('should support empty quoted attrs', options), () => {
src = '![](https://example.com/image.jpg){class="" height="100" width=""}';
expected = replaceDelimiters('<p><img src="https://example.com/image.jpg" alt="" class="" height="100" width=""></p>\n', options);
assert.equal(md.render(replaceDelimiters(src, options)), expected);
});
});
}

Expand Down

0 comments on commit 3d5a453

Please sign in to comment.