Skip to content

Commit

Permalink
Merge pull request #22 from martinolsen/patch-1
Browse files Browse the repository at this point in the history
allow link escape
  • Loading branch information
plasticboy committed Mar 27, 2012
2 parents c560ce7 + 2696640 commit 70ca17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/mkd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ syn region htmlBold start=/\\\@<!\(^\|\A\)\@=_\@<!___\@!/ end=/\\\@<
syn region htmlItalic start=/\\\@<!\(^\|\A\)\@=_\@<!__\@!/ end=/\\\@<!_\@<!__\@!\($\|\A\)\@=/ contains=htmlBold,@Spell

" [link](URL) | [link][id] | [link][]
syn region mkdLink matchgroup=mkdDelimiter start="\!\?\[" end="\]\ze\s*[[(]" contains=@Spell nextgroup=mkdURL,mkdID skipwhite
syn region mkdLink matchgroup=mkdDelimiter start="[^\\]\!\?\[" end="\]\ze\s*[[(]" contains=@Spell nextgroup=mkdURL,mkdID skipwhite
syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained
syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained
" mkd inline links: protocol optional user:pass@ sub/domain .com, .co.uk, etc optional port path/querystring/hash fragment
Expand Down

1 comment on commit 70ca17d

@rogerkeays
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch broken link with ids in them like this one.

This file is 389 lines long. Could be something preceding the broken links causing the problem.

Please sign in to comment.