Closed kylebarbour closed 10 years ago
I think that this is a contains
issue. Adding pandocNewlines
to the contains
in the emphasis call s:WithConceal
lines seems to solve this problem:
call s:WithConceal("block", 'syn region pandocEmphasis matchgroup=Operator start=/\(\_^\|\s\|[[:punct:]]\)\@<=\*/ skip=/\(\*\*\|__\)/ end=/\*\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNewline', 'concealends')
call s:WithConceal("block", 'syn region pandocEmphasis matchgroup=Operator start=/\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@<=_\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNewline', 'concealends')
Sorry not to have noticed this before. I'm including this in vim-pandoc-syntax.
When within emphases (
*
or_
), hard line breaks are formatted as\\
rather then as↵
. For example, the linesare highlighted, but the the linebreaks are incorrectly rendered as
rather than