Matt Fellenz

Results 144 comments of Matt Fellenz

> I'll change it for Tera v2 to do that automatically. Sounds good.

It just seemed to me like this was a Zola issue rather than Tera because in a Tera macro you have control over the whitespace control operators, e.g., when defining...

To be clear, a line is not a line if it does not end with \n. That's what makes this behavior concerning.

FYI https://github.com/typst/typst/blob/94e052b8ccace3221aa960b9abe3b3f32b1d894f/library/src/math/ctx.rs#L132-L146

Yes, I think there could even be added a new element type `math.lit` for these literals which could even facilitate special styling or overriding the default upright style.

No, I can confirm that the issue still occurs with multiple spaces in the outline text.

Yeah the initial example was not entirely correct. Here was my test case: ```typst #heading(level: 1, [My heading \ that goes on multiple lines]) ```

![Outline showing "My heading that goes on ..." (note the double space between "heading" and "that")](https://github.com/typst/typst/assets/58113890/a300cb58-b934-4090-b908-27e3dbcebc1e) This is the issue. Notice the double space.

The minimal example is as given above. Look at the outline in a PDF viewer capable of showing it. There is a double space in the title. You can show...

Also with a `font` type I think Typst would allow writing `#set text(font(...))` based on special behavior of that type. Not sure if we would want this though.