Skip to content

inline code in calloutboxes generate wrong typst code #14330

@produnis

Description

@produnis

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

Hi there,
with the update to quarto 1.9, I get errors when using inline code in callout boxes and rendering with typst:

unknown variable: NormalTok

Steps to reproduce

---
title: "Reproducible Quarto Document"
format: typst
---
::: {.callout-note appearance="default"}
## Aufgabe 1

Auf das Datenframe `1 1 0 1` wurde das CRC-Verfahren mit dem  Generatorpolynom $x^3+x+1$ angewendet. Der Empfänger empfängt die Bitsequenz `1 1 0 1 1 0 1`. War die Übertragung fehlerfrei?
:::

Actual behavior

This throws the error:

ERROR: error: unknown variable: NormalTok
227 │ Auf das Datenframe #NormalTok("1 1 0 1"); wurde das CRC-Verfahren mit dem Generatorpolynom $x^3 + x + 1$ angewendet. Der Empfänger empfängt die Bitsequenz #NormalTok("1 1 0 1 1 0 1");. War die Übertragung fehlerfrei?
    │ 

I dont know if this is somehow related to #14261,
but it also occurs in quarto-prerelease (1.10.1)

Expected behavior

render it to inline-code.

Your environment

Archlinux

Quarto check output

Quarto 1.10.1 (as well as quarto 1.9.36)
[✓] Checking environment information...
      Quarto cache location: /home/produnis/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.8.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.4.5: OK
      Typst version 0.14.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.10.1
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      Chromium: 869685
      TinyTeX: (not installed)
      Chrome Headless Shell: (not installed)
      VeraPDF: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /sbin
      Version: undefined

[✓] Checking Chrome Headless....................OK
      Using: Chrome from QUARTO_CHROMIUM
      Path: /usr/bin/chromium

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

[✓] Checking R installation...........OK
      Version: 4.5.3
      Path: /usr/lib64/R
      LibPaths:
        - /home/produnis/R/x86_64-pc-linux-gnu-library/4.5
        - /usr/lib/R/library
      knitr: 1.50
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

[✓] Checking Python 3 installation....OK
      Version: 3.14.3
      Path: /sbin/python3
      Jupyter: 5.9.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking Julia installation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    supporta request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions