ngx-highlightjs
ngx-highlightjs copied to clipboard
Code is not rendered in SSR
Reproduction
Steps to reproduce:
- ng new --ssr
- Importing Core Library and Languages as it is described here
- Create new component and add pre tag
<pre > <code [highlight]="enableServerSideRenderingCode" language="xml"></code> </pre>
- Execute
npm run build
- Check dist/<project_name>/browser/<page_name>/index.html
- Code block is not rendered
Expected Behavior
Highlighting is working for SSR
Actual Behavior
Code tags are empty
Environment
- Angular: 17.0.0
- ngx-highlightjs: 11.0.0-beta.1
- Browser(s): n/a
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
The demo app is running in SSR mode, The code is highlighted in runtime in the browser not on the server