Skip to content

Commit e93a232

Browse files
mdx-editor/editor#491 try disabling markdown
shortcut
1 parent 8d8ce1d commit e93a232

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

frontend/src/component/form/field/MarkdownField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
linkPlugin,
1515
listsPlugin,
1616
ListsToggle,
17-
markdownShortcutPlugin,
1817
MDXEditor,
1918
MDXEditorMethods,
2019
quotePlugin,
@@ -127,8 +126,9 @@ export const MarkdownField = (props: MDBodyFieldProps) => {
127126
codeBlockPlugin({ defaultCodeBlockLanguage: 'txt' }),
128127
directivesPlugin({
129128
directiveDescriptors: [AdmonitionDirectiveDescriptor]
130-
}),
131-
markdownShortcutPlugin()
129+
})
130+
// https://github.com/mdx-editor/editor/issues/491
131+
// markdownShortcutPlugin()
132132
]}
133133
onError={onError}
134134
onChange={(v) => {

frontend/vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="vite/client" />
22
import { sentryVitePlugin } from '@sentry/vite-plugin';
3-
import { TanStackRouterVite } from '@tanstack/router-vite-plugin';
3+
import { tanstackRouter } from '@tanstack/router-vite-plugin';
44
import react from '@vitejs/plugin-react-swc';
55
import { defineConfig } from 'vite';
66
import { createHtmlPlugin } from 'vite-plugin-html';
@@ -25,7 +25,6 @@ export default defineConfig({
2525
'nice-modal-react',
2626
'fontsource/roboto',
2727
'mdxeditor/editor',
28-
'prism-react-renderer',
2928
'mui-markdown',
3029
'date-fns',
3130
'mui/x-charts',
@@ -128,7 +127,7 @@ export default defineConfig({
128127

129128
plugins: [
130129
react(),
131-
TanStackRouterVite(),
130+
tanstackRouter(),
132131
createHtmlPlugin({
133132
entry: './src/index.tsx',
134133
template: 'index.html',

0 commit comments

Comments
 (0)