Skip to content

Commit

Permalink
Fixed markdown link problem, starts with english and ends with chinese.
Browse files Browse the repository at this point in the history
fixed #2
  • Loading branch information
hotoo committed Mar 27, 2015
1 parent 85dc35a commit 9ea8f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/pangu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function! PanGuSpacingCore()
silent! %s/\([a-zA-Z0-9!&;=\]\,\.\:\?\$\%\^\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。

" 修复 markdown 链接所使用的标点。
silent! %s/\([^』\]]\+\)[』\]][((]\([^)]\+\)[))]/[\1](\2)/g
silent! %s/[『\[]\([^』\]]\+\)[』\]][((]\([^)]\+\)[))]/[\1](\2)/g

call cursor(b:curline, b:curcol)
endif
Expand Down

0 comments on commit 9ea8f60

Please sign in to comment.