markdown-playgrounds icon indicating copy to clipboard operation
markdown-playgrounds copied to clipboard

Two lines paragraph highlight issue

Open honghaoz opened this issue 6 years ago • 3 comments

Hey, I found this weird highlight results: For this markdown text:

This is a *same*
    **paragraph**

The highlight result is: Screen Shot 2019-04-21 at 23 31 01

honghaoz avatar Apr 22 '19 06:04 honghaoz

Interesting. It seem like this might be a bug in cmark, it reports the correct line number, but it says the emphasis starts at column 1. Either my interpretation of CommonMark's position is wrong, or the underlying library is wrong =)

chriseidhof avatar Apr 24 '19 21:04 chriseidhof

I filed an issue on the cmark repo: https://github.com/commonmark/cmark/issues/296

chriseidhof avatar Apr 24 '19 22:04 chriseidhof

@chriseidhof Yeah, the cmark lib returns unexpected columns. More interestingly, I also found this weird results (I made italic highligted):

image

Looks like this is related to soft breaks.

honghaoz avatar Apr 24 '19 22:04 honghaoz