Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two lines paragraph highlight issue #9

Open
honghaoz opened this issue Apr 22, 2019 · 3 comments
Open

Two lines paragraph highlight issue #9

honghaoz opened this issue Apr 22, 2019 · 3 comments

Comments

@honghaoz
Copy link

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

@chriseidhof
Copy link
Contributor

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
Copy link
Contributor

I filed an issue on the cmark repo: commonmark/cmark#296

@honghaoz
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants