Repository navigation
v2.4.4 — Knowledge Ingestion, Security Hardening & Code-Block Plugins
Turn pasted text and existing notes into reviewed knowledge notes, with every change shown before it's written. This release also hardens how note content is rendered, lets plugins draw their own code blocks on desktop and mobile, and stops sync from silently overwriting unsaved edits.
🧠 Knowledge ingestion
- New Knowledge: Ingest Source command in the command palette. Paste text or Markdown, give it a title, choose the destination vault and folder, and add an optional instruction.
- Start from existing material too: right-click a note in the sidebar or editor and choose Analyze for Knowledge Base, or select text and choose Add Selection to Knowledge Base.
- Four modes: add as a new note, merge into the most closely related existing note, research mode (summary and source kept together), or study material only (summary plus flashcards).
- Analysis runs locally. No vault content is sent to an external AI provider.
- A Knowledge Review screen shows everything before anything is written: the proposed note or a line diff for an update, related-note evidence, and individually selectable wiki links and editable flashcards. Accept all safe changes picks only the high-confidence suggestions.
- Writes are protected: Noteriv re-checks the note immediately before replacing it, takes a recovery snapshot first, writes atomically, and never overwrites a file that appears at a new note's destination.
- New notes record where they came from in
noteriv-source-*frontmatter.
💾 Safer saving
- Saving now checks whether the note changed on disk since you opened it. If sync, the MCP server, or another app changes a note you're editing, autosave pauses for that tab and asks before overwriting the other version.
- Noteriv's own file writes (editor, Git sync, folder and WebDAV sync, web clipper) no longer interleave, and WebDAV sync no longer overwrites a file that changed locally while it was downloading.
🛡️ Security (#29 — thanks @supersnafu!)
- HTML inside notes is now sanitized before it's displayed in the editor, table rows, and slide presentations, so markup arriving through sync, the web clipper, or the MCP server can't run scripts.
javascript:links are blocked. - Mermaid diagrams render in strict mode, so a diagram's
clickdirective can't run JavaScript. - The app window can only read and write inside your registered vaults and the files or folders you pick in a dialog. Noteriv's own data folder, including stored credentials, is always off-limits.
- Search, file listing, and vault stats skip symlinks that point outside the vault.
- Heads-up: a file opened from outside your vaults needs to be opened again through the file dialog after restarting Noteriv.
🧩 Code-block plugins (#37, #38 — thanks @covuaduongsinh!)
- Plugins can now render their own fenced code blocks with
api.markdown.registerCodeBlockProcessor/unregisterCodeBlockProcessor.dataviewandmermaidstay built in. Open notes re-render as soon as a plugin is turned on or off. - New example plugin in
desktop/examples/plugins/chessboarddraws chess diagrams from FEN, with square highlights and arrows. Piece art is adapted from chessnut-pieces (Apache-2.0). - Mobile: enabled plugins that list their languages in the new
codeBlockLanguagesmanifest field now render those blocks in the phone app. Each block runs in its own isolated WebView with a reduced API (api.markdownandapi.app; no vault, editor, or event access). - Plugin-rendered blocks still export as plain code in Publish and PDF export.
api.app.versionnow reports 1.3.0.
📎 Other
npm run devnow works on Windows; the WebKitGTK workaround is applied only on Linux (#37).- Standalone Android debug APKs now include the JavaScript bundle, so they start without a Metro server instead of hanging on the splash screen.
npm run android/npm run iosnow build natively withexpo run:*(#38). - Building the desktop app now requires Node.js 20.19+. Added
npm run typecheckandnpm run test(Vitest). - Bumped the desktop app version to 2.4.4 across package.json, Cargo.toml, tauri.conf.json, and their lockfiles.