Commit Graph

13 Commits

Author SHA1 Message Date
e1879e4d36 Add Typst 0.13.1 to Compatibility list 2025-03-07 13:56:11 +01:00
c3876b340b Rename Variable* to Value*
- Rename MarshalVariable to MarshalValue
- Rename NewVariableEncoder to NewValueEncoder
- Rename VariableEncoder to ValueEncoder
- Rename VariableMarshaler to ValueMarshaler
- Rename MarshalTypstVariable to MarshalTypstValue

There are now wrappers which ensure compatibility with code that still uses some of the old functions/types.

- Improve image_test.go by adding an assertion
- Rename all occurrences of Variable to Value
- Remove "TODO: Handle images..." as that's already working with the image wrapper
- Update README.md
2025-02-27 18:07:46 +01:00
c67b56bc06 Add Typst 0.13.0 to testing with GitHub actions
- Update README.md
2025-02-24 22:34:21 +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
1458dc5db7 Rename CLI.Render to CLI.Compile 2024-12-19 17:18:11 +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
f39b560bda Update README.md & Update test.yml 2024-12-19 00:16:08 +01:00
d03846864f Update README.md & Add test for README.md code 2024-12-18 21:24:36 +01:00
042f1920c9 Update README.md 2024-12-18 20:32:14 +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