Commit Graph

11 Commits

Author SHA1 Message Date
ab3cee4666 Correct capitalization of Typst and Go 2025-02-27 18:23:30 +01:00
69bd0ed5b5 Add InjectValues function
This will make CompileWithVariables obsolete, as you can use InjectValues in combination with the normal Compile instead.

This also introduces a breaking change with CompileWithVariables, as now invalid identifiers will return an error.
2025-02-27 15:17:39 +01:00
5cd261c199 Add image.Image wrapper 2024-12-20 21:12:59 +01:00
1458dc5db7 Rename CLI.Render to CLI.Compile 2024-12-19 17:18:11 +01:00
0a600dd2a1 Switch back to --diagnostic-format human 2024-12-19 16:14:11 +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
82735f849c Add MIT license 2024-12-18 20:48:49 +01:00
3786d8718d Add todo comment 2024-12-18 20:32:26 +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
c730d437ef Initial commit 2024-12-01 15:03:28 +01:00