Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Quarto default style (arrow-light) for code does not highlight dsBuiltIn and dsExtension, where arrow-dark does

未关闭 适合新手
#14,299 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
67/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
领域
tooling

调研方向

打开 src/resources/pandoc/highlight-styles/arrow-light.theme,并将其 BuiltIn 和 Extension 条目与 arrow-dark.theme 进行比较。检查 issue 中的 Quarto 示例文档,然后确认浅色样式在所显示的语言中为这些元素提供了定义明确且一致的文本颜色。

由索引模型根据 Issue 内容生成。

描述

bug themes
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

The quarto default code style (arrow-light) does not highlight BuiltIn or Extension, instead just presenting those code elements in all languages as default text. This is in contrast to most other themes, including the arrow-dark style.

I would expect (based on syntax highlighting documentation) they would minimally be highlighted using the same colours as Function/Variable/Other styles.

Steps to reproduce

Sample quarto doc with different languages, using default highlighting. In typst none/auto/true/false are all builtins. In python abs/dict are builtins, [:upper:] is an Extension, in terraform the functions are highlighted as builtins. In light mode these are all presented as normal text, in dark they get highlighting

---
highlight-style: arrow
theme:
  light: flatly
  dark: darkly
format:
  html:
    embed-resources: true
---

```typst
#let config = (
  debug: none,
  width: auto,
  visible: true,
)

#let show-box(width: auto, border: none, fill: false) = {
  let has-border = border != none
  box(width: width, stroke: if has-border { border } else { none })
}
```


```python
import re
from statistics import mean

x = abs(-5)

y = dict(
    z = 5,
    b = 1
)

z = mean((1,2,3))

s = re.compile(r"\w{2}\d+[[:upper:]]*")
```

```terraform
locals {
  name    = trimprefix(upper("  hello-world  "), " ")
  offset  = abs(-42)
  items   = sort(["banana", "apple", "cherry"])
  joined  = join(", ", local.items)
  hash    = substr(sha256("my-id"), 0, 8)
}
```

test.html

Actual behavior

See attached HTML files

Expected behavior

I would expect the arrow-light.theme in src\resources\pandoc\highlight-styles to define text-color for BuiltIn and Extension, rather than leaving it null.

The arrow-dark.theme does colour BuiltIn and Extension - making them the same colours as Char and Variable respectively. This could be replicated in the light theme for consistency, or alternatively I would expect using the Function colours for both would improve the situation without being over coloured.

Your environment
  • IDE: Positron 2026.03.0
  • OS: Windows 11
Quarto check output
> quarto check
Quarto 1.8.27
[>] Checking environment information...
      Quarto cache location: C:\Users\Michael.Walshe\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.8.27
      Path: C:\Program Files\Quarto\bin
      CodePage: 1252

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

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

[>] 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 Python 3 installation....OK
      Version: 3.14.0
      Path: C:/Users/Michael.Walshe/AppData/Roaming/uv/python/cpython-3.14.0rc2-windows-x86_64-none/python.exe   
      Jupyter: (None)

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

[>] Checking R installation...........OK
      Version: 4.5.2
      Path: C:/PROGRA~1/R/R-45~1.2
      LibPaths:
        - C:/Users/Michael.Walshe/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
主要语言
JavaScript
星标
6k
派生
458
平均合并
1 天 3 小时
30 天内合并 PR
54

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。