Commit Graph

31 Commits

Author SHA1 Message Date
Florent Aide
fb12dfb9fa add unit test for the font-path option 2025-02-26 16:20:36 +01:00
Florent Aide
0e2bdda951 Add support for font-path option 2025-02-26 15:35:15 +01:00
c67b56bc06 Add Typst 0.13.0 to testing with GitHub actions
- Update README.md
2025-02-24 22:34:21 +01:00
648c449890 Simplify and improve stderr parsing
- Allow multiple errors and warnings
- Remove ErrorWithPath, which is now replaced by Error
- Simplify parsing, allow multiple errors
- Add more tests for stderr parsing
2025-02-24 22:32:27 +01:00
David Vogel
188f5c36cb
Merge pull request #1 from faide/0.13.0
add support for 0.13.0 html feature
2025-02-24 18:01:04 +01:00
Florent Aide
2f45207c40 add support for 0.13.0 html feature 2025-02-24 17:04:35 +01:00
fec22822ea Update README.md 2025-01-12 14:57:32 +01:00
40b899ee67 Update README.md 2024-12-20 21:25:44 +01:00
5cd261c199 Add image.Image wrapper 2024-12-20 21:12:59 +01:00
d9b6725592 Add struct tag support 2024-12-20 18:33:07 +01:00
7b0454ae68 Change map and struct marshaling & Fix encoding issues
- Typst dictionaries can use string literals as keys, which is more stable than using identifiers. This also means we don't have to use CleanIdentifier.
- Add more tests for corner cases.
2024-12-19 18:07:44 +01:00
bff3077b6d Add test for empty or nil byte slices 2024-12-19 17:38:15 +01:00
a0eb762709 Fix map keys being in random order by sorting them 2024-12-19 17:33:53 +01:00
1458dc5db7 Rename CLI.Render to CLI.Compile 2024-12-19 17:18:11 +01:00
d65ae34abb Add MarshalVariable function 2024-12-19 17:16:52 +01:00
ed5897c9f6 Fix typst syntax with VariableEncoder
- Arrays with a single entry need a trailing comma
- Add writeRune method
- Negative numbers need to be put in code brackets, otherwise the typst parser will complain in some cases
- Add/change unit tests
- Let TestVariableEncoder test compile generated markup
- Update README.md
2024-12-19 16:48:50 +01:00
0a600dd2a1 Switch back to --diagnostic-format human 2024-12-19 16:14:11 +01:00
David Vogel
916336f361
Create FUNDING.yml 2024-12-19 00:20:31 +01:00
f39b560bda Update README.md & Update test.yml 2024-12-19 00:16:08 +01:00
88837c7ba0 Add VersionString method 2024-12-18 23:31:48 +01:00
f42f1cb385 Add example for passing go values 2024-12-18 23:20:12 +01:00
d03846864f Update README.md & Add test for README.md code 2024-12-18 21:24:36 +01:00
82735f849c Add MIT license 2024-12-18 20:48:49 +01:00
1a373a6487 Add github action for testing 2024-12-18 20:32:37 +01:00
3786d8718d Add todo comment 2024-12-18 20:32:26 +01:00
042f1920c9 Update README.md 2024-12-18 20:32:14 +01:00
406fa5dafa Rename typst_*.go into cli_*.go 2024-12-18 20:31:28 +01:00
755cee77ac Several changes
- Make VariableEncoder write* methods private
- Add VariableEncoder method to write correctly escaped string literals
- Fix error handling in VariableEncoder
- Add support for time.Time and time.Duration
- Fix MarshalText usage in VariableEncoder
- Encode byte slice so that it is a valid typst bytes object
- Extend tests
- Add functions to clean and check typst identifiers
- Split Error into Error and ErrorWithPath
- Add CLIOptions
2024-12-18 17:25:28 +01:00
f4d625eab4 Remove debug print 2024-12-18 12:04:31 +01:00
bff2664cfc Improve variable marshalling 2024-12-02 11:52:05 +01:00
c730d437ef Initial commit 2024-12-01 15:03:28 +01:00