quarto-dev / quarto-dev/quarto-cli

Confluence - cross-references leading to broken links

Open
#10,666 1 comment 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Aug 31, 2024.

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

Description

Bug description

When publishing to Confluence, cross-referencing for tables & images doesn't work.

Steps to reproduce
---
title: "Reproducible Quarto Document"
format: confluence-html
---

| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: My Caption {#tbl-letters}

Default cross-reference that doesn't work: see @tbl-letters.

Alternative cross-reference that does work: see <ac:link ac:anchor="tbl-letters"><ac:plain-text-link-body><![CDATA[table]]></ac:plain-text-link-body></ac:link>.
Expected behavior

Cross-reference links should take me to anchor point on page.

Actual behavior

Clicking on cross-reference link leads to broken link.

image

When I inspect the source code on Confluence, I see this for the broken link

<ac:link>
   <ri:attachment ri:filename="#tbl-letters" />
   <ac:plain-text-link-body><![CDATA[Table 1]]></ac:plain-text-link-body>
</ac:link>

If I modify the code to the following then it works

<ac:link ac:anchor="#tbl-letters">
   <ac:plain-text-link-body><![CDATA[Table 1]]></ac:plain-text-link-body>
</ac:link>
Your environment
  • IDE: VSCode 1.92.2
  • macOS Sonoma
Quarto check output
Quarto 1.5.56
[✓] 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.56
      Path: /Applications/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: /Users/soneill/Projects/workflow-research/.venv/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/

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.