Skip to content

How to support code blocks without syntax highlighting? #196

Closed Answered by kurtmkurtm
adaboese asked this question in Q&A
Discussion options

You must be logged in to vote

If you are using the codeMirrorPlugin, you could try adding an empty string to the languages.
This fixed the same error for me

codeBlockPlugin(),
codeMirrorPlugin({
  codeBlockLanguages: {
    js: "JavaScript",
    txt: "text",
    "": "text",
  },
}),

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by petyosi
Comment options

You must be logged in to vote
2 replies
@petyosi
Comment options

@gopal-virtual
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #195 on November 23, 2023 16:39.