-
-
Notifications
You must be signed in to change notification settings - Fork 607
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When inserting a code block using triple backticks (```), syntax highlighting doesn't work based on the defaultLanguage setting.

To Reproduce
Steps to reproduce the behavior:
- Go to https://www.blocknotejs.org/examples/theming/code-block
- Type ``` to create a code block
- Enter
const x = 3 * 4;
- Syntax highlighting doesn't work (even though JavaScript is selected in the dropdown)
- Select a different language, and syntax highlighting starts working
Expected behavior
- Syntax highlighting should work based on the defaultLanguage setting
However, it works correctly when inserting code blocks through the Suggestion Menu or when pasting markdown that contains code blocks with language specification.
Misc
- Node version:
- Package manager:
- Browser: Chrome 140.0.7339.133
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working