Added more tests.

This commit is contained in:
default 2022-11-09 11:53:16 +01:00
parent 4cb00dcaf9
commit 940d291d17

9
main.c
View File

@ -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();