Skip to content

typst format's callouts show different text alignment with Prefix #12803

Open
@jeremy886

Description

@jeremy886

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

After upgrading to the latest version of Quarto, callouts are rendered differently with the prefix #tip-. All text is centred instead of left-aligned.

If #tip-xxx is removed, then the callout will be displayed normally.

Steps to reproduce

---
format:
  typst:
    papersize: a4
---


::: {.callout-tip #tip-abc }  
## Tip with Title

This is an example of a callout with a title.

This is an example of a 'folded' caution callout that can be expanded by the user. You can use `collapse="true"` to collapse it by default or `collapse="false"` to make a collapsible callout that is expanded by default.
:::

::: {.callout-tip}  
## Tip with Title

This is an example of a callout with a title.

This is an example of a 'folded' caution callout that can be expanded by the user. You can use `collapse="true"` to collapse it by default or `collapse="false"` to make a collapsible callout that is expanded by default.

:::

Actual behavior

The text is centered.

Expected behavior

The text is left-aligned

Your environment

  • IDE: Positron
  • MacOS: 15.5

Quarto check output

Quarto 1.7.31
[✓] Checking environment information...
Quarto cache location: /Users/jeremy/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.85.1: OK
Deno version 1.46.3: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.7.31
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Tex: (not detected)

[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.12.10
Path: /Users/jeremy/xxx/.venv/bin/python3
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

  Unable to locate an installed version of R.
  Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcalloutsIssues with Callout Blocks.crossreftypst

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions