diff options
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 | ||