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
fix: move heading-into-heading bumps levels through the whole block
moveBlock now accepts headingBump. trySurgicalEdit for moveNodeIn/
Before/After detects when both source and target are headings and
computes the bump so the moved block lands at the correct level:
- moveNodeIn into H2 makes the source heading H3 and every nested
heading shifts +1 too (capped at H6)
- moveNodeBefore/After against a heading keeps the source at the
target's level and bumps nested headings by the same delta.
For list-item targets the previous list-marker conversion is
preserved, so we don't break those cases.
Also add a transient toast (store.errorMessage) so when a structural
mindmap op has no surgical handler the user sees that markdown wasn't
updated.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
0 commit comments