and got two issues.
Here is the initialization code:
Markdown codeblocks not working
When inputting a codeblock, it fails to highlight:
CodeMirror plugin crashed: TypeError: Cannot read property 'from' of undefined
at HighlightBuilder.highlightRange (index.js:455)
at HighlightBuilder.highlightRange (index.js:483)
at highlightTreeRange (index.js:492)
at TreeHighlighter.buildDeco (index.js:391)
at TreeHighlighter.update (index.js:383)
at PluginInstance.update (index.js:1626)
at EditorView.updatePlugins (index.js:5542)
at EditorView.update (index.js:5471)
at EditorView._dispatch (index.js:5385)
at EditorView.dispatch (index.js:5439)
Language.parseString is no longer available
I implemented a runmode function but it is broken now because parseString does not exist.
How can I upgrade my code?
I couldn’t reproduce the exact error you describe for Markdown code blocks (your setup example is incomplete, so I couldn’t copy that). But I did run into another mixed-language bug, which should be fixed in @lezer/common 0.15.1. Maybe it was related.
Seems I forgot to add a release note about parseString being removed. You can now just do language.parser.parse(string) instead.