From ab338a9c7f8faa88f80166afaa1dbcdb3f0613a5 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 14 Nov 2023 12:02:55 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20register=20MDX=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is now builtin to Monaco editor. --- examples/demo/src/index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/demo/src/index.ts b/examples/demo/src/index.ts index a58e5b85..654f722b 100644 --- a/examples/demo/src/index.ts +++ b/examples/demo/src/index.ts @@ -176,12 +176,6 @@ function getModel(): monaco.editor.ITextModel { } } -monaco.languages.register({ - id: 'mdx', - extensions: ['.mdx'], - aliases: ['MDX', 'mdx'] -}) - const theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'vs-dark' : 'vs-light' const ed = monaco.editor.create(document.getElementById('editor')!, { automaticLayout: true,