Skip to content

Regression in syntax highlighting for Typst in 1.10 #14278

@christopherkenny

Description

@christopherkenny

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

Typst now uses skylighting by default, but this only implements a subset of features for text highlighting. As such, blocks now miss highlighting on common R features like pipes |>.

I believe the change to skylighting was intentional, but should likely be idiomatic by default to have both (1) better highlighting and (2) match pandoc defaults.

Steps to reproduce

Render the following using 1.9.36 or 1.10.0

---
title: example
authors:
  - Christopher T. Kenny
format:
  typst:
    keep-typ: true
---

{{< lipsum 1 >}}

```{r}
dplyr::starwars |> 
  dplyr::glimpse()
```

Actual behavior

It no longer styles the pipe:

Image

Expected behavior

It should have a styled pipe. This is restored by changing to idiomatic, which is the default for pandoc:

---
title: example
authors:
  - Christopher T. Kenny
format:
  typst:
    keep-typ: true
    syntax-highlighting: idiomatic
---

{{< lipsum 1 >}}

```{r}
dplyr::starwars |> 
  dplyr::glimpse()
```
Image

Your environment

  • IDE: RStudio 2026.04.0 Build 439 (Daily build) / Positron 2026.03.0-212 (stable release)
  • Windows 11

Quarto check output

Quarto 1.10.0
[>] Checking environment information...
      Quarto cache location: C:\Users\chris\AppData\Local\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.0
      Path: C:\Users\chris\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: (not installed)
      Chrome Headless Shell: (not installed)
      VeraPDF: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\Users\chris\AppData\Roaming\TinyTeX\bin\windows\
      Version: 2026

[>] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: C:\Program Files\Google\Chrome\Application\chrome.exe
      Source: Windows Registry

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

[>] Checking R installation...........OK
      Version: 4.5.2
      Path: C:/PROGRA~1/R/R-45~1.2
      LibPaths:
        - C:/Users/chris/AppData/Local/R/win-library/4.5
        - C:/Program Files/R/R-4.5.2/library
      knitr: 1.51
      rmarkdown: 2.30

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

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking Julia installation...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtypst

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions