summaryrefslogtreecommitdiff
path: root/src/creole_test_main.c
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-17 15:15:53 +0100
committerLinnnus <[email protected]>2024-02-17 15:59:28 +0100
commit7b5ed48d52ed7a24108c4411a01555f13d08d787 (patch)
treed7f0830b916c2478efe70701c8c5704815636607 /src/creole_test_main.c
parentd7a869ffeb2f313df06d4505911cefdf8108ff7e (diff)
feat(creole): support inline nowiki
Diffstat (limited to 'src/creole_test_main.c')
-rw-r--r--src/creole_test_main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/creole_test_main.c b/src/creole_test_main.c
index 6b9e95b..8d531c7 100644
--- a/src/creole_test_main.c
+++ b/src/creole_test_main.c
@@ -201,6 +201,28 @@ struct {
.input = "//**Strong and emphasized//**",
.output = "<p><em>**Strong and emphasized</em>**</p>"
},
+ {
+ .name = "Inline nowiki",
+ .input = "Some examples of markup are: {{{** <i>this</i> **}}}",
+ .output = "<p>Some examples of markup are: <tt>** &lt;i&gt;this&lt;/i&gt; **</tt></p>"
+ },
+ {
+ .name = "Inline nowiki is stripped",
+ .input = "{{{ foo }}}",
+ .output = "<p><tt>foo</tt></p>"
+ },
+ { // Spec does not seem to clear this issue.
+ // As it becomes a <tt> in their example, I'll assume newlines aren't included verbatim in the output.
+ // However, for consistency with (e.g.) bold text, they will "work" across line boundaries.
+ .name = "Linebreaks in inline nowiki",
+ .input = "This should not work {{{foo\nbar}}}",
+ .output = "<p>This should not work <tt>foo\nbar</tt></p>"
+ },
+ {
+ .name = "Inline nowiki brace helll",
+ .input = "Creole: Inline nowiki with closing braces: {{{if (a>b) { b = a; }}}}.",
+ .output = "<p>Creole: Inline nowiki with closing braces: <tt>if (a&gt;b) { b = a; }</tt>.</p>"
+ },
#if 0
{
.name = "Simple unordered list",