summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();