Acceptance Criteria
@refrakt-md/highlight is added as a dependency of @refrakt-md/plancreateHighlightTransform() is applied after identity transform in the pipeline- Code fences with language annotations render with syntax highlighting
- Highlight CSS is concatenated with the plan theme CSS
- Light/dark mode works via CSS variables (inherited from plan theme)
- Common plan content languages work:
bash, json, typescript, markdown - Build output includes highlighted code (no client-side JS required)
Approach
After serialization and identity transform, run the highlight transform on the tree before passing it to renderFullPage(). The highlight transform exposes a .css property — append this to the theme stylesheet.
References
- SPEC-014 (Plan Site via HTML Adapter)
- WORK-039 (the refactored pipeline this plugs into)