[pull] develop from marktext:develop#107
Merged
Merged
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )