jgm / typst-hs

Haskell library for parsing and evaluating typst
Other
44 stars 5 forks source link

Implement "style" properly #4

Open jgm opened 1 year ago

jgm commented 1 year ago

Most elements we pass through to be interpreted elsewhere, but this one needs to be evaluated here, because only here do we have the needed style information.

We also need to implement styles properly.

jgm commented 1 year ago

The commit addressed the first part of this, evaluating the style function, but we still just have a dummy type for styles. We ought to change handling of set rules so that they modify a style in state, and use this.