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

Unnecessary semicolon added to detailed citations when converting to Typst #10148

Closed
njericha opened this issue Sep 3, 2024 · 1 comment
Closed
Labels

Comments

@njericha
Copy link

njericha commented Sep 3, 2024

Converting markdown

See [@MyPaper].

See [@MyPaper, Equation 1] for details.

See [@MyPaper, Equation 1].

See [@MyPaper, Equation 1; @Other, Figure 1].

to Typst gives

See @MyPaper.

See @MyPaper[Equation 1] for details.

See @MyPaper[Equation 1];.

See @MyPaper[Equation 1];@Other[Figure 1];.

using the online tool (Pandoc 3.3). See here

Note the unnecessary semicolons in the last two examples which causes Typst to render these as
image

They should be removed like so
image

In most other cases when scripting using # expressions, you should put a semicolon to forcibly end the script https://typst.app/docs/reference/scripting/. But not with citing using @.

@njericha njericha added the bug label Sep 3, 2024
@njericha
Copy link
Author

njericha commented Sep 3, 2024

Similar behavior occurs with other trailing punctuation like :;,?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant