Hi there. I recently discovered that CodeMirror is behaving differently when running from a CDN (tested with jsDelivr’s ESM CDN). When run via the normal NPM installation and imports, the text is tokenized just fine. When run from the CDN, the text is not tokenized (I used Markdown for this example).
The CDN version is enabled in the linked demo, but you can see the normal installation by swapping the commented import statements.