Files
2023-09-21 05:44:23 -07:00

9 lines
225 B
TypeScript

import { Node } from "prosemirror-model";
import { Transform } from "prosemirror-transform";
export function removeMarks(doc: Node) {
const tr = new Transform(doc);
tr.removeMark(0, doc.nodeSize - 2);
return tr.doc;
}