chore(markdown): address requested changes

This commit is contained in:
Elian Doran 2026-01-17 13:22:24 +02:00
parent fabab6abb1
commit 5a7fc1c8b6
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -435,7 +435,7 @@ describe("Markdown export", () => {
expect(markdownExportService.toMarkdown(html)).toBe(expected);
});
it("renders underline with underscore", () => {
it("renders emphasis with underscore", () => {
const html = /*html*/`<p>This is <em>underlined</em> text.</p>`;
const expected = `This is _underlined_ text.`;
expect(markdownExportService.toMarkdown(html)).toBe(expected);

View File

@ -314,7 +314,7 @@ $$`;
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);
});
it("doesn't unescape HTML in list", () => {
it("preserves HTML entities in list", () => {
const input = `* &lt;note&gt; is note.`;
const expected = /*html*/`<ul><li>&lt;note&gt; is note.</li></ul>`;
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);