From d75a963d0801aa64c962b2ce6427d6699ab05540 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 21 Oct 2023 14:06:47 +0200 Subject: [PATCH] feat(editor): add code highlighting --- src/components/input/editor/TipTap.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/input/editor/TipTap.vue b/src/components/input/editor/TipTap.vue index 0288ad310..9af963bcb 100644 --- a/src/components/input/editor/TipTap.vue +++ b/src/components/input/editor/TipTap.vue @@ -263,11 +263,9 @@ const editor = useEditor({ // // character count // CharacterCount, - // CodeBlockLowlight.extend({ - // addNodeView() { - // return VueNodeViewRenderer(CodeBlock) - // }, - // }).configure({ lowlight }), + CodeBlockLowlight.configure({ + lowlight, + }), Commands.configure({ suggestion: suggestionSetup(t),