| 1 | import { MarkdownPlugin, remarkMdx, remarkMention } from "@platejs/markdown"; |
| 2 | import { KEYS } from "platejs"; |
| 3 | import remarkGfm from "remark-gfm"; |
| 4 | import remarkMath from "remark-math"; |
| 5 | |
| 6 | import { infographicMarkdownRules } from "./markdown-infographic-rules"; |
| 7 | |
| 8 | export const MarkdownKit = [ |
| 9 | MarkdownPlugin.configure({ |
| 10 | options: { |
| 11 | disallowedNodes: [KEYS.suggestion], |
| 12 | remarkPlugins: [remarkMath, remarkGfm, remarkMdx, remarkMention], |
| 13 | rules: infographicMarkdownRules, |
| 14 | }, |
| 15 | }), |
| 16 | ]; |
| 17 |