When you change the code snippet lang from original to something else it breaks

Created on 14 October 2023, 9 months ago
Updated 16 October 2023, 9 months ago

Problem/Motivation

Works fine if just add single code block, but if you change the code block it appears to keep the language and then the highlighjs cdn js fails with 404.

for example "css c plaintext"
https://unpkg.com/@highlightjs/cdn-assets@11.8.0/es/languages/css%20c%20plaintext.min.js

πŸ› Bug report
Status

Closed: works as designed

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom zarexogre

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @zarexogre
  • Status changed to Closed: works as designed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States nmangold United States

    The language, css c plaintext, is not a valid language. Therefore, no Highlight.js language library exists that matches that language. You need to edit the source and remove the incorrect languages, leaving only the one language you want to be styled.

    Incorrect languages that remain when switching the language is an issue with CKEditor 5. Not this module. This module only detects the languages, and applies the stylesheet from Highlight.js.

Production build 0.69.0 2024