quarto-dev / quarto-dev/quarto-cli

Quarto should error or warn on broken links

Open
#2,665 0 comments 4 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Nov 15, 2022.

enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Is it currently possible to get quarto to error on broken links, instead of just warning about them, even if this is opt-in? Having it exit successfully when there are broken cross-links like this makes it harder to include quarto in automated workflows. Especially if multiple people are working on a site, it can mean that these breakages go unnoticed.

Related: https://github.com/r-lib/urlchecker/issues/27

even if it doesn’t error, it would be super useful to print all the broken links at the very end of building a book

Checklist
  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

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.