- int liClose = html.indexOf("");
- int preOpen = html.indexOf("");
- assertTrue(preOpen > 0, "Expected in: " + html);
- assertTrue(preOpen < liClose,
- " must appear before the first ; got: " + html);
- }
-
- @Test
- void testTopLevelCodeBlockResetsNumbering() {
- // Top-level code block between two lists — second list starts at 1
- String md = "1. Item A\n\n```\ntop level\n```\n\n1. New list\n";
- String html = MarkdownRenderer.toHtml(md);
- long count = html.chars().filter(c -> c == '1')
- .count(); // rough: just assert no for the second list
- assertFalse(html.contains(""),
- "Top-level code block should reset numbering; must not have but got: " + html);
- }
-
- // -------------------------------------------------------------------------
- // Indented code block — no leading spaces in
- // -------------------------------------------------------------------------
-
- @Test
- void testIndentedFencedCodeBlockNoLeadingSpaces() {
- String md = "1. Item\n\n ```bash\n mkdir foo\n ```\n\n2. Done\n";
- String html = MarkdownRenderer.toHtml(md);
- // Extract content and verify no leading spaces
- int preStart = html.indexOf("") + "".length();
- int preEnd = html.indexOf("");
- assertTrue(preStart > 0 && preEnd > preStart, "Expected block in: " + html);
- String preContent = html.substring(preStart, preEnd);
- assertFalse(preContent.startsWith(" "),
- "Code block content must not start with spaces but got: [" + preContent + "]");
- assertTrue(preContent.contains("mkdir foo"),
- "Code block must contain the command: " + preContent);
- }
}
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.expectedHtml.html
new file mode 100644
index 00000000..f80196ed
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.expectedHtml.html
@@ -0,0 +1 @@
+some quote
continued
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.src.md
new file mode 100644
index 00000000..ec7cbaa0
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/blockquote.src.md
@@ -0,0 +1,2 @@
+> some quote
+> continued
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.expectedHtml.html
new file mode 100644
index 00000000..766d877f
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.expectedHtml.html
@@ -0,0 +1 @@
+a < b && c > d
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.src.md
new file mode 100644
index 00000000..2b70f0bb
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block-html-escaped.src.md
@@ -0,0 +1,3 @@
+```
+a < b && c > d
+```
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.expectedHtml.html
new file mode 100644
index 00000000..dbc36ba1
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.expectedHtml.html
@@ -0,0 +1 @@
+System.out.println();
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.src.md
new file mode 100644
index 00000000..8847a021
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/fenced-code-block.src.md
@@ -0,0 +1,3 @@
+```java
+System.out.println();
+```
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.expectedHtml.html
new file mode 100644
index 00000000..d445594b
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.expectedHtml.html
@@ -0,0 +1 @@
+- A
B
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.src.md
new file mode 100644
index 00000000..d031c535
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-after-list-code-block.src.md
@@ -0,0 +1,7 @@
+1. A
+
+ ```bash
+ B
+ ```
+
+## F
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.expectedHtml.html
new file mode 100644
index 00000000..b6040fa3
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.expectedHtml.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.src.md
new file mode 100644
index 00000000..c957f90c
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-h1-h2-h3.src.md
@@ -0,0 +1,3 @@
+# H1
+## H2
+### H3
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.expectedHtml.html
new file mode 100644
index 00000000..eb411f92
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.expectedHtml.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.src.md
new file mode 100644
index 00000000..07d2bb98
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/heading-slug-punctuation.src.md
@@ -0,0 +1 @@
+# Hello, World! (2024)
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.expectedHtml.html
new file mode 100644
index 00000000..36c6eac3
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.expectedHtml.html
@@ -0,0 +1 @@
+Here is an image: 
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.src.md
new file mode 100644
index 00000000..ed5334b0
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/image-in-paragraph.src.md
@@ -0,0 +1 @@
+Here is an image: 
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.expectedHtml.html
new file mode 100644
index 00000000..07b16514
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.expectedHtml.html
@@ -0,0 +1 @@
+- Item
mkdir foo
- Done
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.src.md
new file mode 100644
index 00000000..c9d8fe37
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/indented-code-block-no-leading-spaces.src.md
@@ -0,0 +1,7 @@
+1. Item
+
+ ```bash
+ mkdir foo
+ ```
+
+2. Done
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.expectedHtml.html
new file mode 100644
index 00000000..33e8b5dd
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.expectedHtml.html
@@ -0,0 +1 @@
+See Installation & Build for requirements.
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.src.md
new file mode 100644
index 00000000..4449430c
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/link-in-paragraph.src.md
@@ -0,0 +1 @@
+See [Installation & Build](docs/installation.md) for requirements.
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.expectedHtml.html
new file mode 100644
index 00000000..25f2c2f0
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.expectedHtml.html
@@ -0,0 +1 @@
+- Item one
- Sub-item
- Item two
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.src.md
new file mode 100644
index 00000000..a57ab47c
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/list-returns-to-outer-after-sublist.src.md
@@ -0,0 +1,3 @@
+1. Item one
+ 1. Sub-item
+2. Item two
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.expectedHtml.html
new file mode 100644
index 00000000..adb8152c
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.expectedHtml.html
@@ -0,0 +1 @@
+- item
- item2
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.src.md
new file mode 100644
index 00000000..53ca5fd9
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/mixed-nested-list.src.md
@@ -0,0 +1,3 @@
+1. item
+ - nested-ul
+2. item2
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.expectedHtml.html
new file mode 100644
index 00000000..006b4f82
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.expectedHtml.html
@@ -0,0 +1 @@
+- First:
cmd1
- Second:
cmd2
- Third
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.src.md
new file mode 100644
index 00000000..c647aacd
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-multiple-code-blocks.src.md
@@ -0,0 +1,13 @@
+1. First:
+
+ ```bash
+ cmd1
+ ```
+
+2. Second:
+
+ ```bash
+ cmd2
+ ```
+
+3. Third
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.expectedHtml.html
new file mode 100644
index 00000000..8a9851f6
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.expectedHtml.html
@@ -0,0 +1 @@
+- Item one
cmd1
- Item two
cmd2
cmd3
- Sub one
- Sub two
- Sub three
- Item four
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.src.md
new file mode 100644
index 00000000..7c3ce740
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/nested-list-sub-items-after-code-block.src.md
@@ -0,0 +1,25 @@
+1. Item one
+
+ ```bash
+ cmd1
+ ```
+
+2. Item two
+
+ ```bash
+ cmd2
+ ```
+
+3.
+
+ ```bash
+ cmd3
+ ```
+
+ 1. Sub one
+
+ 2. Sub two
+
+ 3. Sub three
+
+4. Item four
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.expectedHtml.html
new file mode 100644
index 00000000..6d16e7c4
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.expectedHtml.html
@@ -0,0 +1 @@
+- Parent item
- Sub itemextra content line
- Another sub
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.src.md
new file mode 100644
index 00000000..6110179a
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/non-list-continuation-inside-li.src.md
@@ -0,0 +1,7 @@
+1. Parent item
+
+ 1. Sub item
+
+ extra content line
+
+ 2. Another sub
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.expectedHtml.html
new file mode 100644
index 00000000..e4c465df
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.expectedHtml.html
@@ -0,0 +1 @@
+- Item one
code here
- Item two
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.src.md
new file mode 100644
index 00000000..b15da7b2
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-code-block-inside-li.src.md
@@ -0,0 +1,7 @@
+1. Item one
+
+ ```bash
+ code here
+ ```
+
+2. Item two
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.expectedHtml.html
new file mode 100644
index 00000000..ed9db89b
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.expectedHtml.html
@@ -0,0 +1 @@
+- Third
- Fourth
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.src.md
new file mode 100644
index 00000000..1d0bc772
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-explicit-start.src.md
@@ -0,0 +1,2 @@
+3. Third
+4. Fourth
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.expectedHtml.html
new file mode 100644
index 00000000..5254a7a9
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.expectedHtml.html
@@ -0,0 +1 @@
+- first
- second
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.src.md
new file mode 100644
index 00000000..c8fdbc58
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-simple.src.md
@@ -0,0 +1,2 @@
+1. first
+2. second
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.expectedHtml.html
new file mode 100644
index 00000000..e5f5c4f9
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.expectedHtml.html
@@ -0,0 +1 @@
+- Item one
code
- Item two
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.src.md
new file mode 100644
index 00000000..ad354376
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/ordered-list-with-code-block.src.md
@@ -0,0 +1,7 @@
+1. Item one
+
+ ```bash
+ code
+ ```
+
+2. Item two
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.expectedHtml.html
new file mode 100644
index 00000000..ab4fb7e0
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.expectedHtml.html
@@ -0,0 +1 @@
+- A
- B
E
- C
- D
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.src.md
new file mode 100644
index 00000000..6b5f5328
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/outer-item-after-code-block-in-sublist.src.md
@@ -0,0 +1,11 @@
+1. A
+
+ 1. B
+
+ ```
+ E
+ ```
+
+ 2. C
+
+2. D
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.expectedHtml.html
new file mode 100644
index 00000000..7a5ebc15
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.expectedHtml.html
@@ -0,0 +1 @@
+Hello world
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.src.md
new file mode 100644
index 00000000..802992c4
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/paragraph.src.md
@@ -0,0 +1 @@
+Hello world
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.expectedHtml.html
new file mode 100644
index 00000000..236a3b1f
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.expectedHtml.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.src.md
new file mode 100644
index 00000000..0247d5ca
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-basic.src.md
@@ -0,0 +1,4 @@
+| Name | Age |
+|------|-----|
+| Alice | 30 |
+| Bob | 25 |
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.expectedHtml.html
new file mode 100644
index 00000000..6fcd6fff
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.expectedHtml.html
@@ -0,0 +1 @@
+Some text after.
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.src.md
new file mode 100644
index 00000000..d878538b
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-followed-by-paragraph.src.md
@@ -0,0 +1,5 @@
+| X |
+|---|
+| v |
+
+Some text after.
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.expectedHtml.html b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.expectedHtml.html
new file mode 100644
index 00000000..0508f1d5
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.expectedHtml.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.src.md b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.src.md
new file mode 100644
index 00000000..b33d39d7
--- /dev/null
+++ b/src/test/resources/io/github/nbclaudecodegui/ui/common/markdown-renderer/to-html/table-html-escaped.src.md
@@ -0,0 +1,3 @@
+| A| Bold | code |
|---|
| value | val2 |