Frontmatter
| id | 8075 |
| title | Optimize Markdown Component Rendering |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 9, 2025, 11:54 PM |
| updatedAt | Dec 10, 2025, 12:28 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8075 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 10, 2025, 12:28 AM |
Replace the brittle
setTimeoutlogic insrc/component/Markdown.mjswith 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 returnsme.promiseUpdate(), ensuring the VDOM update cycle is complete. Add a small bufferawait me.timeout(10)to ensure rendering in the next frame.