diff --git a/tests/unit/markdown.spec.ts b/tests/unit/markdown.spec.ts index 5614cb1..689c441 100644 --- a/tests/unit/markdown.spec.ts +++ b/tests/unit/markdown.spec.ts @@ -5,15 +5,15 @@ import { } from "@/utils/markdown" describe("Render markdown", () => { - const text = "# heading\n\ntest **bold** test *italic* test ~~strike~~ with `code`, html and https://example.com\nnew line\n\ntwo new lines and a list:\n- item 1\n- item 2\n\ncode block:\n```\nlet test\ntest = 1\n```" + const text = "# heading\n\ntest **bold** test *italic* test ~~strike~~ with `code`, html and https://example.com\nnew line\n\ntwo new lines and a list:\n- item 1\n- item 2\n\n>greentext\n\n---\n\nimage: ![logo](logo.png)\n\ncode block:\n```\nlet test\ntest = 1\n```" it("Render markdown lite", () => { const html = renderMarkdownLite(text) - expect(html).to.equal('

# heading

test bold test italic test ~~strike~~ with code, <span>html</span> and https://example.com
new line

two new lines and a list:
- item 1
- item 2

code block:

let test\ntest = 1\n
') + expect(html).to.equal('

# heading

test bold test italic test ~~strike~~ with code, <span>html</span> and https://example.com
new line

two new lines and a list:
- item 1
- item 2

>greentext

---

image: !logo

code block:

let test\ntest = 1\n
') }) it("Render markdown lite inline", () => { const html = renderMarkdownLiteInline(text) - expect(html).to.equal('# heading

test bold test italic test ~~strike~~ with code, <span>html</span> and https://example.com
new line

two new lines and a list:
- item 1
- item 2

code block:
let test test = 1') + expect(html).to.equal('# heading

test bold test italic test ~~strike~~ with code, <span>html</span> and https://example.com
new line

two new lines and a list:
- item 1
- item 2

>greentext

---

image: !logo

code block:
let test test = 1') }) })