Display a character count badge at the bottom-right corner of every code block in Obsidian.
在 Obsidian 中每个代码块的右下角显示字符数量统计。
BRAT: Add a beta plugin for testingpower-ioi/code-block-char-countmain.js, manifest.json, styles.css from the latest release<vault>/.obsidian/plugins/code-block-char-count/Settings → Community pluginsNo configuration needed. Open any note with a code block and you will see a small badge like 32 字符 at its bottom-right corner.
无需配置。打开任意包含代码块的笔记,右下角即可看到如 32 字符 的小角标。
ViewPlugin scans the editor syntax tree (HyperMD-codeblock line groups) and attaches a line decoration to the last line of each code block.registerMarkdownPostProcessor hook appends the badge to each rendered <pre> element.MIT