Show diff by sentence (#477)

This commit is contained in:
Jeremy 2024-11-01 14:13:17 +05:30 committed by GitHub
parent 505caa9aff
commit b3aa3cb18a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 105 additions and 145 deletions

View file

@ -13,7 +13,7 @@ import React, { useEffect, useRef } from 'react';
import { renderToString } from 'react-dom/server';
import ReactMarkdown from 'react-markdown';
import { diffEditor, DiffType } from '@/lib/editor/index';
import { diffEditor, DiffType } from '@/lib/editor/diff';
const diffSchema = new Schema({
nodes: addListNodes(schema.spec.nodes, 'paragraph block*', 'block'),