Skip to content

Commit

Permalink
Merge pull request #70 from stiang/zuchka/update-test
Browse files Browse the repository at this point in the history
add test for escaped markdown
  • Loading branch information
zuchka authored Jul 12, 2023
2 parents faf349c + 51bcda8 commit 6d4bed5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/remove-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,11 @@ describe('remove Markdown', function () {
const expected = 'Some text with lots of whitespace';
expect(removeMd(string)).to.equal(expected);
});

it('should still remove escaped markdown syntax', function () {
const string = '\# Heading in _italic_';
const expected = 'Heading in italic';
expect(removeMd(string)).to.equal(expected);
});
});
});

0 comments on commit 6d4bed5

Please sign in to comment.