Commit Graph

7 Commits

Author SHA1 Message Date
a0eb762709 Fix map keys being in random order by sorting them 2024-12-19 17:33:53 +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
82735f849c Add MIT license 2024-12-18 20:48:49 +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
bff2664cfc Improve variable marshalling 2024-12-02 11:52:05 +01:00
c730d437ef Initial commit 2024-12-01 15:03:28 +01:00