Skip to content

v0.4.0

Compare
Choose a tag to compare
@tingerrr tingerrr released this 04 Jul 14:43
· 11 commits to main since this release
4b1575f

Almost all changes in this release are BREAKING CHANGES.

Added

  • internal util functions and dictionaries for recreating auto fallbacks used within the typst
    compiler
    • core.get-text-dir - returns the text direction
    • core.get-binding - returns the page binding
    • core.get-top-margin - returns the absolute top margin
    • util.text-direction - returns the text direction for a given language
    • util.page-binding - returns the page binding for a given text direction

Removed

  • various parameters on hydra have been removed
    • paper has been removed in favor of get rule
    • page-size has been removed in favor of get rule
    • top-margin has been removed in favor of get rule
    • loc has been removed in favor of user provided context
  • internal util dictionary for page sizes

Changed

  • hydra now requires a minimum Typst compiler version of 0.11.0
  • hydra is now contextual
  • most internal functions are now contextual
  • the internal context dictionary now holds a anchor-loc instead of a loc
  • get-anchor-pos has been renamed to locate-last-anchor
  • the internal page-sizes dictionary was changed to function
  • various parameters on hydra are now auto by default
    • prev-filter
    • next-filter
    • display
    • dir
    • binding

New Contributors

Full Changelog: v0.3.0...v0.4.0