Skip to content

Commit 9ea8f60

Browse files
committed
Fixed markdown link problem, starts with english and ends with chinese. fixed #2
1 parent 85dc35a commit 9ea8f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/pangu.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function! PanGuSpacingCore()
110110
silent! %s/\([a-zA-Z0-9!&;=\]\,\.\:\?\$\%\^\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
111111

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

115115
call cursor(b:curline, b:curcol)
116116
endif

0 commit comments

Comments
 (0)