diff --git a/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt b/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt index 39b5b88..2f1d0fe 100644 --- a/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt +++ b/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt @@ -501,4 +501,37 @@ class ParserTest { ), actual ) } + + @Test + fun quoteと装飾() { + + val parser = Parser() + + val actual = parser.parse( + listOf( + Quote(1), Asterisk(1, '*'), Text("a"), Asterisk(1, '*') + ) + ) + + println(actual) + println(actual.print()) + + assertEquals( + RootNode( + BodyNode( + listOf( + QuoteNode( + mutableListOf( + ItalicNode( + mutableListOf(PlainText("a")) + ) + + ) + ) + ) + ) + ), actual + ) + + } } \ No newline at end of file