Frontmatter
| id | 7788 |
| title | Epic: Unify highlight.js architecture for Browser and SSR |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Nov 18, 2025, 10:24 AM |
| updatedAt | Nov 18, 2025, 9:07 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7788 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | 7791 Refactor ContentComponent to use new highlight.js utilities |
| subIssuesCompleted | 1 |
| subIssuesTotal | 1 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 18, 2025, 9:07 PM |
Epic: Unify highlight.js architecture for Browser and SSR
tobiu cross-referenced by #7789 on Nov 18, 2025, 10:44 AM
tobiu assigned to @tobiu on Nov 18, 2025, 10:44 AM
tobiu added sub-issue #7791 on Nov 18, 2025, 11:13 AM
tobiu changed title from Create a node-compatible highlight.js utility for SSR to Epic: Unify highlight.js architecture for Browser and SSR on Nov 18, 2025, 11:21 AM
tobiu closed this issue on Nov 18, 2025, 9:07 PM
Our goal is to unify the code highlighting logic across the entire platform, making it work seamlessly for both client-side rendering (in the browser) and server-side rendering (in Node.js). This will allow us to remove the dependency on the main-thread addon and simplify the architecture.
The core challenge is that the stock npm package is a CommonJS module, which is incompatible with the Neo.mjs zero-builds development environment in the browser.
The Plan
This epic will be achieved by completing the following sub-tasks: