From b61a40ea32e38c1b1813377a91b30fb1dfb008c3 Mon Sep 17 00:00:00 2001 From: usbharu Date: Thu, 14 Nov 2024 12:35:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/markdown/LexerTest.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/library/src/commonTest/kotlin/dev/usbharu/markdown/LexerTest.kt b/library/src/commonTest/kotlin/dev/usbharu/markdown/LexerTest.kt index d9d4328..b6dfdae 100644 --- a/library/src/commonTest/kotlin/dev/usbharu/markdown/LexerTest.kt +++ b/library/src/commonTest/kotlin/dev/usbharu/markdown/LexerTest.kt @@ -805,4 +805,19 @@ class LexerTest { ), actual ) } + + @Test + fun コードブロックかと思ったらアスタリスク() { + val lexer = Lexer() + + val actual = lexer.lex("aiueo ```abcd*a*") + + println(actual) + + assertContentEquals( + listOf( + Text("aiueo"), Whitespace(1, ' '), Text("```abcd") + ), actual + ) + } } \ No newline at end of file