tpope / vim-markdown

Vim Markdown runtime files
1.22k stars 191 forks source link

Adding strikethrough support via the `htmlStrike` highlight group #186

Closed jcla1 closed 2 years ago

jcla1 commented 2 years ago

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 commented 2 years ago

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

jcla1 commented 2 years ago

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

tpope commented 2 years ago

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