PgBiel
PgBiel
Alright, I think we maybe should just place this PR on hold then. Better the status quo than to break things. Eventually we can open an issue to discuss how...
The result of `repr` is according to the internal representation of the object. You can probably use regex to parse it.
> It's probably better to avoid using repr for any purpose other than debugging anyway. Indeed; prefer to use field access. (See https://github.com/typst/typst/pull/790 for a WIP PR to add some...
`.sum()` would also be useful for joining other joinable types, such as `content` (and joining is so universal in typst anyway that this seems like a must-have to me).
I can't seem to be able to reproduce; can you share a minimal working example? Thanks.
Upon doing some debugging, it seems that it is erroring due to an invalid span attached to an error produced by `CiteElem::show` (the error itself probably wasn't supposed to happen...
Alright, found the culprit: https://github.com/typst/typst/blob/1e948f7fa29395cfc2bd704bfdbe6019229ba500/library/src/meta/reference.rs#L162 The span isn't being properly set here, causing the compiler crash
So, fixing that will prevent the compiler from crashing, but the unexpected error will still happen - it seems to be related to the inner workings of `query` and `location`....
Note that you can arbitrarily combine them (`5em + 2pt` for e.g.) and still have a `length`. Regarding separating the "em-part" from the "pt-part", keep an eye on https://github.com/typst/typst/pull/790.
As a workaround for now, please use `$ mat(B, A B, dots;) $`