Frontmatter
| id | 8848 |
| title | Propagate Theme to Embedded Markdown Components |
| state | Closed |
| labels | bugdesign |
| assignees | tobiu |
| createdAt | Jan 21, 2026, 12:57 PM |
| updatedAt | Jan 21, 2026, 1:06 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8848 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8727 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 21, 2026, 1:06 PM |
Propagate Theme to Embedded Markdown Components
tobiu added parent issue #8727 on Jan 21, 2026, 12:58 PM
tobiu assigned to @tobiu on Jan 21, 2026, 12:58 PM

tobiu
Jan 21, 2026, 1:06 PM
Input from Gemini 3 Pro:
✦ I have fixed the theme propagation issue for embedded Markdown components.
Changes:
- Updated
src/component/Markdown.mjs: Modified therendermethod to includetheme: me.themein thebaseConfigsobject.Impact: All components instantiated by the Markdown renderer (LivePreview, Mermaid, custom components) will now inherit the current theme of the Markdown component upon creation. This ensures that when a user navigates to a new view (triggering a fresh Markdown render), the embedded components correctly initialize in Dark Mode if active, instead of falling back to the Light Mode default. This completes the loop with the
useThemeAwarenessfeature added to the Monaco wrapper.
tobiu closed this issue on Jan 21, 2026, 1:06 PM
Ensure components embedded in Markdown (LivePreview, Mermaid, etc.) inherit the correct theme on initialization.
Problem: When
Neo.component.Markdownrenders content, it spawns child components (likeLivePreview) without passing the currentthemeconfig. This causes them to default to the system default (usually Light), even if the Markdown component is in Dark mode.Solution: Update
src/component/Markdown.mjs'srendermethod to includetheme: me.themein thebaseConfigsobject passed toNeo.create.