Update readme.md with Maven usage instructions and examples; add a new test for heading parsing in ParseTest.kt.

This commit is contained in:
2026-01-07 15:28:54 +01:00
parent 892a509743
commit 160622b262
2 changed files with 43 additions and 6 deletions

View File

@@ -66,6 +66,15 @@ class ParseTest {
printMarkdownParts(md)
}
@Test
fun testHeading() {
val input = "# Markdown\n\nMy **markdown** text."
val md = markdown(input)
printMarkdownParts(md)
}
private fun printMarkdownParts(md: List<MarkdownPart>) {
for (part in md) {
if (part is MarkdownPart.Paragraph) {