feat: implement native wiki visualizer for openwiki - #455
Conversation
There was a problem hiding this comment.
The PR introduces an unsanitized marked.parse() → innerHTML pipeline in the wiki reader panel: raw markdown body content (which can originate from external sources) is rendered to HTML and injected into the DOM without DOMPurify or equivalent sanitization, enabling stored XSS.
There was a problem hiding this comment.
The backlink rendering in src/visualize/client.ts interpolates filename-derived node IDs directly into a data-id HTML attribute without escaping, enabling XSS via a crafted wiki filename; the page CSP permits scripts from cdn.jsdelivr.net, amplifying impact to arbitrary script execution.
|
This is sweet. |
|
Awesome, we don't need Obsidian anymore! |
|
This is exactly what is missing when working locally with the generated openwiki! When can we expect a merge for this one? |
|
Ben (@Bennoo) hoping very soon! |
🦋 Changeset detectedLatest commit: 4834590 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Summary
Adds an openwiki visualize command that serves a generated wiki as an interactive node graph with a live-reloading markdown reader.
Tests
Demo
Screen.Recording.2026-07-23.at.8.53.39.PM.mov