Repository navigation
Releases
1.10.2
Release 1.10.2: keep fence lines and the cursor line visible
Appearance CSS no longer hides fenced code block rows. A fence row's
backticks reuse span.cm-formatting-code, the same class as inline code, so
font-size: 0 collapsed the ``` as soon as the cursor moved onto a code
line and only the language tag stayed visible. Selectors now exclude
.HyperMD-codeblock-begin and .HyperMD-codeblock-end, so the opening fence,
the code and the closing fence are complete source while the block is
being edited.
This release also carries the 1.10.0 / 1.10.1 work that only existed in the
installed copy: the appearance settings section, reading-mode code block
padding, bundled styles.css, and the removal of the hide-fence-lines option
that compressed fence rows to 5px.
Release assets now include styles.css, so BRAT and manual installs get the
appearance styles too.
1.9.1
Release 1.9.1: stop escaping directives inside inline code
Repair and paste ran the directive rule on the whole line, before
splitting off inline code, so use #include to import got a stray
backslash. Typing did the same the moment the closing backtick landed,
because the check used the cursor position instead of the # itself.
- escapeOutsideInlineCode: run the hash rule inside the parts loop, on
non-code segments only; guard against a segment start being mistaken
for a line start. - handleEditorChange: decide inline-code membership by the position of
the matched #, not the cursor.
1.9.0
Cpp-Input-Guard 1.9.0
重命名版本:插件由 cpp-input-protection 更名为 Cpp-Input-Guard。
变更
- 插件 ID:
cpp-input-protection→cpp-input-guard(id只允许小写字母、数字与连字符,且必须与插件文件夹同名) - 插件显示名:Cpp-Input-Guard
- GitHub 仓库:
Cpp-Input-Protection→Cpp-Input-Guard(旧链接由 GitHub 自动重定向) main.js内的加载提示与 5 处日志前缀同步更名- README 的双语标题、安装路径、BRAT 引用同步更名
从旧版升级
把插件文件夹由 .obsidian/plugins/cpp-input-protection/ 改名为 .obsidian/plugins/cpp-input-guard/,重启 Obsidian 后在「第三方插件」中启用即可 —— 原设置文件 data.json 会随文件夹一起保留,无需重新配置。
无功能变化
main.js 仅名字字符串不同,逻辑与 1.8.2 完全一致。
三个附件均由 GitHub Actions 自动打包并附带构建凭据(build provenance attestation)。
1.8.2
Cpp-Input-Guard 1.8.2(历史版本)
⚠️ 1.9.0 之前的旧版本。当前插件名为 Cpp-Input-Guard(IDcpp-input-guard),请安装 最新版。
把插件显示名改为 cpp-input-protection,使其与当时的插件 ID 和仓库名一致;加载提示与 README 中的相关文字同步更新。1.3.0 的更新日志条目保留当时的历史名称。
无功能变化 — main.js 与 1.8.1 逐字节相同。
1.8.1
Cpp-Input-Guard 1.8.1(历史版本)
⚠️ 1.9.0 之前的旧版本。当前插件名为 Cpp-Input-Guard(IDcpp-input-guard),请安装 最新版。
插件描述改写为英文,与「英文在前」的 README 保持一致。
无功能变化 — main.js 与 1.8.0 逐字节相同。本版存在的唯一目的是让随 release 分发的 manifest.json 携带新的英文描述。
1.8.0
Cpp-Input-Guard 1.8.0(历史版本)
⚠️ 1.9.0 之前的旧版本。当前插件名为 Cpp-Input-Guard(IDcpp-input-guard),请安装 最新版。本页附件内的插件文件夹需命名为cpp-input-protection(该版本的插件 ID)。
阻止 <、[、*、_、== 触发 Markdown 语法,让用 Markdown 记 C/C++ 笔记不再被语法误伤。
本版重点(相对 1.7.0)
#指令词转义范围扩大:命中词表扩到 14 个(include/define/pragma/ifdef/ifndef/endif/elif/else/if/error/warning/line/undef等)。- 触发条件从「仅行首」改为「行首或空白之后」:正文中写到「比如 #include」也能正确转义;而单独的
#、# 标题、#标签一律原样显示,不再被误伤。
完整能力
- 输入即写成:
<→\<,[→\[,*→\*,_→\_,==(仅===触发高亮) - 粘贴即转义:从编辑器粘进来的 C++ 代码自动转义
- 一键修复已有笔记:当前笔记 / 整个库 / 选区,写盘前可选自动备份(
.bak-YYYYMMDD-HHmmss) - 备份与还原:设置面板内直接选笔记、选备份版本还原
- 代码块与行内代码自动跳过;正常链接与双链保留
- 禁用斜体与下划线斜体(行首「
*加空格」仍为列表圆点);反斜杠按字面显示
三个附件均由 GitHub Actions 自动打包并附带构建凭据(build provenance attestation)。