diff options
| author | 2022-11-09 11:53:16 +0100 | |
|---|---|---|
| committer | 2022-11-09 11:53:16 +0100 | |
| commit | 940d291d17d3e940fbc6cbe2fc35c4c082c89ba2 (patch) | |
| tree | 5f697b0105cc29728172d003e8f0712c255b6011 /main.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-940d291d17d3e940fbc6cbe2fc35c4c082c89ba2.tar.gz snac2-940d291d17d3e940fbc6cbe2fc35c4c082c89ba2.tar.xz snac2-940d291d17d3e940fbc6cbe2fc35c4c082c89ba2.zip | |
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[]) | |||
| 76 | return initdb(basedir); | 76 | return initdb(basedir); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | if (strcmp(cmd, "markdown") == 0) { | ||
| 80 | /* undocumented, for testing only */ | ||
| 81 | xs *c = xs_readall(stdin); | ||
| 82 | xs *fc = not_really_markdown(c, &fc); | ||
| 83 | |||
| 84 | printf("<html>\n%s\n</html>\n", fc); | ||
| 85 | return 0; | ||
| 86 | } | ||
| 87 | |||
| 79 | if ((basedir = GET_ARGV()) == NULL) | 88 | if ((basedir = GET_ARGV()) == NULL) |
| 80 | return usage(); | 89 | return usage(); |
| 81 | 90 | ||