summaryrefslogtreecommitdiff
path: root/src/test/kotlin/moe/nea/blog/md
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-29 16:11:35 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-29 16:11:35 +0200
commit1ff704d63c057f0fca37b27cf0259e3c5af7299f (patch)
treec8073191cf879c449c97b63f58cabcefefaa4674 /src/test/kotlin/moe/nea/blog/md
parent9513802ef7637a469c72a2dedd68d5bf9215ba4d (diff)
downloadblog-infra-1ff704d63c057f0fca37b27cf0259e3c5af7299f.tar.gz
blog-infra-1ff704d63c057f0fca37b27cf0259e3c5af7299f.tar.bz2
blog-infra-1ff704d63c057f0fca37b27cf0259e3c5af7299f.zip
Allow inlining italics
Diffstat (limited to 'src/test/kotlin/moe/nea/blog/md')
-rw-r--r--src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt b/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt
index dee92bd..01bd49e 100644
--- a/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt
+++ b/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt
@@ -15,6 +15,12 @@ class TestItalics : MarkdownTest() {
}
@Test
+ fun testBeginningInTheMiddleOfTheWord() {
+ assertInlineFormat("inoneword<i>italic</i>", "inoneword*italic*")
+ assertInlineFormat("<i>multiple</i>inoneword<i>italic</i>", "*multiple*inoneword*italic*")
+ }
+
+ @Test
fun otherMarkdownInItalics() {
assertInlineFormat(
"<i><link target=https://nea.moe><b>test</b></link></i>",