LearnNewsExamplesServices
Frontmatter
id8920
titleFeat: Implement Neo.component.markdown.VDom (VDOM-Native Parsing)
stateClosed
labels
staleaifeature
assignees[]
createdAtJan 31, 2026, 3:12 PM
updatedAtMay 16, 2026, 6:46 AM
githubUrlhttps://github.com/neomjs/neo/issues/8920
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[x] 8921 Feat: Implement Neo.ai.Chat (Reference UI)
closedAtMay 16, 2026, 6:46 AM

Feat: Implement Neo.component.markdown.VDom (VDOM-Native Parsing)

Closedstaleaifeature
tobiu
tobiu commented on Jan 31, 2026, 3:12 PM

Create a new Markdown component that compiles markdown source directly into a Neo.mjs VDOM tree, bypassing innerHTML and the marked library.

Architecture:

  • Input: Markdown string (or stream).
  • Output: Pure VDOM Tree (e.g., {tag: 'p', cn: [{vtype: 'text', html: 'Hello'}]}).
  • Parser: A lightweight, custom parser running in the App Worker.

Benefits:

  1. Delta Updates: Enables fine-grained DOM patching for streaming content (LLM responses).
  2. Security: Eliminates XSS risks associated with innerHTML.
  3. Performance: Avoids full DOM trashing on every character append.
tobiu added the ai label on Jan 31, 2026, 3:12 PM
tobiu added the feature label on Jan 31, 2026, 3:12 PM
tobiu marked this issue as being blocked by #8921 on Jan 31, 2026, 3:13 PM
tobiu removed the block by #8921 on Jan 31, 2026, 3:15 PM
tobiu marked this issue as blocking #8921 on Jan 31, 2026, 3:16 PM