Skip to content

Switch to Highlight.JS from PrismJS - Discuss #44

@FlipperPA

Description

@FlipperPA

PrismJS no longer seems to be maintained. There are also some underlying issues with CSS namespacing that conflict with Wagtail's admin, particularly around the CSS class named comment.

I'm considering switching to highlight.js as our underlying syntax highlighting library.

Pros:

  • Resolves namespace conflicts
  • Actively maintained
  • More language support
  • More theme choice

Cons:

  • Current themes will no longer be supported
  • It's a big change, and other backwards incompatibilities might be found.

I wanted to open this issue for discussion to our users before moving in this direction. Thoughts?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions