From e3054904e9b636809990420caff92f68fc469237 Mon Sep 17 00:00:00 2001 From: silverpill Date: Tue, 11 Oct 2022 20:41:55 +0000 Subject: [PATCH] Add blockquote, image and hr to markdown rendering test --- tests/unit/markdown.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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') }) })