Skip to content

[pull] develop from marktext:develop#107

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

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

Conversation

@pull

@pull pull Bot commented Jun 27, 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 27, 2026 23:33
* fix(muya): surface the KaTeX parse error for invalid math

The live editor caught KaTeX's parse error and replaced it with an opaque
generic "Invalid Mathematical Formula" message, leaving the user no way to
tell what was actually wrong.

- Block math renders the real parse-error message text in `.mu-math-error`.
- Inline math keeps the compact generic label (a long message inline would
  break the surrounding text baseline — see #4100 / inline-math-align) but
  exposes KaTeX's parse reason through the element `title`.

Fixes #2220

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

* fix(muya): keep the KaTeX math error message fully visible

The block-math error renders the full parse-error message, which can be long —
wrap it within the block instead of overflowing horizontally. The inline-math
error label was clipped in the editing popup (the .mu-math-render default
overflow:auto); show it visible in both preview and editing states. Inline
keeps nowrap (one line); block wraps.

Refs #2220

---------

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

* fix(desktop): preserve sidebar width when collapsing via the icon

Collapsing the sidebar to its icon strip by clicking the active left-column
icon overwrote the persisted width with the clamped 220px minimum: it read
finalSideBarWidth AFTER setting rightColumn to '', when that computed already
evaluates to the 45px icon strip. Re-expanding then restored 220px, losing a
widened sidebar. Capture the expanded width before collapsing.

Refs #2421

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

* fix(desktop): persist sidebar tree section collapse state

The "Opened files" / "Directories" collapse state lived in local refs in
tree.vue, which is rendered under a v-if and destroyed when the sidebar
collapses to its icon strip — so the sections reset to expanded on re-open.
Back the state with localStorage (like the sidebar width) so it survives the
re-mount and app restart (also requested in the issue comments).

Fixes #2421

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

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 27, 2026
@pull pull Bot added the ⤵️ pull label Jun 27, 2026
@pull pull Bot merged commit 25caaba into code:develop Jun 27, 2026
14 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