Keep HTML comments in output
See https://spec.commonmark.org/0.29/#example-621
This commit is contained in:
parent
1793559632
commit
a9636129cc
1 changed files with 1 additions and 0 deletions
1
smu.c
1
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue