Skip to content

Commit

Permalink
Don’t register MDX language
Browse files Browse the repository at this point in the history
This is now builtin to Monaco editor.
  • Loading branch information
remcohaszing committed Nov 14, 2023
1 parent fe64729 commit ab338a9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ab338a9

Please sign in to comment.