Markpad
Markpad copied to clipboard
fix: preview fold wrapper retains stale height after toggling edit mode
Reproduction: open a document containing a foldable/admonition block in preview, enter edit mode, then return to preview. The wrapper may retain a stale --fold-content-height, leaving a large blank area below its content. Screenshots supplied by reporter show the regression.\n\nSuspected boundary: observeFoldLayout lifecycle in MarkdownViewer.svelte and foldLayout.ts; verify the observer is attached after the preview DOM is committed and clears/re-measures inline height on each preview remount.