md_collect_mark: Add missing 'continue' to '~' branch. Fixes #69.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
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>
+````````````````````````````````