Keep HTML comments in output - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
 (HTM) git clone git://git.codemadness.org/smu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a9636129ccb0ee70d2795ad05c41770ba57aae73
 (DIR) parent 1793559632596f3c8e587553f1d7c87036437fb7
 (HTM) Author: Karl Bartel <karl42@gmail.com>
       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(-)
       ---
 (DIR) 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);
        }