1.0.10
Copy sanitization — new, on by default / 复制净化——新功能,默认开启
English
- Clean clipboard: copying or cutting numbered headings no longer leaks the plugin's invisible marker character (Word Joiner, U+2060) into your clipboard. External apps — WeChat, Notion, Word, email clients, search boxes — now receive plain, clean text.
- No double numbering on paste-back: pasting the same copied text back into your vault (within the same Obsidian session) automatically restores the original markers, so numbering re-flows correctly instead of producing
## 2 1 Heading-style double numbers. - Works everywhere you copy: both the editor and reading view are covered; rich-text copies from reading view keep their formatting, minus the invisible characters.
- Fail-safe by design: every step is synchronous and guarded — if anything is unavailable (e.g. a restricted WebView), the plugin backs off silently and the clipboard behaves exactly as before. Turn it off any time in Settings → General → "Sanitize copied text".
- Privacy: the copied-text mapping used for restore lives in memory only and is never written to disk.
- Known limitation: text that was edited in another app, or pasted back after restarting Obsidian, is treated as new content (it may get freshly numbered on top of its visible numbers — same as pasting any external text).
中文
- 干净的剪贴板:复制 / 剪切带编号的标题时,插件写入的不可见标记字符(Word Joiner,U+2060)不再随剪贴板外泄——微信、Notion、Word、邮件客户端、搜索框收到的都是干净文本。
- 粘贴回不再双重编号:同一 Obsidian 会话内把复制的内容原样粘贴回库里,插件自动还原原始标记,编号照常重排,不会出现
## 2 1 标题式的双重编号。 - 复制路径全覆盖:编辑器与阅读视图都生效;从阅读视图复制的富文本保留格式,仅剥去不可见字符。
- 失败即让路:所有判断同步完成、层层守卫——任一环节不可用(如受限 WebView)即静默退让,剪贴板行为与从前完全一致。可随时在 设置 → 全局设置 → 「复制净化」 关闭。
- 隐私:用于还原的复制内容映射只存在内存中,绝不写入磁盘。
- 已知边界:在外部应用改动过的文本、或重启 Obsidian 后再粘贴回,按新内容处理(其可见序号可能被叠加新编号——与粘贴任何外部文本一致)。