Skip to content

Commit

Permalink
Update utils.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjeru authored Oct 14, 2024
1 parent 159a6a9 commit c23d6da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Markdown/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,11 @@ describe('fixMarkdownBold', () => {
`;
expect(fixMarkdownBold(text)).toBe(expected);
});

it('should not have a space after a bold character other than symbols', () => {
expect(fixMarkdownBold('你**我**他')).toBe('你**我**他');
expect(fixMarkdownBold('你**我:**他')).toBe('你**我:** 他');
expect(fixMarkdownBold('你**我:**他')).toBe('你**我:** 他');
// expect(fixMarkdownBold('你**我: **他')).toBe('你**我:** 他'); // TODO: 先去掉加粗部分末尾空格,再在**后添加空格
});
});

0 comments on commit c23d6da

Please sign in to comment.