mirror of
https://github.com/zadam/trilium.git
synced 2026-02-12 00:34:25 +01:00
chore(markdown): address requested changes
This commit is contained in:
parent
fabab6abb1
commit
5a7fc1c8b6
@ -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);
|
||||
|
||||
@ -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 = `* <note> is note.`;
|
||||
const expected = /*html*/`<ul><li><note> is note.</li></ul>`;
|
||||
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user