Implement markdown parsing for copy paste

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-02 16:55:14 +04:00
parent 2543765bb3
commit 3561a6e0b7
4 changed files with 341 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
// 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);
},
});