feat: nested toggle block (#671)

* feat: nested toggle block

* fix: md export

* fix detailsButton icon alignment

---------

Co-authored-by: Philipinho <16838612+Philipinho@users.noreply.github.com>
This commit is contained in:
fuscodev
2025-04-04 14:01:39 +02:00
committed by GitHub
parent 7ca2b437d4
commit 8aa604637e
4 changed files with 26 additions and 23 deletions

View File

@ -132,6 +132,9 @@ export const Details = Node.create<DetailsOptions>({
}
const slice = state.doc.slice(range.start, range.end);
if(slice.content.firstChild.type.name === "detailsSummary") return false;
if (
!state.schema.nodes.detailsContent.contentMatch.matchFragment(
slice.content,