mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
Added more tests.
This commit is contained in:
parent
4cb00dcaf9
commit
940d291d17
1 changed files with 9 additions and 0 deletions
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 a new issue