How to disable auto highlighting in codeBlockLowlight? #2121
Answered
by
philippkuehn
cadars
asked this question in
Questions & Help
-
I would like to disable the auto highlighting, unless a language is explicitly specified with This is my setup, I'm confused about what syntax to use to disable lowlight.HighlightAuto() const editor = useEditor({
extensions: [
StarterKit.configure({
codeBlock: false,
}),
CodeBlockLowlight.configure({
lowlight,
}),
],
}); Thanks for your time! |
Beta Was this translation helpful? Give feedback.
Answered by
philippkuehn
Nov 5, 2021
Replies: 1 comment 1 reply
-
I’ve added a CodeBlockLowlight.configure({
defaultLanguage: 'plaintext',
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cadars
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’ve added a
defaultLanguage
option to theCodeBlockLowlight
extension.