diff options
Diffstat (limited to 'src/creole_test_main.c')
-rw-r--r-- | src/creole_test_main.c | 22 |
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>** <i>this</i> **</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>b) { b = a; }</tt>.</p>" + }, #if 0 { .name = "Simple unordered list", |