md_analyze_backtick: Ensire that code span opener and closer do not overlap.
diff --git a/md4c/md4c.c b/md4c/md4c.c
index ef92e69..dd5edee 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -2685,8 +2685,10 @@ md_analyze_backtick(MD_CTX* ctx, int mark_index)
* itself to swallow it. */
while(CH(opener->end) == _T(' ') || ISNEWLINE(opener->end))
opener->end++;
- while(CH(mark->beg-1) == _T(' ') || ISNEWLINE(mark->beg-1))
- mark->beg--;
+ if(mark->beg > opener->end) {
+ while(CH(mark->beg-1) == _T(' ') || ISNEWLINE(mark->beg-1))
+ mark->beg--;
+ }
/* Done. */
return;