Skip to content

Include short code inside code block seems buggy #9984

@eitsupi

Description

@eitsupi

Bug description

I wanted to include a script using a shortcode within a non-executable code block, but it doesn't seem to work.

Steps to reproduce

test.qmd

---
title: test
engine: markdown
format:
  gfm: default
---

````python
{{< include foo.py >>}}
````

foo.py

"""
```sh
echo "Hello, World!"
```
"""

Expected behavior

# test

````python
"""
```sh
echo "Hello, World!"
```
"""
````

Actual behavior

# test


\`\`\`\`python

Your environment

  • Debian 12

Quarto check output

$ quarto check
Quarto 1.5.44
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.44
      Path: /opt/quarto/bin

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

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

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

[✓] Checking Python 3 installation....OK
      Version: 3.11.9
      Path: /usr/local/bin/python3
      Jupyter: 5.7.2
      Kernels: python3

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

[✓] 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 workingshortcodesissues related to shortcodes

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions