LearnNewsExamplesServices
Frontmatter
id8920
titleFeat: Implement Neo.component.markdown.VDom (VDOM-Native Parsing)
stateOpen
labels
aifeature
assignees[]
createdAtJan 31, 2026, 3:12 PM
updatedAtJan 31, 2026, 3:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/8920
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[ ] 8921 Feat: Implement Neo.ai.Chat (Reference UI)

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

Openaifeature
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