Files
probo/packages/ui/src/RichEditor/CodeBlockExtension.ts
Émile Ré 3561a6e0b7 Implement markdown parsing for copy paste
Signed-off-by: Émile Ré <emile@getprobo.com>
2026-04-03 17:02:41 +04:00

15 lines
454 B
TypeScript

// Copyright (c) 2026 Probo Inc <hello@getprobo.com>.
// Use of this source code is governed by the ISC license
// that can be found in the LICENSE file.
import { CodeBlock } from "@tiptap/extension-code-block";
import { ReactNodeViewRenderer } from "@tiptap/react";
import { MermaidNodeView } from "./MermaidNodeView";
export const CodeBlockExtension = CodeBlock.extend({
addNodeView() {
return ReactNodeViewRenderer(MermaidNodeView);
},
});