mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Added more tests.
This commit is contained in:
parent
4cb00dcaf9
commit
940d291d17
9
main.c
9
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user