Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: default to syntax highlighting in markdown when Editor is not ready (#4929)

Myles Scolnick4f935dbe1a21
diff --git a/frontend/src/core/codemirror/language/languages/markdown.ts b/frontend/src/core/codemirror/language/languages/markdown.ts
index bbca0f9a14..6340baf81b 100644
--- a/frontend/src/core/codemirror/language/languages/markdown.ts
+++ b/frontend/src/core/codemirror/language/languages/markdown.ts
@@ -209,6 +209,10 @@ export class MarkdownLanguageAdapter
// Only activate completions for f-strings
const isFStringActive = () => {
+ if (!view) {
+ return true;
+ }
+
const metadata = view?.state.field(languageMetadataField);
if (metadata === undefined) {
return false;