- Add whitespace between Chinese and English
- Add whitespace between Chinese and
[ ]
, \ . : ; ? !
after Chinese characters to,、。:;?!
()
around Chinese characters to()
[] <> `
remains untouched
- Continuous
。
(at least 3) to......
, e.g.。
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
Or
Right Click in editor (when open markdown file) -> Pangu Format
Name | Description |
---|---|
pangu.auto_format_on_save | Auto apply Pangu format on save |
Thanks to pangu.vim, writing4cn and pangu.