Skip to content

SAS code cells do not render correctly #14195

@michaelwalshe

Description

@michaelwalshe

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

SAS code cells do not render as code, despite being supported with comment chars for e.g. eval options and being a knitr execution engine

Steps to reproduce

---
title: "Test SAS Code Cells"
engine: "knitr"
format: html
---

SAS as execution engine, properly parses comment chars but does not display as a code cell.

```{sas}
*| eval: false;
data _null_;
    putlog "Hello from SAS";
run;
```

SAS as CSS class.

```{.sas}
data _null_;
    putlog "Hello from SAS";
run;
```

SAS as markdown.

```sas
data _null_;
    putlog "Hello from SAS";
run;
```

Example with e.g. stata for what should happen.

```stata
display "Hello from Stata"
```

Actual behavior

The above renders to HTML as:

HTML rendering of the quarto document above, SAS blocks do not have code backgrounds or copy buttons

Expected behavior

Should instead render like (produced by setting all to default):

HTML rendering of a quarto document, with all blocks having grey backgrounds and code copy buttons

Your environment

  • IDE: Positron 2026.03.0
  • OS: Windows 11, also tested on WSL Ubuntu 24.04

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/source/personal/scratch/renv/library/windows/R-4.5/x86_64-w64-mingw32
        - C:/Users/Michael.Walshe/AppData/Local/R/cache/R/renv/sandbox/windows/R-4.5/x86_64-w64-mingw32/ebc25411
      knitr: 1.51
      rmarkdown: 2.30

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-blocksenhancementNew feature or requestthemesRelated to HTML theming or any other style related issue (like highlight-style)upstreamBug is in upstream library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions