summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-09 11:53:16 +0100
committerdefault <nobody@localhost>2022-11-09 11:53:16 +0100
commit940d291d17d3e940fbc6cbe2fc35c4c082c89ba2 (patch)
tree5f697b0105cc29728172d003e8f0712c255b6011
parent4cb00dcaf98ec9b9576cdf48a6ad2722148523ad (diff)
Added more tests.
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2046909..4c4df43 100644
--- a/main.c
+++ b/main.c
@@ -76,6 +76,15 @@ int main(int argc, char *argv[])
return initdb(basedir);
}
+ if (strcmp(cmd, "markdown") == 0) {
+ /* undocumented, for testing only */
+ xs *c = xs_readall(stdin);
+ xs *fc = not_really_markdown(c, &fc);
+
+ printf("<html>\n%s\n</html>\n", fc);
+ return 0;
+ }
+
if ((basedir = GET_ARGV()) == NULL)
return usage();