Skip to content

Commit f7808c8

Browse files
committed
fix: fixed #2832
1 parent bf93c74 commit f7808c8

File tree

4 files changed

+772
-710
lines changed

4 files changed

+772
-710
lines changed

CHANGELOG.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050

5151
### Resolved Issues
5252

53-
- Fixed click positioning in multiline environments. When clicking in a multiline
54-
environment (such as `\displaylines`, `gather`, `align`, etc.), the caret is
55-
now correctly positioned on the line that is closest to the click point
56-
vertically, rather than selecting atoms from other lines based on overall
57-
Euclidean distance. For example, when clicking horizontally below an atom on
58-
line 1 but vertically at the level of line 2, the caret will now be positioned
59-
on line 2 instead of incorrectly jumping to line 1. This fix ensures that
60-
clicking in multiline content respects the visual line structure, making
61-
editing more intuitive and predictable.
53+
- Fixed click positioning in multiline environments. When clicking in a
54+
multiline environment (such as `\displaylines`, `gather`, `align`, etc.), the
55+
caret is now correctly positioned on the line that is closest to the click
56+
point vertically, rather than selecting atoms from other lines based on
57+
overall Euclidean distance. For example, when clicking horizontally below an
58+
atom on line 1 but vertically at the level of line 2, the caret will now be
59+
positioned on line 2 instead of incorrectly jumping to line 1. This fix
60+
ensures that clicking in multiline content respects the visual line structure,
61+
making editing more intuitive and predictable.
6262
- Fixed MathML serialization for multiline mathfields. Previously, serializing
6363
multiline mathfields (such as `\displaylines{\\ }`) to MathML would result in
6464
invalid MathML with syntax errors and console warnings. The fix corrects a
@@ -243,6 +243,16 @@
243243
`\mathtt`) are now correctly preserved when exporting to the `latex-expanded`
244244
format. Previously, these commands were being stripped from the output,
245245
causing `\mathrm{d}` to be serialized as just `d`.
246+
- **#2832**, **#2727** Fixed rendering of `\cancel`, `\bcancel`, `\xcancel`, and
247+
other SVG-based enclosure notations (diagonal strikes, horizontal/vertical
248+
strikes, etc.). In v0.106.0+, these notations became completely invisible due
249+
to SVG elements having 0 width in their viewBox. Additionally, when visible,
250+
the positioning of strike lines was incorrect, particularly for complex
251+
expressions and fractions. The fix restores proper width calculations and
252+
implements symmetric padding for notation boxes, using em-based coordinates
253+
with small margins for accurate line positioning. Strike lines now properly
254+
cover content from corner to corner without extending too far or appearing
255+
offset.
246256
- **#2847** Fixed scroll behavior in fixed-height mathfield containers. When
247257
navigating with arrow keys or Tab/Shift+Tab to move between placeholders, the
248258
container now properly scrolls to keep the cursor or selection visible.

0 commit comments

Comments
 (0)