This commit is contained in:
Zef Hemel
2022-12-22 16:20:05 +01:00
parent fbb45f0525
commit cca48f66cd
10 changed files with 306 additions and 34 deletions
+2
View File
@@ -12,6 +12,7 @@ import { tablePlugin } from "./table.ts";
import { taskListPlugin } from "./task.ts";
import { cleanWikiLinkPlugin } from "./wiki_link.ts";
import { cleanCommandLinkPlugin } from "./command_link.ts";
import { fencedCodePlugin } from "./fenced_code.ts";
export function cleanModePlugins(editor: Editor) {
return [
@@ -22,6 +23,7 @@ export function cleanModePlugins(editor: Editor) {
hideMarksPlugin(),
hideHeaderMarkPlugin(),
cleanBlockPlugin(),
fencedCodePlugin(editor),
taskListPlugin({
// TODO: Move this logic elsewhere?
onCheckboxClick: (pos) => {