Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting not working #4269

Open
szlezakbartosz opened this issue Jun 24, 2024 · 0 comments
Open

Syntax highlighting not working #4269

szlezakbartosz opened this issue Jun 24, 2024 · 0 comments

Comments

@szlezakbartosz
Copy link

The syntax highlighting feature seems to be broken when using Quill in an Angular project (no wrappers, pure Quill.js):

Steps for Reproduction

  1. Visit https://stackblitz.com/edit/stackblitz-starters-6ms8v9?file=src%2Fmain.ts
  2. Create code-block, put some code in it, choose a language

It seems like the highlight.js function is not called at all as when inspecting the content there are no hljs css classes applied to the code-blocks:
image

Expected behavior:
Code syntax should be highlighted.

Actual behavior:
Code syntax is not highlighted.

Platforms:
Chrome 126.0.6478.114, Windows 10, Angular 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant