- Add whitespace between Chinese and English
- Add whitespace between Chinese and
, \ . : ; ? ! after Chinese characters to
() around Chinese characters to
 <> ` remains untouched
。(at least 3) to
- Truncate more than three continuous
？ ！ to only three ones.
- Truncate continuous
。，；：、“”『』〖〗《》 to only one.
Note that all functions are based on Regex, it cannot do brace match, thus it lacks the ability to handle very complex cases, but it's enough for normal use. Maybe improve in the future.
Ctrl+Shift+P -> Pangu Format
Right Click in editor (when open markdown file) -> Pangu Format
||Auto apply Pangu format on save
Thanks to pangu.vim, writing4cn and pangu.