diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-16 18:39:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-16 18:39:01 (GMT) |
commit | 21a07f02210364e270caa8b66852b0816bff2a5b (patch) | |
tree | 798d24910e6bd77efb3419f82074c4f02edc64c2 /src | |
parent | ae4608f5dfadc7c43e047fc5ffb13598c2b3094a (diff) | |
parent | 0f90a399a886ea7f69bf482415e6c4cdcb7269b3 (diff) | |
download | Doxygen-21a07f02210364e270caa8b66852b0816bff2a5b.zip Doxygen-21a07f02210364e270caa8b66852b0816bff2a5b.tar.gz Doxygen-21a07f02210364e270caa8b66852b0816bff2a5b.tar.bz2 |
Merge branch 'albert-github-feature/bug_html_comment'
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 6fea0a6..e63bf10 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -480,7 +480,7 @@ static int processNmdash(GrowBuf &out,const char *data,int off,int size) { count++; } - if (count==2 && off>=2 && qstrncmp(data-2,"<!",2)==0) return 0; // start HTML comment + if (count>=2 && off>=2 && qstrncmp(data-2,"<!",2)==0) return 1-count; // start HTML comment if (count==2 && (data[2]=='>')) return 0; // end HTML comment if (count==2 && (off<8 || qstrncmp(data-8,"operator",8)!=0)) // -- => ndash { @@ -1084,9 +1084,9 @@ static void processInline(GrowBuf &out,const char *data,int size) if (end>=size) break; i=end; end = action(out,data+i,i,size-i); - if (!end) + if (end<=0) { - end=i+1; + end=i+1-end; } else { |