summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-17 02:52:57 +0100
committerLinnnus <[email protected]>2024-02-17 02:54:46 +0100
commita4a59f2fe8ff5df7d8cba81037f14dbd2c4ed33f (patch)
treed8beb953d8c994ad284b2ec7f147ca5e8d464e12
parentfd385801d115e8a0aa29ffb9b9e6ff215c34cc42 (diff)
test(creole): add case for markup in named link
-rw-r--r--src/creole_test_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/creole_test_main.c b/src/creole_test_main.c
index bae144b..a284811 100644
--- a/src/creole_test_main.c
+++ b/src/creole_test_main.c
@@ -71,6 +71,16 @@ struct {
.output = "<p><a href=\"MyPage\">My page</a></p>"
},
{
+ .name = "Link with markup in name",
+ .input = "[[https://example.com|a **cool** link]]",
+ .output = "<p><a href=\"https://example.com\">a <strong>cool</strong> link</a></p>"
+ },
+ {
+ .name = "Markup in link address is ignored",
+ .input = "[[https://**example**.com/{{wad}}]]",
+ .output = "<p><a href=\"https://**example**.com/{{wad}}\">https://**example**.com/{{wad}}</a></p>"
+ },
+ {
.name = "Escaped link",
.input = "A paragraph with an ~[[escaped link]].",
.output = "<p>A paragraph with an [[escaped link]].</p>"