Why do some of these quotes insert an additional quote and some do not?
Here is the code:
Codemirror Try link
import { EditorView} from "codemirror" import { closeBrackets } from '@codemirror/autocomplete' new EditorView({ doc: " 5 % { a < ", extensions: [closeBrackets()], parent: document.body })
For quotes (or other ‘brackets’ where the opening and closing character are the same) is looks at the context around the cursor to determine whether to add a closing character or not. See also CloseBracketsConfig.before.
CloseBracketsConfig.before
Ah perfect! My apologies for missing the documentation! Thanks!