summaryrefslogtreecommitdiff
path: root/src/creole_test_main.c
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-17 01:02:24 +0100
committerLinnnus <[email protected]>2024-02-17 01:03:22 +0100
commit0f60b5f74919b8841bf9d8a9658d031e4fc503d1 (patch)
tree9e9db30e949c61297e9eb0ca58921038aa6938a3 /src/creole_test_main.c
parentcd39c2a2fdf57b82fa8584cac3c201b8aafb72b5 (diff)
feat(creole): Support strong/bold
Diffstat (limited to 'src/creole_test_main.c')
-rw-r--r--src/creole_test_main.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/creole_test_main.c b/src/creole_test_main.c
index 1157721..334ba43 100644
--- a/src/creole_test_main.c
+++ b/src/creole_test_main.c
@@ -151,6 +151,21 @@ struct {
"http://www.wikicreole.org</a>. This is what can go wrong "
"<em>this should be an italic text</em>.</p>"
},
+ {
+ .name = "Bold",
+ .input = "**Strong**",
+ .output = "<p><strong>Strong</strong></p>"
+ },
+ {
+ .name = "Nested bold/italic",
+ .input = "//**Strong and emphasized**//",
+ .output = "<p><em><strong>Strong and emphasized</strong></em></p>"
+ },
+ {
+ .name = "Alternating bold/italic doesn't work",
+ .input = "//**Strong and emphasized//**",
+ .output = "<p><em>**Strong and emphasized</em>**</p>"
+ },
#if 0
{
.name = "Simple unordered list",
@@ -219,11 +234,6 @@ struct {
.input = "Inline {{{tt}}} example {{{here}}}!",
.output = "<p>Inline <tt>tt</tt> example <tt>here</tt>!</p>"
},
- {
- .name = "Strong",
- .input = "**Strong**",
- .output = "<p><strong>Strong</strong></p>"
- },
#endif
};