Throw Error when the language is core
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior using the linked DeepSeek example and compare it with other invalid language names in Prism. Trace the language-name handling from the relevant entry point, then verify that the handling of "core" and names beginning with it matches the intended behavior without regressing other invalid names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100