File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,14 +220,14 @@ syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@<!\(^\(\s
220
220
" Links: {{{1
221
221
"
222
222
" Base: {{{2
223
- syn region pandocReferenceLabel matchgroup =Operator start =/ !\{ ,1}\[ / skip =/ \]\]\@ =/ end =/ \] / keepend display
223
+ syn region pandocReferenceLabel matchgroup =Operator start =/ !\{ ,1}\[ / skip =/ \(\ ]\]\@ =\| `.*].*` \) / end =/ \] / keepend display
224
224
if g: pandoc #syntax #conceal#urls == 1
225
225
syn region pandocReferenceURL matchgroup =Operator start =/ \]\@ 1<=(/ end =/ )/ keepend display conceal
226
226
else
227
227
syn region pandocReferenceURL matchgroup =Operator start =/ \]\@ 1<=(/ end =/ )/ keepend display
228
228
endif
229
229
" let's not consider "a [label] a" as a label, remove formatting - Note: breaks implicit links
230
- syn match pandocNoLabel / \]\@ 1<!\s * \ [ [^\[\] ]\{ -}\]\s * [\[ (]\@ !/ contains =pandocPCite
230
+ syn match pandocNoLabel / \]\@ 1<!\s\+\ [ [^\[\] ]\{ -}\]\s\+ [\[ (]\@ !/ contains =pandocPCite
231
231
syn match pandocLinkTip / \s *".\{ -}"/ contained containedin =pandocReferenceURL contains =@Spell display
232
232
call s: WithConceal (" image" , ' syn match pandocImageIcon /!\[\@=/ display' , ' conceal cchar=' . s: cchars [" image" ])
233
233
" }}}
You can’t perform that action at this time.
0 commit comments