ToS Editor
This commit is contained in:
13
src/components/editor/plugins/markdown-kit.tsx
Normal file
13
src/components/editor/plugins/markdown-kit.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { MarkdownPlugin, remarkMdx, remarkMention } from '@platejs/markdown';
|
||||
import { KEYS } from 'platejs';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import remarkMath from 'remark-math';
|
||||
|
||||
export const MarkdownKit = [
|
||||
MarkdownPlugin.configure({
|
||||
options: {
|
||||
disallowedNodes: [KEYS.suggestion],
|
||||
remarkPlugins: [remarkMath, remarkGfm, remarkMdx, remarkMention],
|
||||
},
|
||||
}),
|
||||
];
|
Reference in New Issue
Block a user