Skip to content

Adding strikethrough support via the htmlStrike highlight group #186

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

Merged
merged 5 commits into from
Jan 24, 2022

Conversation

jcla1
Copy link
Contributor

@jcla1 jcla1 commented Jan 21, 2022

As was requested in #26 and implemented in #34 (but with an unsatisfactory highlight group) I've taken the liberty to alter that PR to use a better highlight group instead.

(I've also had to adjust @therod's changes to fit into the current state of the syntax file.)

@tomtomjhj
Copy link
Contributor

I think the changes I made in #185 should be applied to this patch, since strikethrough is a variant of emphasis. See https://github.github.com/gfm/#strikethrough-extension-.

As pointed out by @tomtomjhj it would be good to follow the lead of the
other emphasis syntax groups: allow no whitespace after/before the
emphasis delimiter and also don't let emphasis span multiple lines.
@jcla1
Copy link
Contributor Author

jcla1 commented Jan 21, 2022

Good catch, thanks @tomtomjhj! I've modified the syntax rule accordingly.

@tpope
Copy link
Owner

tpope commented Jan 22, 2022

Let's go with markdownStrike. It avoids that big realignment and matches what HTML does.

@tpope tpope merged commit 891dff5 into tpope:master Jan 24, 2022
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

Successfully merging this pull request may close these issues.

4 participants