feat(editor): rewrite <s> to <del>

This commit is contained in:
Elian Doran 2025-04-05 22:37:02 +03:00
parent ab416e02b4
commit 74d55d500c
No known key found for this signature in database
3 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -202,4 +202,10 @@ second line 2</code></pre><ul><li>Hello</li><li>world</li></ul><ol><li>Hello</li
expect(markdownService.renderToHtml(html, "Title")).toStrictEqual(html);
});
it("generates strike-through text", () => {
const input = `~~Hello~~ world.`;
const expected = /*html*/`<p><del>Hello</del> world.</p>`;
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);
});
});