3724 Commits

Author SHA1 Message Date
Tobias Schmitz
788106005f
refactor: change error message formatting 2025-06-10 13:47:41 +02:00
Tobias Schmitz
0ed6b31b70
refactor: implement TryFrom<&Bytes> for Lines
- remove Bytes::load_str and impl From<Utf8Error> for LoadError
2025-06-10 13:47:41 +02:00
Tobias Schmitz
3bde9cf52d
chore: remove todo 2025-06-10 13:47:41 +02:00
Tobias Schmitz
a6ab61e3c7
refactor: rename Lines::str to text 2025-06-10 13:47:41 +02:00
Tobias Schmitz
37c5e0cdce
refactor: format code 2025-06-10 13:47:41 +02:00
Tobias Schmitz
2d3e883d2b
refactor: apply some suggestions
- rename Loaded::bytes to data
- change `let data = source.load()` to `let loaded`
- only expose a single `within` method for the LoadedWithin trait
    - invalid utf-8 data is a rare edge case
- only store one EcoString inside LoadError
    - mutate it when using `LoadedWithin::within` method
2025-06-10 13:47:41 +02:00
Tobias Schmitz
1c08683248
feat: print path of external file if it isn't valid utf-8 2025-06-10 13:47:41 +02:00
Tobias Schmitz
4cb04fd41c
test: hack to support compiling with --no-default-features 2025-06-10 13:47:41 +02:00
Tobias Schmitz
702fa063a1
fix: don't use LineCol in test code since it's not available with --no-default-features 2025-06-10 13:47:41 +02:00
Tobias Schmitz
8e9e8a753c
docs: update some comments 2025-06-10 13:47:41 +02:00
Tobias Schmitz
7dc3bcd8eb
refactor: move impl blocks 2025-06-10 13:47:41 +02:00
Tobias Schmitz
9c12c38a54
tests: remove raw byte range syntax 2025-06-10 13:47:41 +02:00
Tobias Schmitz
506b64e2cd
test: also use TestWorld::lookup in text_for_range 2025-06-10 13:47:41 +02:00
Tobias Schmitz
80491a459c
docs: update some comments 2025-06-10 13:47:41 +02:00
Tobias Schmitz
0e8c2e080d
refactor: fix some clippy warnings 2025-06-10 13:47:41 +02:00
Tobias Schmitz
9350d14557
test: update tests 2025-06-10 13:47:41 +02:00
Tobias Schmitz
65e72a39e0
test: update test runner code to lookup spans 2025-06-10 13:47:41 +02:00
Tobias Schmitz
fc9697fd46
perf: reduce size of LoadError 2025-06-10 13:47:41 +02:00
Tobias Schmitz
1c4eea8353
feat: use LoadError to avoid polluting memoization with callsite spans and file ids 2025-06-10 13:47:41 +02:00
Tobias Schmitz
7933ccb961
fix: formatting ranges in the test runner 2025-06-10 13:47:41 +02:00
Tobias Schmitz
23f1c86b84
feat: try to report line and column in files that contain invalid utf-8 2025-06-10 13:47:41 +02:00
Tobias Schmitz
e5d8f02554
refactor: factor out a general Lines struct from Source 2025-06-10 13:47:41 +02:00
Tobias Schmitz
2e2f646f2a
refactor: Loaded err_at to err_in_text 2025-06-10 13:47:41 +02:00
Tobias Schmitz
3879d0826a
experiment with utf8_iter 2025-06-10 13:47:41 +02:00
Tobias Schmitz
a79120b668
refactor: rename Data to Loaded 2025-06-10 13:47:41 +02:00
Tobias Schmitz
ecda78b17c
feat: [WIP] update test runner 2025-06-10 13:47:41 +02:00
Tobias Schmitz
7e6c3b4159
feat: show external error messages in csv, json, toml, xml, yaml, and syntax/theme files 2025-06-10 13:47:41 +02:00
Tobias Schmitz
9e820f883e
fix: silent hayagriva bibliography parsing error due very lenient biblatex parser
Fixes #6030
2025-06-10 13:47:41 +02:00
Tobias Schmitz
a5f410a76d
feat: show bibliography errors in bibtex/hayagriva files 2025-06-10 13:47:41 +02:00
Ian Wrzesinski
82da96ed95
Improve number lexing (#5969) 2025-06-10 09:11:27 +00:00
Andrew Voynov
e632bffc2e
Document how to escape lr delimiter auto-scaling (#6410)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-09 16:34:39 +00:00
Andrew Voynov
2a3746c51d
Update docs for gradient.repeat (#6385) 2025-06-09 14:25:33 +00:00
cAttte
df4c08f852
Autocomplete fixes for math mode (#6415) 2025-06-09 14:16:47 +00:00
Ian Wrzesinski
832fab58b3
Clean up some parser comments (#6398) 2025-06-09 13:48:55 +00:00
PgBiel
6725061841
Pin colspan and rowspan for blank cells (#6401) 2025-06-09 13:46:29 +00:00
Sam Ireson
494e6a6422
Numbering implementation refactor (#6122) 2025-06-04 13:31:06 +00:00
Max
aee99408e1
Apply short fall consistently in math when stretching (#6377) 2025-06-04 10:14:24 +00:00
Linus Unnebäck
1de2095f67
Add support for WebP images (#6311) 2025-06-04 09:54:03 +00:00
Max
5f776c7372
Bump New CM fonts to version 7.0.2 (#6376) 2025-06-04 09:41:08 +00:00
Max
128c40d839
Apply script-style to numbers consistently in math (#6320) 2025-06-04 08:20:54 +00:00
Nazar Serhiichuk
4a8367e90a
Fix Ukrainian secondary smart quotes (#6372) 2025-06-04 08:13:39 +00:00
Andrew Voynov
f7f163a8fa
Change Russian secondary smart quotes & remove alternatives (#6331) 2025-06-03 14:42:22 +00:00
Max
dd95f7d594
Fix bottom accent positioning in math (#6187) 2025-06-03 14:08:18 +00:00
dependabot[bot]
1b399646c2
Bump crossbeam-channel from 0.5.14 to 0.5.15 (#6369)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 12:53:13 +00:00
Kristofers Solo
ff0dc5ab66
Add Latvian translations (#6348) 2025-06-03 12:38:21 +00:00
Laurenz
664d33a681
Be a bit lazier in function call evaluation (#6368) 2025-06-02 16:53:35 +00:00
Laurenz
e023db5f1d
Bump Rust to 1.87 in CI (#6367) 2025-06-02 16:44:43 +00:00
Lachlan Kermode
6164ade9ce
Add typst-html to architecture crates list (#6364) 2025-06-02 14:15:04 +00:00
Andrew Voynov
fd08c4bb3f
Fix typo in layout docs, change "size" to "height" (#6344) 2025-06-02 13:12:42 +00:00
Malo
4329a15a1c
Improve calc.round documentation (#6345) 2025-06-02 13:04:49 +00:00