quarto-dev / quarto-dev/quarto-cli
Linebreaks for urls does not work in bibliography
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
I have problems with linebreaks with long urls when rendering from Quarto to PDF. Also, the url is not formatted as an hyperlink, but this could also be a fail of the citation style (chicago).
Steps to reproduce
Reproducable Example in Quarto:
---
title: "testfile"
bibliography: references.bib
link-bibliography: true
format: pdf
---
# Heading
[see @nationaldemocraticinstitutePublicAttitudesGeorgia2016 and @nationaldemocraticinstitutePublicAttitudesGeorgia2022]
The Bibtex file:
@misc{nationaldemocraticinstitutePublicAttitudesGeorgia2016,
title = {Public Attitudes in {{Georgia}}, {{November}} 2016},
author = {{National Democratic Institute}},
year = {2016},
month = nov,
publisher = {Caucasus Barometer},
address = {https://www.caucasusbarometer.org/en/nn2016ge},
urldate = {2025-06-10}
}
@misc{nationaldemocraticinstitutePublicAttitudesGeorgia2022,
title = {Public Attitudes in {{Georgia}}, {{July-August}} 2022},
author = {{National Democratic Institute}},
year = {2022},
month = jul,
publisher = {Caucasus Barometer},
address = {https://www.caucasusbarometer.org/en/nj2022ge},
urldate = {2025-06-10}
}
Actual behavior
Behavior:
Expected behavior
Expected behavior:
The url should break within the margins.
Your environment
- IDE: RStudio 2025.05.0+496 "Mariposa Orchid" Release (f0b76cc00df96fe7f0ee687d4bed0423bc3de1f8, 2025-05-04) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2025.05.0+496 Chrome/132.0.6834.210 Electron/34.5.1 Safari/537.36, Quarto 1.7.32 (/opt/quarto/bin/quarto) - OS: Zorin OS 17.3 Education
Quarto check output
Quarto 1.7.32
[✓] Checking environment information...
Quarto cache location: /home/zuk/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.85.1: OK
Deno version 1.46.3: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.7.32
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (external install)
Chromium: 869685
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/zuk/.TinyTeX/bin/x86_64-linux
Version: 2025
[✓] Checking Chrome Headless....................OK
Chrome: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.12
Path: /usr/bin/python3
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.5.1
Path: /usr/lib/R
LibPaths:
- /home/zuk/R/x86_64-pc-linux-gnu-library/4.5
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.50
rmarkdown: 2.29
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Quarto reproducer in testfile.qmd and its references.bib, then render it to PDF with Quarto 1.7.32 and the Chicago citation style. Compare the bibliography URL wrapping and hyperlink behavior with the expected output; done means long URLs break within the margins and are formatted as links where appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, latex
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100