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

Improve strikethrough around double quotes #242

Closed
step- opened this issue Feb 20, 2024 · 1 comment · Fixed by #243
Closed

Improve strikethrough around double quotes #242

step- opened this issue Feb 20, 2024 · 1 comment · Fixed by #243

Comments

@step-
Copy link
Contributor

step- commented Feb 20, 2024

Please, is there something you could do to improve parsing strikethrough markdown? Consider the following test subject. Clearly, I don't mean to strike through any words in either paragraph but while the first paragraph is done as I mean, the second one strikes through some words apparently attracted by the double quotes.

Test subject

copy ~user1/file to ~user2/file

copy "~user1/file" to "~user2/file"

Output of md2html --fstrikethrough

<p>copy ~user1/file to ~user2/file</p>
<p>copy &quot;<del>user1/file&quot; to &quot;</del>user2/file&quot;</p>
mity added a commit that referenced this issue Feb 21, 2024
@mity
Copy link
Owner

mity commented Feb 21, 2024

Yeah, it would improve compatibility with other emphasis spans as well as with GFM.

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

Successfully merging a pull request may close this issue.

2 participants