diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-29 16:11:35 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-04-29 16:11:35 +0200 |
commit | 1ff704d63c057f0fca37b27cf0259e3c5af7299f (patch) | |
tree | c8073191cf879c449c97b63f58cabcefefaa4674 /src/test/kotlin/moe/nea/blog/md | |
parent | 9513802ef7637a469c72a2dedd68d5bf9215ba4d (diff) | |
download | blog-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.kt | 6 |
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>", |