summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-03-07 21:33:28 +0100
committerLinnnus <[email protected]>2024-03-07 21:42:21 +0100
commit20025ba691ad39300e37a4d0fb1bd381475cecb5 (patch)
tree4a0e3d4e056c2ecb424b3687ba8652d7295e6064
parent7af40dac48281448e000e65918d7aec6bd1aa8dc (diff)
test(creole): Document behavior for empty bold/emphasis
I don't know whether this should be considered a bug or not. I think it's pretty reasonable behavior to not recognize empty tags, since the writer probably isn't thinking about their function in the markup if there's nothing inside.
-rw-r--r--src/creole_test_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/creole_test_main.c b/src/creole_test_main.c
index 4f71087..368fc01 100644
--- a/src/creole_test_main.c
+++ b/src/creole_test_main.c
@@ -181,11 +181,21 @@ struct {
.input = "I //love double ~// slashes//!",
.output = "<p>I <em>love double // slashes</em>!</p>"
},
+ { // Not sure what the standard demands. Here's our behavior.
+ .name = "Empty emphasis",
+ .input = "////",
+ .output = "<p>////</p>"
+ },
{
.name = "Bold",
.input = "**Strong**",
.output = "<p><strong>Strong</strong></p>"
},
+ { // Not sure what the standard demands. Here's our behavior.
+ .name = "Empty bold",
+ .input = "You f****g asshole!",
+ .output = "<p>You f****g asshole!</p>"
+ },
{
.name = "Escaped bold",
.input = "**Strong ~** still strong**",