Skip to content

Commit cd7d0c2

Browse files
committed
Fixed links before and after spaces, for images
1 parent 81541dc commit cd7d0c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/pangu.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ function! PanGuSpacingCore()
107107
silent! %s/\([a-zA-Z0-9!&;=\]\,\.\:\?\$\%\^\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
108108

109109
" 修复 markdown 链接所使用的标点。
110-
silent! %s/\s*[『\[]\([^』\]]\+\)[』\]][『\[]\([^』\]]\+\)[』\]]\s*/ [\1][\2] /g " 参考链接
111-
silent! %s/\s*[『\[]\([^』\]]\+\)[』\]][((]\([^』)]\+\)[))]\s*/ [\1](\2) /g " 内联链接
110+
silent! %s/[『\[]\([^』\]]\+\)[』\]][『\[]\([^』\]]\+\)[』\]]/[\1][\2]/g " 参考链接
111+
silent! %s/[『\[]\([^』\]]\+\)[』\]][((]\([^』)]\+\)[))]/[\1](\2)/g " 内联链接
112112

113113
silent! %s/^ \[/[/
114114
silent! %s/\s\+$//

0 commit comments

Comments
 (0)