You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, @rrpolanco — confirmed and fixed in #47.
Root cause: the StatusBar word counter was stripping fenced code blocks and inline code spans before splitting on whitespace. Obsidian counts those tokens, so a code-heavy document like yours lost a huge fraction of its words. The 127,260 → 34,608 ratio you saw (~73% loss) is consistent with a doc containing a lot of code.
Verification: I reproduced it locally with a 76-word test note containing two fenced code blocks and two inline-code spans. The buggy build showed 52 words; with the patch it shows 76 (matching a manual hand-count and Obsidian).
@adibhanna The app is still reporting a different word count compared to Obsidian. Obsidian reports 127,260 words but Zennotes counts 82,448. However, the character count matches with Obsidian with 1,385,437.
Activity
adibhanna commentedon May 12, 2026
Thanks for the report, @rrpolanco — confirmed and fixed in #47.
Root cause: the StatusBar word counter was stripping fenced code blocks and inline code spans before splitting on whitespace. Obsidian counts those tokens, so a code-heavy document like yours lost a huge fraction of its words. The 127,260 → 34,608 ratio you saw (~73% loss) is consistent with a doc containing a lot of code.
Verification: I reproduced it locally with a 76-word test note containing two fenced code blocks and two inline-code spans. The buggy build showed 52 words; with the patch it shows 76 (matching a manual hand-count and Obsidian).
The fix will land in the next release.
fix: count words inside code blocks and inline code (#43) (#47)
adibhanna commentedon May 12, 2026
Merged to main in #47 — will ship in the next release. Thanks again for the report, @rrpolanco!
rrpolanco commentedon May 12, 2026
Thanks for shipping this quickly @adibhanna !
rrpolanco commentedon May 13, 2026
@adibhanna The app is still reporting a different word count compared to Obsidian. Obsidian reports 127,260 words but Zennotes counts 82,448. However, the character count matches with Obsidian with
1,385,437.