Skip to content

Commit 1607dd5

Browse files
committed
Merge pull request #102 from W4RH4WK/master
atx headers don't accept spaces before #
2 parents 76d73fd + 8851c6b commit 1607dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/pandoc.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ call s:WithConceal("strikeout", 'syn match pandocStrikeoutMark /\~\~/ contained
304304

305305
" Headers: {{{1
306306
"
307-
syn match pandocAtxHeader /\(\%^\|^\s*\n\)\@<=\s*#\{1,6}.*\n/ contains=pandocEmphasis,pandocStrong,pandocNoFormatted,@Spell display
308-
syn match pandocAtxHeaderMark /\(^\s*#\{1,6}\|\\\@<!#*\(\s*.*$\)\@=\)/ contained containedin=pandocAtxHeader
307+
syn match pandocAtxHeader /\(\%^\|^\s*\n\)\@<=#\{1,6}.*\n/ contains=pandocEmphasis,pandocStrong,pandocNoFormatted,@Spell display
308+
syn match pandocAtxHeaderMark /\(^#\{1,6}\|\\\@<!#*\(\s*.*$\)\@=\)/ contained containedin=pandocAtxHeader
309309
call s:WithConceal("atx", 'syn match pandocAtxStart /#/ contained containedin=pandocAtxHeaderMark', 'conceal cchar='.s:cchars["atx"])
310310
syn match pandocSetexHeader /^.\+\n[=]\+$/ contains=pandocEmphasis,pandocStrong,pandocNoFormatted,@Spell
311311
syn match pandocSetexHeader /^.\+\n[-]\+$/ contains=pandocEmphasis,pandocStrong,pandocNoFormatted,@Spell

0 commit comments

Comments
 (0)