Skip to content

Conflict between code annotation and reference-able code listing  #9703

Open
@mkdjr

Description

@mkdjr

Bug description

Hi there! When adding a listing label and caption to an HTML code block that I have already annotated using code annotation, the code annotation functionality disappears (note: the numbered list of annotations are still present, but their formatting and corresponding icons in the code block are not). The listing functionality is, however, present. It seems as though they are mutually exclusive.

Steps to reproduce

```{.python filename="run_experiments.py" #lst-corpus-gen lst-cap="Corpus Loading/Generation Logic"}
line 1 # <1>
line 2 # <2>
```
1. annotation 1
2. annotation 2

Expected behavior

I am able to cross-reference a labelled HTML code block while still using code annotations.

Actual behavior

Either code annotation or code block labeling/captioning are functional independently. When combined, code annotation does not work as expected.

Your environment

  • IDE: VSCode 1.89.1
  • OS: Windows 19045.4291, using WSL 2

Quarto check output

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.550
      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: /home/mkdjr/.pyenv/versions/pytorch-env/bin/python3
      Jupyter: 5.7.2
      Kernels: python3, crs-data-kernel, global-kernel, pytorch-env-kernel

[✓] 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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions