Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syntax/pandoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@<!\(^\(\s
" Links: {{{2

" Base: {{{3
syn region pandocReferenceLabel matchgroup=pandocOperator start=/!\{,1}\\\@<!\^\@<!\[/ skip=/\(\\\@<!\]\]\@=\|`[^`]*`\)/ end=/\\\@<!\]/ keepend display
syn region pandocReferenceLabel matchgroup=pandocOperator start=/!\{,1}\\\@<!\^\@<!\[/ skip=/\(\\\@<!\]\]\@=\|`[^`]*`\)/ end=/\\\@<!\]/ keepend display contains=pandocNoFormatted
if g:pandoc#syntax#conceal#urls == 1
syn region pandocReferenceURL matchgroup=pandocOperator start=/\]\@1<=(/ end=/)/ keepend conceal
else
Expand Down
8 changes: 8 additions & 0 deletions tests/refs.pdc
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ unit impulse (Dirac delta function) through a linear system.
# code in ref with more code in same line

1. [`link`](link) and more text `with code` and a [`link`](link)

# inline code styles in link labels

[`single backticks`](link)

[``double ` backticks``](link)

[`code with attributes`{.haskell}](link)
Loading