Skip to content

xlthu/pangu-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pangu-Markdown

Function

  1. Add whitespace between Chinese and English
  2. Add whitespace between Chinese and [ ]
  3. , \ . : ; ? ! after Chinese characters to ,、。:;?!
  4. () around Chinese characters to ()
    • [] <> ` remains untouched
  5. Continuous (at least 3) to ......, e.g. to ......
  6. Truncate more than three continuous ? ! to only three ones.
  7. 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.

Usage

Ctrl+Shift+P -> Pangu Format

Or

Right Click in editor (when open markdown file) -> Pangu Format

Setting

Name Description
pangu.auto_format_on_save Auto apply Pangu format on save

Thanks

Thanks to pangu.vim, writing4cn and pangu.

About

Pangu Markdown Plugin For VSCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published