From 20025ba691ad39300e37a4d0fb1bd381475cecb5 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 7 Mar 2024 21:33:28 +0100 Subject: 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. --- src/creole_test_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/creole_test_main.c') 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 = "

I love double // slashes!

" }, + { // Not sure what the standard demands. Here's our behavior. + .name = "Empty emphasis", + .input = "////", + .output = "

////

" + }, { .name = "Bold", .input = "**Strong**", .output = "

Strong

" }, + { // Not sure what the standard demands. Here's our behavior. + .name = "Empty bold", + .input = "You f****g asshole!", + .output = "

You f****g asshole!

" + }, { .name = "Escaped bold", .input = "**Strong ~** still strong**", -- cgit v1.2.3