10 Commits

Author SHA1 Message Date
mkorje
08f1d93f9e
Allow a function as an argument to size in stretch and lr
Previously there was always a short fall when scaling delimiters, even if
the user requested a specific size. This is no longer the case; the short
fall is only present in the default for `lr` (`x => x - 0.1em`) - the
size of the delimiters is now actually what was specified in the size
argument. This also makes the default for `lr` much clearer to the user.

A slight hack was used by exploiting the `name` property in the `func`
attribute macro so that the default value in the docs for `lr.size` would
clearly show what the default function was (instead of just its name
`default_lr_size` which is meaningless and inaccessible to the user).
2025-07-08 21:00:31 +10:00
Laurenz
0a3c6939dd
Rewrite foundations of native elements (#6547) 2025-07-08 08:52:43 +00:00
Malo
3a6d5fd6b2
Do not force math.mid elements to have the Large math class (#5980) 2025-06-11 08:29:38 +00:00
Max
44d410dd00
Use the shaper in math (#6336) 2025-06-10 14:44:38 +00:00
Laurenz
26e65bfef5
Semantic paragraphs (#5746) 2025-01-24 12:11:26 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Max
bb38a01d06
Fix math size resolving (#5596) 2024-12-20 12:35:57 +00:00
Max
578ba640f3
Fix weak spacing being ignored unconditionally in math.lr (#5477) 2024-11-27 11:16:25 +00:00
Max
8fe8b2a239
Ignore leading and trailing ignorant fragments in math.lr (#5473) 2024-11-26 20:51:22 +00:00
Laurenz
be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00