vim-criticmarkup
vim-criticmarkup copied to clipboard
CriticMarkup not working inside some highlighting elements
Best way to illustrate the issue is by this screenshot:
I don't know if this is a vim-pandoc or a vim-criticmarkup issue, so I'm posting it here.
It was a problem here. Just pushed a fix to master.
I don't know if this is a feature or a bug, but it also does not work inside YAML blocks, like e.g. the abstract.
I'll call that "undefined behavior"... Just pushed a fix to master.
Feel free to tell me if it doesn't work with other stuff. I'll reopen the issue just in case.
I just updated, and it is indeed fixed in definition lists, but still not working in YAML front matter block (specifically abstract).
Can you tell me what is the output of
:echo synIDattr(synID(line('.'), col('.'), 1), "name")
when the cursor is in the text that needs to be highlighted?
Yes, that is yamlPlainScalar
. If I enclose it in quotes (which for other reasons is a bad idea for a multiline string in YAML), the result is yamlFlowString
.
Thanks, I pushed the required change to master.
That seems to have broken something. It works partially, but breaks subsequent parsing of the Pandoc file:
If I remove the CM tags, it works fine:
I think it's an issue with the YAML syntax, with a small tweak (now in master) I have this:
What YAML syntax file are you using? I'm using this one
I use whatever vim-pandoc
uses.
Here's what it looks like here after the latest update.
Observation: After having inserted some more CM here, the highlight got messed up further down the pandoc MD document, but only until I ran the cursor down through the lines. This didn't happen before.
Also: If I enclose the string in quotes, the weirdness seems to go away.
I'm having this issue as well. Numbered lists fail when filetype=pandoc, but not when filetype=markdown. Criticmarkup shows up fine in normal text regardless of filetype.
Numbered & bulleted lists and block quotes look like this when filetype=markdown:
But like this when filetype=pandoc: