diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 0 insertions, 9 deletions
| @@ -98,15 +98,6 @@ int main(int argc, char *argv[]) | |||
| 98 | return snac_init(basedir); | 98 | return snac_init(basedir); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | if (strcmp(cmd, "markdown") == 0) { /** **/ | ||
| 102 | /* undocumented, for testing only */ | ||
| 103 | xs *c = xs_readall(stdin); | ||
| 104 | xs *fc = not_really_markdown(c, NULL, NULL); | ||
| 105 | |||
| 106 | printf("<html>\n%s\n</html>\n", fc); | ||
| 107 | return 0; | ||
| 108 | } | ||
| 109 | |||
| 110 | if ((basedir = getenv("SNAC_BASEDIR")) == NULL) { | 101 | if ((basedir = getenv("SNAC_BASEDIR")) == NULL) { |
| 111 | if ((basedir = GET_ARGV()) == NULL) | 102 | if ((basedir = GET_ARGV()) == NULL) |
| 112 | return usage(); | 103 | return usage(); |