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

Alert content wouldn't show in a table #77

Closed
HPDell opened this issue Sep 13, 2024 · 2 comments · Fixed by #82
Closed

Alert content wouldn't show in a table #77

HPDell opened this issue Sep 13, 2024 · 2 comments · Fixed by #82
Labels
bug Something isn't working

Comments

@HPDell
Copy link

HPDell commented Sep 13, 2024

Version info

  • touying version: 0.5.2
  • typst version: 0.11.1

First of all, thank you for making this amazing package.

Today I'd like to write a table with some alert content like this

#table(
  columns: (auto,) + (1fr, ) * 6,
  align: center,
  inset: .5em,
  alert[Formula symbol], [`g1`], [`g2`], [`h1`], [`h2`], [`h3`], [`z1`],
  alert[Math symbol], [$gamma_1$], [$gamma_2$], [$beta_1$], [$beta_2$], [$beta_3$], [$mu_1$]
)

However, the alert contents are missing in the output table.

image

It should be something like this

image

But the alert works fine outside a table.

@OrangeX4
Copy link
Member

OrangeX4 commented Sep 13, 2024

This is a bug and I will fix it later. But maybe you might want to consider using *content* instead of #alert[content].

@OrangeX4 OrangeX4 added the bug Something isn't working label Sep 13, 2024
@HPDell
Copy link
Author

HPDell commented Sep 13, 2024

I've tired. But I'd like to show contents with the primary color. However, _content_ would not do it for me.

@OrangeX4 OrangeX4 linked a pull request Oct 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants