diff options
author | default <nobody@localhost> | 2022-11-09 11:53:16 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-09 11:53:16 +0100 |
commit | 940d291d17d3e940fbc6cbe2fc35c4c082c89ba2 (patch) | |
tree | 5f697b0105cc29728172d003e8f0712c255b6011 /main.c | |
parent | 4cb00dcaf98ec9b9576cdf48a6ad2722148523ad (diff) |
Added more tests.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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(); |