Skip to content

[pull] develop from marktext:develop - #46

Merged
pull[bot] merged 2 commits into
code:developfrom
marktext:develop
Jun 6, 2026
Merged

[pull] develop from marktext:develop#46
pull[bot] merged 2 commits into
code:developfrom
marktext:develop

Conversation

@pull

@pull pull Bot commented Jun 6, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Jocs and others added 2 commits June 6, 2026 19:00
…ms (#4374) (#4376)

* fix(muyajs): split correct paragraph on Enter in multi-block list items (#4374)

enterHandler walked up from <p> to the parent <li> and then called
chopBlockByCursor(li.children[0], start.key, ...) — assuming the active
line lives in li.children[0] (or [1] for task lists). For loose lists,
items with nested sublists, or task items with trailing paragraphs the
caret's span is not under children[0], so findIndex returned -1 and the
next statement crashed on `children[-1].nextSibling = null`.

Capture the active paragraph before the block→li promotion, look it up
in li.children, and migrate the blocks after it (sublist and/or trailing
paragraphs) into the new li so split semantics preserve order. Added a
defensive `index === -1` early return inside chopBlockByCursor.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(muyajs): address Copilot review on #4376

- chopBlockByCursor: return a well-formed empty paragraph via
  createBlockP('') in the index === -1 guard, so downstream code that
  assumes p.children[0] exists keeps the invariant.
- issue-4374 spec: assert one extra <li> is rendered after splitting a
  single-paragraph list item, so the sanity check catches functional
  regressions (not just crashes).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…) (#4378)

- graphite: switch --itemBgColor from a dark semi-transparent value to
  #e5e5e5 so the "New File" / "Open Folder" buttons are legible on the
  light page background.
- el-switch: make the checked state use --themeColor instead of the
  Element Plus default blue, matching el-slider which already follows
  --themeColor.
- el-radio: make the checked dot use --themeColor while keeping the
  label text in the normal color (no highlight on the active label).
- el-select dropdown: paint the selected item with --themeColor and a
  --themeColor10 background; use --themeColor for the trigger focus
  ring as well.
- el-input: use --themeColor for the focus ring.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 6, 2026
@pull pull Bot added the ⤵️ pull label Jun 6, 2026
@pull
pull Bot merged commit 4108711 into code:develop Jun 6, 2026
8 of 9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant