Skip to content

Commit 6894a3b

Browse files
committed
Fixed markdown text style like strong and emphasis.
1 parent dcd37e1 commit 6894a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/pangu.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function! PanGuSpaceCore()
106106
silent! %s/@/@/g
107107

108108
" 汉字与其前后的英文字符、英文标点、数字间增加空白。
109-
silent! %s/\([\u4e00-\u9fa5\u3040-\u30FF]\)\([a-zA-Z0-9@&=_`\[\$\%\^\*\-\+(\/\\]\)/\1 \2/g " 汉字在前。
110-
silent! %s/\([a-zA-Z0-9!~&;=_`\]\,\.\:\?\$\%\^\*\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
109+
silent! %s/\([\u4e00-\u9fa5\u3040-\u30FF]\)\([a-zA-Z0-9@&=`\[\$\%\^\-\+(\/\\]\)/\1 \2/g " 汉字在前。
110+
silent! %s/\([a-zA-Z0-9!&;=`\]\,\.\:\?\$\%\^\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
111111

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

0 commit comments

Comments
 (0)