snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 940d291d17d3e940fbc6cbe2fc35c4c082c89ba2
parent 4cb00dcaf98ec9b9576cdf48a6ad2722148523ad
Author: default <nobody@localhost>
Date:   Wed,  9 Nov 2022 11:53:16 +0100

Added more tests.

Diffstat:
Mmain.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/main.c b/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();