自动整理中文排版:在中英文之间、中文与数字之间补空格,清理中文标点前后的多余空格。
Automatic Chinese typography for Obsidian: inserts spaces between CJK and Latin text (and digits), and tidies spacing around Chinese punctuation.
Code blocks, inline code, URLs, Markdown link targets, wikilinks and HTML tags are skipped. 自动跳过代码块、行内代码、URL、Markdown 链接地址、Wiki 链接与 HTML 标签。
main.js and manifest.json into <vault>/.obsidian/plugins/pangu-cn/, restart Obsidian, then enable the plugin in "Community plugins". 把 main.js、manifest.json 放入 <vault>/.obsidian/plugins/pangu-cn/,重启 Obsidian 后在「第三方插件」中启用。Ctrl/Cmd+P. 启用插件后,Ctrl/Cmd+P 打开命令面板。使用Obsidian写Markdown笔记,共3个文件
becomes / 变为
使用 Obsidian 写 Markdown 笔记,共 3 个文件
Settings → Community plugins → Pangu CN / 设置 → 第三方插件 → Pangu CN:
| Option / 选项 | Default / 默认 | Description / 说明 |
|---|---|---|
| Space between CJK and Latin / 中英文之间补空格 | on / 开 | core feature / 核心功能 |
| Half-width to full-width punctuation / 半角标点转全角 | off / 关 | aggressive, enable if needed / 较激进,按需开启 |
| Auto-format on paste / 粘贴时自动排版 | on / 开 | handy for web clippings / 从网页剪藏时很实用 |
MIT