From 9513802ef7637a469c72a2dedd68d5bf9215ba4d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 24 Mar 2024 22:36:36 +0100 Subject: Add block quotes --- .../kotlin/moe/nea/blog/md/test/BlockQuoteTest.kt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/test/kotlin/moe/nea/blog/md/test/BlockQuoteTest.kt (limited to 'src/test/kotlin/moe/nea/blog') diff --git a/src/test/kotlin/moe/nea/blog/md/test/BlockQuoteTest.kt b/src/test/kotlin/moe/nea/blog/md/test/BlockQuoteTest.kt new file mode 100644 index 0000000..635dd88 --- /dev/null +++ b/src/test/kotlin/moe/nea/blog/md/test/BlockQuoteTest.kt @@ -0,0 +1,45 @@ +package moe.nea.blog.md.test + +import kotlin.test.Test + +class BlockQuoteTest : MarkdownTest() { + @Test + fun testNestedBlockQuote() { + assertDocumentFormat( + """ + + hi + + hello + + + """.trimIndent(), + """ + > hi + > > hello + """.trimIndent() + ) + } + + @Test + fun testCodeInBlock() { + assertDocumentFormat( + """ + + hi + + fun helloWorld(): Unit = + "Hello, World!".let(::println) + + + """.trimIndent(), + """ + > hi + > ```kotlin + > fun helloWorld(): Unit = + > "Hello, World!".let(::println) + > ``` + """.trimIndent() + ) + } +} \ No newline at end of file -- cgit