diff options
author | Linnea Gräf <nea@nea.moe> | 2024-03-24 16:15:13 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-03-24 16:15:13 +0100 |
commit | 340fc50af3a33f5d3f2fc1928d6ce34baae0bd4e (patch) | |
tree | 0078cea8857364e32e4fcced9ad733000208687d /src/test/kotlin/moe/nea/blog/md | |
parent | 238dabfe06fade0cd9a2b0fc286bddc6a48151f6 (diff) | |
download | blog-infra-340fc50af3a33f5d3f2fc1928d6ce34baae0bd4e.tar.gz blog-infra-340fc50af3a33f5d3f2fc1928d6ce34baae0bd4e.tar.bz2 blog-infra-340fc50af3a33f5d3f2fc1928d6ce34baae0bd4e.zip |
Add freestanding star test
Diffstat (limited to 'src/test/kotlin/moe/nea/blog/md')
-rw-r--r-- | src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt | 10 |
1 files changed, 10 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 b4b102a..0e08473 100644 --- a/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt +++ b/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt @@ -56,6 +56,16 @@ class TestItalics { } @Test + fun testFreestandingStar() { + assertInlineFormat("left * right", "left * right") + } + + @Test + fun testFreestandingStarInItalics() { + assertInlineFormat("<i>left * right</i>", "*left * right*") + } + + @Test fun testNested() { assertInlineFormat("<i>a <b>bold</b> b</i>", "*a **bold** b*") assertInlineFormat("<i>a <i>double italics</i></i>", "*a *double italics**") |