Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typst: Lists across multiple lines are not rendered correctly in typst #1767

Closed
certik opened this issue Jan 11, 2025 · 3 comments · Fixed by #1777
Closed

Typst: Lists across multiple lines are not rendered correctly in typst #1767

certik opened this issue Jan 11, 2025 · 3 comments · Fixed by #1777
Labels
bug Something isn't working typst

Comments

@certik
Copy link

certik commented Jan 11, 2025

Code:

* 0-form $f$: $df \equiv {\partial f\over\partial x^i} dx^i
=\partial_i f \, dx^i$
* k-forms $\alpha$ and $\beta$, numbers $a$, $b$:
  $d(a\alpha+b\beta) = a d\alpha + b d\beta$
* k-form $\alpha$, l-form $\beta$:
  $d(\alpha \wedge \beta) = d\alpha\wedge\beta + (-1)^k \alpha\wedge d\beta$
* k-form $\alpha$: $d(d\alpha) = 0$

Here is how it looks like in LaTeX, which is what I would expect:

Image

Here is how it looks like in typst, which looks incorrect to me:

Image
@certik certik added the bug Something isn't working label Jan 11, 2025
@rowanc1 rowanc1 added the typst label Jan 13, 2025
@rowanc1
Copy link
Member

rowanc1 commented Jan 13, 2025

This can be simplified to:

- two lines
for a list

The second line doesn't produce a paragraph in markdown, we are carrying the newline through to typst, and that does create a paragraph. Creating:

Image

Somewhere we need to delete the newline in the output.

@rowanc1 rowanc1 changed the title Typst: Inline math is not inlined Typst: Lists across multiple lines are not rendered correctly in typst Jan 13, 2025
@certik
Copy link
Author

certik commented Jan 13, 2025

Ideally these would be taken care of before the mystmd AST is produced, so that the backend (typst, latex) doesn't need to worry about such new lines at all.

@rowanc1
Copy link
Member

rowanc1 commented Jan 13, 2025

Yeah, I am a bit surprised that they aren't already TBH. Will track it down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typst
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants