Repository navigation
Native Notes 2.4.1
Native Notes 2.4.1
Keeps the built-in highlighter within Obsidian Sync Standard’s 5 MB per-file limit. Version 2.4.0 bundled readable grammar data in a 9.28 MB JavaScript file, which the community directory correctly flagged as too large for that plan.
This release compresses only the bundled grammar JSON during the build and decodes it locally when a language is loaded. The JavaScript remains readable, all 197 language definitions remain available, and the full third-party notices stay inside the release asset. No network requests, separate language downloads, executable-code compression, or note changes are involved.
The final main.js is 3,774,932 bytes (3.77 MB). The build now rejects release assets above 5,000,000 bytes. Grammar round-trip tests and an offline browser fixture check the production decoder and preserve the original syntax definitions. This is a packaging change; code settings, frames, editable headers, and the 2.4.0 feature set remain the same.
Code Copy and profile Copy remain explicit, intentional clipboard writes. The plugin never reads the clipboard. See the code highlighting guide and validation record.
Validation on Node.js 24.22.1 passes 334 automated tests, lint, production build, portable package verification, and a full dependency audit with zero reported vulnerabilities. The installed macOS Obsidian 1.14.5 build successfully decoded TypeScript, C++, and Python and rendered a titled frame with line numbers. The patch installation preserved the note hashes and saved preferences checked immediately before it, and added no developer errors. No physical Windows/Linux or iPhone/iPad testing is claimed.