Commit Graph

397 Commits

Author SHA1 Message Date
Malo ed2106e28d
Disallow empty font lists (#6049) 2025-04-02 11:47:42 +00:00
Malo 417f5846b6
Support comparison functions in `array.sorted` (#5627)
Co-authored-by: +merlan #flirora <uruwi@protonmail.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-02 09:41:45 +00:00
Laurenz Stampfl 96dd67e011
Switch PDF backend to `krilla` (#5420)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-01 14:42:52 +00:00
Max 4f0fbfb7e0
Add dotless parameter to `math.accent` (#5939)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-03-31 09:17:49 +00:00
+merlan #flirora a64af130dc
Add default parameter for array.{first, last} (#5970) 2025-03-31 09:06:18 +00:00
Malo 1082181a6f
Improve french smartquotes (#5976) 2025-03-31 09:01:01 +00:00
Astra3 326bec1f0d
Correcting Czech translation in `typst-library` (#6101) 2025-03-31 08:16:47 +00:00
Matt Fellenz efdb75558f
IDE: complete jump-to-cursor impl (#6037) 2025-03-28 17:33:16 +00:00
frozolotl 20ee446eba
Fix descriptions of color maps (#6096) 2025-03-28 15:30:30 +00:00
Philipp Niedermayer b7a4382a73
Fix typo (#6104) 2025-03-28 15:28:03 +00:00
Laurenz Stampfl 838a46dbb7
Test all exif rotation types and fix two of them (#6102) 2025-03-27 10:59:32 +00:00
PgBiel 1f1c133878
Refactor grid header and footer resolving (#5919) 2025-03-24 20:42:48 +00:00
Eduardo Sánchez Muñoz 38213ed534
Use `u64` instead of `usize` to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026) 2025-03-24 18:16:33 +00:00
Andrew Voynov 636eea18bc
Expand page breaks' triggers for page(height: auto) in docs (#6081) 2025-03-24 18:08:39 +00:00
Ian Wrzesinski 91956d1f03
Use `std::ops::ControlFlow` in `Content::traverse` (#6053)
Co-authored-by: Max Mynter <maxmynter@me.com>
2025-03-24 18:07:19 +00:00
Kevin K. 37bb632d2e
Fix missing words and paren in docs (#6046) 2025-03-12 12:45:57 +00:00
evie 3650859ae8
Fix `cargo clippy` warnings (mostly about `.repeat.take` and `.next_back`) (#6038) 2025-03-11 10:00:53 +00:00
Ludovico Gerardi e66e190a21
Fix typo in docs (#6034) 2025-03-10 11:39:30 +00:00
Andrew Voynov 6271cdceae
Fix debug implementation of Recipe (#5997) 2025-03-04 09:33:39 +00:00
3w36zj6 8820a00beb
Respect `quotes: false` in inline quote (#5991)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-03-03 11:50:47 +00:00
Andrew Voynov bf0d45e2c0
Make `array.chunks` example more readable (#5975) 2025-03-03 11:31:39 +00:00
Tijme 66679920b2
Fix docs example with type/string comparison (#5987) 2025-03-03 09:32:06 +00:00
Malo d6b0d68ffa
Add more methods to `direction` (#5893) 2025-02-25 14:19:17 +00:00
Malo 2eef9e84e1
Improve hints for show rule recursion depth (#5856) 2025-02-25 14:09:52 +00:00
evie d11ad80dee
Add `#str.normalize(form)` (#5631)
Co-authored-by: +merlan #flirora <uruwi@protonmail.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-02-25 14:01:01 +00:00
Laurenz 225e845021
Fix introspection of HTML root sibling metadata (#5953) 2025-02-25 11:31:15 +00:00
Laurenz 69c3f95705
Bump MSRV to 1.83 and Rust in CI to 1.85 (#5946) 2025-02-24 12:28:01 +00:00
Laurenz ebe2543264
Fix comparison of `Func` and `NativeFuncData` (#5943) 2025-02-24 11:17:31 +00:00
Malo 56f4fa2b4d
Documentation improvements (#5888) 2025-02-23 11:31:28 +00:00
PgBiel 240f238eee
Fix HTML export of table with gutter (#5920) 2025-02-23 11:26:14 +00:00
ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫 74e4f78687
HTML export: Use `<code>` for inline `RawElem` (#5884) 2025-02-18 10:16:19 +00:00
Laurenz 25c86accbb
More robust SVG auto-detection (#5878) 2025-02-17 10:56:00 +00:00
Laurenz 5fc679f3e7
Remove Linux Libertine warning (#5876) 2025-02-16 13:18:39 +00:00
+merlan #flirora 02cd43e27f
`Gradient::repeat`: Fix floating-point error in stop calculation (#5837) 2025-02-12 12:38:40 +00:00
+merlan #flirora 83ad407d3c
Update documentation for `float.{to-bits, from-bits}` (#5836) 2025-02-12 12:35:03 +00:00
Laurenz 89e71acecd
Respect `par` constructor arguments (#5842) 2025-02-10 14:37:19 +00:00
TwoF1nger ee47cb8469
Add smart quotes for Bulgarian (#5807) 2025-02-10 10:42:16 +00:00
Malo 25e27169e1
Add warning for `pdf.embed` elem used with HTML (#5829) 2025-02-10 10:39:32 +00:00
PgBiel 3fba256405
Don't crash on image with zero DPI (#5835) 2025-02-10 10:39:04 +00:00
Malo ca702c7f82
Documentation fixes and improvements (#5816) 2025-02-06 10:18:10 +00:00
Laurenz 029ae4a5ea
Export target docs (#5812)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-02-05 13:24:10 +00:00
Laurenz 0ea668077d
Bump codex to 0.1.0 (#5805) 2025-02-04 10:08:43 +00:00
Ryan Chua b25cf22018
Fix typo in page documentation (#5804) 2025-02-04 09:40:10 +00:00
Laurenz 50ccd7d60f
Scope deprecations (#5798) 2025-02-04 09:38:31 +00:00
Laurenz eee903b0f8
Refactor `Scope` (#5797) 2025-02-03 16:04:54 +00:00
Laurenz 12dbb012b1
Revert adding `flatten-text` to `image` (#5789) 2025-02-02 19:25:58 +00:00
Malo f239b0a6a1
Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714) 2025-01-31 10:05:03 +00:00
Hong Jiarong 46727878da
Disable cjk_latin_spacing in raw by default (#5753) 2025-01-31 10:02:42 +00:00
Laurenz a1f263862c
Change type repr to short name (#5788) 2025-01-31 09:56:49 +00:00
frozolotl 3eb6e87af1
Include images from raw pixmaps and more (#5632)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-31 09:56:25 +00:00
Laurenz be1fa91a00
Modular, multi-threaded, transitioning plugins (#5779) 2025-01-30 13:36:15 +00:00
Laurenz 1b2719c94c
Resolve bound name of bare import statically (#5773) 2025-01-29 14:20:30 +00:00
Andrew Voynov 9665eecdb6
Fixed typo in the new outline docs (#5772) 2025-01-28 10:08:12 +00:00
Laurenz 85d1778974
Support first-line-indent for every paragraph (#5768) 2025-01-27 13:15:20 +00:00
Laurenz 26e65bfef5
Semantic paragraphs (#5746) 2025-01-24 12:11:26 +00:00
Laurenz 467968af07
Tweak HTML pretty printing (#5745) 2025-01-24 11:15:09 +00:00
Laurenz cd044825fc
Handle boxes and blocks a bit better in HTML export (#5744)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-01-23 22:18:02 +00:00
Ian Wrzesinski fecdc39846 Use SymbolElem in more places and add `char` cast for content 2025-01-23 16:28:29 -05:00
Ian Wrzesinski c47b71b435 Basic SymbolElem addition 2025-01-23 16:28:29 -05:00
Malo 2d33393df9
Add support for `c2sc` OpenType feature in `smallcaps` (#5655) 2025-01-23 18:24:35 +00:00
SekoiaTree 58dbbd48fe
Add lcm as an operator in math mode (#5718)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-23 12:35:29 +00:00
Michael Färber b3fb6c2326
Support quotes in HTML output (#5673) 2025-01-23 12:21:34 +00:00
Michael Färber e61cd6fb9e
Support `start` attribute for `enum` in HTML export (#5676) 2025-01-23 12:18:46 +00:00
Michael Färber dda486a412
HTML tables (#5666) 2025-01-23 12:08:48 +00:00
Laurenz 52ee33a275
Rework outline (#5735) 2025-01-23 11:50:51 +00:00
Laurenz 6fcc432284
Don't link items if container is already linked (#5732) 2025-01-22 13:24:14 +00:00
Laurenz b45f574703
Move no-hyphenation style in link from show to show-set rule (#5731) 2025-01-22 12:58:57 +00:00
Laurenz b90ad470d6
Remove redundant doc comments on standard arguments (#5725) 2025-01-21 11:10:06 +00:00
Eric Biedert c22c47b9c9
Add font exception for NewCM Sans Math (#5682) 2025-01-16 13:40:57 +00:00
Laurenz 6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Laurenz 9473aface1
Fix memory size of `TextElem` (#5674) 2025-01-09 13:00:18 +00:00
Max be6629c7cb
Better math argument parsing (#5008) 2025-01-09 10:49:06 +00:00
Laurenz e2b37fef33
Revamp data loading and deprecate `decode` functions (#5671) 2025-01-09 09:34:16 +00:00
Laurenz dacd6acd5e
More flexible and efficient `Bytes` representation (#5670) 2025-01-08 10:57:56 +00:00
Niklas Eicker 0a374d2380
Embed files associated with the document as a whole (#5221)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-08 09:38:34 +00:00
Malo e09b55f00f
Allow adding and joining `arguments` (#5651) 2025-01-06 15:41:58 +00:00
Michael Färber 5c876535cc
Move `CellGrid` from `typst-layout` to `typst-library` (#5585) 2025-01-06 15:20:28 +00:00
bbb651 🇮🇱 ce7f680fd5
Avoid stripping url prefixes multiple times or multiple prefixes (#5659) 2025-01-06 15:13:17 +00:00
Andrew Voynov ec1e8f9e8d
Added precise definition for "character" in the docs for `str.split` (#5616) 2025-01-06 13:15:11 +00:00
Malo a2f685483a
Improve `repr` for `arguments` (#5652) 2025-01-06 12:43:41 +00:00
Max bb38a01d06
Fix math size resolving (#5596) 2024-12-20 12:35:57 +00:00
Malo 39706fe42f
Error on duplicate symbol variant with modifiers in different orders (#5587)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-20 11:15:14 +00:00
Joshua Gawley 6953685358
Document result of splitting string with empty string as separator (#5572) 2024-12-20 10:18:52 +00:00
Max c3334a55fe
Fix arbitrarily nested equations in the base of `math.attach` (#5613) 2024-12-20 10:15:18 +00:00
Joshua Gawley 21e608e6e9
Change error when accessing non-existant label (#5571) 2024-12-18 16:52:37 +00:00
Emmanuel Lesueur 257764181e
New `curve` element that supersedes `path` (#5323)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 15:58:57 +00:00
Malo 24c08a7ec0
Mention the `calc` module in the operator list (#5595) 2024-12-18 13:37:32 +00:00
Peng Guanwen 73253d4651
Support for defining which charset should be covered by a font (#5305)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 14:07:45 +00:00
Laurenz 1346385255
Rename `pattern` to `tiling` (#5590) 2024-12-17 09:25:27 +00:00
Laurenz ed67220e4b
Remove deprecated things and compatibility behaviours (#5591) 2024-12-17 09:25:15 +00:00
Eric Biedert 51020fcf3c
Get numbering of page counter from style chain (#5589) 2024-12-16 20:23:13 +00:00
Johann Birnick 75273937f7
Transform high level headings to HTML (#5525) 2024-12-16 18:22:00 +00:00
Malo 8b1e0d3a23
Improve `symbol` `repr` (#5505) 2024-12-16 14:10:42 +00:00
+merlan #flirora d3620df4c6
Add reversed numbering (#5563) 2024-12-16 13:45:57 +00:00
Joshua Gawley a3ad0a0bba
Document new counting symbols (#5568) 2024-12-13 11:26:52 +00:00
Michael Färber 17f20c6944
Basic HTML pretty-printing (#5533)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-10 09:57:22 +00:00
PgBiel c2cc09e71a
Forbid footnote migration in pending floats (#5497)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 09:55:58 +00:00
Laurenz 4729d3d3bd
Fix language-dependant figure caption separator in outline (#5550) 2024-12-08 18:36:04 +00:00
Laurenz Stampfl 67ef6066f4
Add support for converting text in SVGs to paths (#5390) 2024-12-08 17:06:25 +00:00
Jakob Peters 57f7c167d8
Document integer literal parsing (#5462)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-08 16:52:57 +00:00