ngx-highlightjs icon indicating copy to clipboard operation
ngx-highlightjs copied to clipboard

Code is not rendered in SSR

Open hartmannm opened this issue 9 months ago • 1 comments

Reproduction

Steps to reproduce:

  1. ng new --ssr
  2. Importing Core Library and Languages as it is described here
  3. Create new component and add pre tag <pre > <code [highlight]="enableServerSideRenderingCode" language="xml"></code> </pre>
  4. Execute npm run build
  5. Check dist/<project_name>/browser/<page_name>/index.html
  6. 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

hartmannm avatar May 10 '24 10:05 hartmannm

The demo app is running in SSR mode, The code is highlighted in runtime in the browser not on the server

MurhafSousli avatar May 12 '24 16:05 MurhafSousli