Keep HTML comments in output - smu - smu - simple markup (Markdown) processor (… | |
git clone git://git.codemadness.org/smu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a9636129ccb0ee70d2795ad05c41770ba57aae73 | |
parent 1793559632596f3c8e587553f1d7c87036437fb7 | |
Author: Karl Bartel <[email protected]> | |
Date: Sun, 29 Sep 2019 18:16:00 +0200 | |
Keep HTML comments in output | |
See https://spec.commonmark.org/0.29/#example-621 | |
Diffstat: | |
M smu.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/smu.c b/smu.c | |
@@ -148,6 +148,7 @@ docomment(const char *begin, const char *end, int newblock)… | |
p = strstr(begin, "-->"); | |
if(!p || p + 3 >= end) | |
return 0; | |
+ fprintf(stdout, "%.*s\n", (int)(p + 3 - begin), begin); | |
return (p + 3 - begin) * (newblock ? -1 : 1); | |
} | |