Skip to content

Commit

Permalink
md_collect_mark: Add missing 'continue' to '~' branch.
Browse files Browse the repository at this point in the history
Fixes #69.
  • Loading branch information
mity committed Apr 3, 2019
1 parent cccfb3d commit b858698
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions md4c/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
24 changes: 23 additions & 1 deletion test/strikethrough.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,26 @@ new paragraph~~.
.
<p>This ~~has a</p>
<p>new paragraph~~.</p>
````````````````````````````````
````````````````````````````````


## 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>
````````````````````````````````

0 comments on commit b858698

Please sign in to comment.