Skip to content

Commit 95a62c4

Browse files
committed
Fix reference links
Currently this conflicts with the definition of inline footnotes. This makes sure the brackets in reference links are not preceded by `^`, thereby avoiding the conflict.
1 parent eaf2507 commit 95a62c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/pandoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@<!\(^\(\s
246246
" Links: {{{2
247247
"
248248
" Base: {{{3
249-
syn region pandocReferenceLabel matchgroup=pandocOperator start=/!\{,1}\\\@<!\[/ skip=/\(\\\@<!\]\]\@=\|`.*\\\@<!].*`\)/ end=/\\\@<!\]/ keepend display
249+
syn region pandocReferenceLabel matchgroup=pandocOperator start=/!\{,1}\\\@<!\^\@<!\[/ skip=/\(\\\@<!\]\]\@=\|`.*\\\@<!].*`\)/ end=/\\\@<!\]/ keepend display
250250
if g:pandoc#syntax#conceal#urls == 1
251251
syn region pandocReferenceURL matchgroup=pandocOperator start=/\]\@1<=(/ end=/)/ keepend conceal
252252
else

0 commit comments

Comments
 (0)