mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 22:53:08 +08:00
5506eb194b
* Show actual history changes * V2 - WIP * feat: page history diff * fix: exclude content from history listing --------- Co-authored-by: Jason Norwood-Young <jason@10layer.com>
9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
import { Transform } from "@tiptap/pm/transform";
|
|
import { Node } from "@tiptap/pm/model";
|
|
|
|
export function removeMarks(doc: Node) {
|
|
const tr = new Transform(doc);
|
|
tr.removeMark(0, doc.nodeSize - 2);
|
|
return tr.doc;
|
|
}
|