Commit b85869878417edecef1edb957402bf4579955724

Martin Mitas 2019-04-03T08:28:27

md_collect_mark: Add missing 'continue' to '~' branch. Fixes #69.

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07b0593..2d56075 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,11 @@ Fixes:
    Some specific HTML blocks were not recognized when EOF follows without any
    end-of-line character.
 
+ * [#69](https://github.com/mity/md4c/issues/69):
+   Strike-through span not working correctly when its opener mark is directly
+   followed by other opener mark; or when other closer mark directly precedes
+   its closer mark.
+
 
 ## Version 0.3.1
 
diff --git a/md4c/md4c.c b/md4c/md4c.c
index c92e8a5..ba3de41 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -3258,6 +3258,7 @@ md_collect_marks(MD_CTX* ctx, const MD_LINE* lines, int n_lines, int table_mode)
 
                 PUSH_MARK(ch, off, tmp, MD_MARK_POTENTIAL_OPENER | MD_MARK_POTENTIAL_CLOSER);
                 off = tmp;
+                continue;
             }
 
             /* Turn non-trivial whitespace into single space. */
diff --git a/test/strikethrough.txt b/test/strikethrough.txt
index ffb0d59..0b21b7e 100644
--- a/test/strikethrough.txt
+++ b/test/strikethrough.txt
@@ -31,4 +31,26 @@ new paragraph~~.
 .
 <p>This ~~has a</p>
 <p>new paragraph~~.</p>
-````````````````````````````````
\ No newline at end of file
+````````````````````````````````
+
+
+## GitHub Issues
+
+### [Issue 69](https://github.com/mity/md4c/issues/69)
+```````````````````````````````` example
+~`foo`~
+.
+<p><del><code>foo</code></del></p>
+````````````````````````````````
+
+```````````````````````````````` example
+~*foo*~
+.
+<p><del><em>foo</em></del></p>
+````````````````````````````````
+
+```````````````````````````````` example
+*~foo~*
+.
+<p><em><del>foo</del></em></p>
+````````````````````````````````