From 7b5ed48d52ed7a24108c4411a01555f13d08d787 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 17 Feb 2024 15:15:53 +0100 Subject: feat(creole): support inline nowiki --- src/creole_test_main.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/creole_test_main.c') 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 = "

**Strong and emphasized**

" }, + { + .name = "Inline nowiki", + .input = "Some examples of markup are: {{{** this **}}}", + .output = "

Some examples of markup are: ** <i>this</i> **

" + }, + { + .name = "Inline nowiki is stripped", + .input = "{{{ foo }}}", + .output = "

foo

" + }, + { // Spec does not seem to clear this issue. + // As it becomes a 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 = "

This should not work foo\nbar

" + }, + { + .name = "Inline nowiki brace helll", + .input = "Creole: Inline nowiki with closing braces: {{{if (a>b) { b = a; }}}}.", + .output = "

Creole: Inline nowiki with closing braces: if (a>b) { b = a; }.

" + }, #if 0 { .name = "Simple unordered list", -- cgit v1.2.3