Skip to content

Throw Error when the language is core #4085

@yeying-xingchen

Description

@yeying-xingchen

Information:

  • Prism version: latest
  • Plugins: none
  • Environment: Microsoft Edge 147.0.3912.86 x64

Description
Prism throws an error only when the language of a code block is set to core or a string beginning with core (e.g., core-deepseek).
Other invalid language names do not trigger any error.

Example
An example which reproduces the bug. This can be a link to a website, a JSFiddle, an attached example project, etc.

https://chat.deepseek.com/a/chat/s/c6c0de9e-cb3d-4fcb-88c2-af0266112221
You also can try it at:
https://chat.deepseek.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions