don't remove comments when -n is set. - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
HTML git clone git://git.codemadness.org/smu
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cf7d7b62f29ffcc61fd4105b35e781933e1d46ac
DIR parent 5fff5fdbe80372d2f79ce2b0d6324f5a1e39aeeb
HTML Author: Enno Boland (Gottox) <gottox@s01.de>
Date: Tue, 1 Jul 2008 22:10:40 +0200
don't remove comments when -n is set.
Diffstat:
M smu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/smu.c b/smu.c
@@ -142,7 +142,7 @@ int
docomment(const char *begin, const char *end, int newblock) {
char *p;
- if(strncmp("<!--", begin, 4))
+ if(nohtml || strncmp("<!--", begin, 4))
return 0;
p = strstr(begin, "-->");
if(!p || p + 3 >= end)