You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when users add empty backticks without a language specified:
` ` `
blah
` ` `
They currently recieve an error boundary because Error: No CodeBlockEditor registered for language=null meta=null. Perhaps there could be a defaultCodeBlockEditor just like there's a defaultCodeBlockLanguage?
I imagine this would also remove the need to specify a large object of codeBlockLanguages if I want to use the codeMirrorPlugin for everything.
I had a go at the following as per the discussion in #95 (comment), but CodeMirrorEditor isn't exported at the moment so this doesn't work:
I'm currently running the code block and code mirror plugins as follows:
But when users add empty backticks without a language specified:
They currently recieve an error boundary because
Error: No CodeBlockEditor registered for language=null meta=null
. Perhaps there could be adefaultCodeBlockEditor
just like there's adefaultCodeBlockLanguage
?I imagine this would also remove the need to specify a large object of
codeBlockLanguages
if I want to use thecodeMirrorPlugin
for everything.I had a go at the following as per the discussion in #95 (comment), but
CodeMirrorEditor
isn't exported at the moment so this doesn't work:The text was updated successfully, but these errors were encountered: