quarto-dev / quarto-dev/quarto-cli

Conflict between code annotation and reference-able code listing

Open
#9,703 7 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since May 17, 2024.

bug code-annotation crossref
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

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/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.