fix(editor,git-sync): parse details open as a boolean so open state survives render/round-trip
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -470,7 +470,7 @@ const Details = Node.create({
|
||||
return {
|
||||
open: {
|
||||
default: false,
|
||||
parseHTML: (el: HTMLElement) => el.getAttribute("open"),
|
||||
parseHTML: (el: HTMLElement) => el.hasAttribute("open"),
|
||||
renderHTML: (attrs: Record<string, any>) =>
|
||||
attrs.open ? { open: "" } : {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user