You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): allow comment & suggestion marks on plain blocks
"plain" blocks (e.g. code blocks) previously disallowed all marks
(`marks: ""`), which also blocked comments and suggestions/diffs. Allow
the non-formatting marks while still excluding formatting.
- Add a shared "annotation" mark group to the comment mark and the
suggestion marks (insertion/deletion/modification), and reference that
group from plain blocks' node spec. The always-present suggestion marks
keep the group non-empty, so the reference resolves even when comments
aren't configured (the comment mark is conditional).
- Update the stripDisallowedMarks migration to keep these non-formatting
marks and strip only the disallowed formatting marks, so legacy code
blocks retain their comments/suggestions.
- Tests: code block allows insertion/deletion/modification (and comment
when comments are enabled) but not bold; migration keeps comment +
insertion while stripping bold.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
id: {default: null,validate: "number"},// note: validate is supported in prosemirror but not in tiptap, so this doesn't actually work (considered not critical)
0 commit comments