Skip to content

Codemirror loading fails in certain circumstances due to innerCodeElem reference #4917

Closed
@ssddanbrown

Description

@ssddanbrown

Error thrown when viewing page:

Uncaught (in promise) TypeError: innerCodeElem is null
    highlightElem index.mjs:58
    highlight index.mjs:93
    setup page-display.js:38
    promise callback*setup page-display.js:38
    initComponent components.js:95
    init components.js:122
    <anonymous> app.js:37

Can reproduce with the following in the MD editor: (ignoring backslashes)

\```
   blank format
\```

Reported by Reddit user BaccanoMob here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions