summaryrefslogtreecommitdiff
path: root/src/creole-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/creole-test.c')
-rw-r--r--src/creole-test.c42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/creole-test.c b/src/creole-test.c
index c5b6590..8844a88 100644
--- a/src/creole-test.c
+++ b/src/creole-test.c
@@ -90,6 +90,30 @@ struct {
.input = "[[]]",
.output = "<p><a href=\"\"></a></p>"
},
+ {
+ .name = "Raw HTTP URL",
+ .input = "Here is a http://example.com/examplepage link.",
+ .output = "<p>Here is a <a href=\"http://example.com/examplepage\">"
+ "http://example.com/examplepage</a> link.</p>"
+ },
+ { // This is interesting because it doesn't contain a "://".
+ .name = "Raw mailto URL",
+ .input = "mailto:[email protected]",
+ .output = "<p><a href=\"mailto:[email protected]\">"
+ "mailto:[email protected]</a></p>"
+ },
+ {
+ .name = "Unnamed URL",
+ .input = "[[http //example.com/examplepage]]",
+ .output = "<p><a href=\"http //example.com/examplepage\">"
+ "http //example.com/examplepage</a></p>"
+ },
+ {
+ .name = "Named URL",
+ .input = "[[http //example.com/examplepage|Example Page]]",
+ .output = "<p>"
+ "<a href=\"http //example.com/examplepage\">Example Page</a></p>"
+ },
#if 0
{
.name = "Simple unordered list",
@@ -149,24 +173,6 @@ struct {
"<td> <strong>D</strong> <br /> E </td></tr></table>"
},
{
- .name = "Raw URL",
- .input = "http //example.com/examplepage",
- .output = "<p><a href=\"http //example.com/examplepage\">"
- "http //example.com/examplepage</a></p>"
- },
- {
- .name = "Unnamed URL",
- .input = "[[http //example.com/examplepage]]",
- .output = "<p><a href=\"http //example.com/examplepage\">"
- "http //example.com/examplepage</a></p>"
- },
- {
- .name = "Named URL",
- .input = "[[http //example.com/examplepage|Example Page]]",
- .output = "<p>"
- "<a href=\"http //example.com/examplepage\">Example Page</a></p>"
- },
- {
.name = "Image",
.input = "{{image.gif|my image}}",
.output = "<p><img src=\"image.gif\" alt=\"my image\"/></p>"