simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.05k stars 133 forks source link

Problem with spaces as new-line after bold/italics followed by a period #124

Closed fditolla closed 4 years ago

fditolla commented 4 years ago

With the following test data (all lines are terminated by two spaces), line 1 and 5 do not comply with the 2 spaces rule=new-line: --- test data start ---
line 1 **bold follwed by period**.
line 2
line 3 **bold**
line 4
line 5 *italic follwed by period*.
line 6
line 7 *italic*
line 8
line 9 text followed by period.
line 10
line 11 text
line 12
--- end --- in markdown viewer 3.9 in Chrome 83.0.4103.106 this is rendered as follows: --- markdown viewer 3.9 rendering start ---
line 1 bold follwed by period. line 2
line 3 bold
line 4
line 5 italic follwed by period. line 6
line 7 italic
line 8 line 9 text followed by period.
line 10
line 11 text
line 12
--- end ---

simov commented 4 years ago

Ok, I was able to reproduce it, though it's worth noting that the issue is present only when using the Marked compiler, and when the breaks option is turned off.

A better place to post this issue is on the marked issue tracker instead.

fditolla commented 4 years ago

ok thanks I'll open it there.

simov commented 4 years ago

Also in case they ask you about specific Marked version that you use, you can take it from here. Probably there is a comment on top of the minified file in the vendor folder as well.