LearnNewsExamplesServices
Frontmatter
id8075
titleOptimize Markdown Component Rendering
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 9, 2025, 11:54 PM
updatedAtDec 10, 2025, 12:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/8075
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 10, 2025, 12:28 AM

Optimize Markdown Component Rendering

Closed v11.17.0 enhancementai
tobiu
tobiu commented on Dec 9, 2025, 11:54 PM

Replace the brittle setTimeout logic in src/component/Markdown.mjs with a VDOM-synchronized approach. Current implementation uses an arbitrary timeout (100ms/150ms) to wait for VDOM updates after inserting lab divs.

Proposed solution: Use await me.set({html: me.insertLabDivs(html)}) which returns me.promiseUpdate(), ensuring the VDOM update cycle is complete. Add a small buffer await me.timeout(10) to ensure rendering in the next frame.

tobiu added the enhancement label on Dec 9, 2025, 11:54 PM
tobiu added the ai label on Dec 9, 2025, 11:54 PM
tobiu assigned to @tobiu on Dec 9, 2025, 11:59 PM
tobiu referenced in commit 7d1de7a - "Optimize Markdown Component Rendering #8075" on Dec 10, 2025, 12:00 AM
tobiu closed this issue on Dec 10, 2025, 12:28 AM