Datasets:
Download tasks/quarto-dev__quarto-cli-13215/problem_statement.txt from CosmosMind/SWE-PolyVision: direct link, hf CLI and curl.
- Browser
- Download file 4.22 kB
-
https://huggingface.co/datasets/CosmosMind/SWE-PolyVision/resolve/main/tasks/quarto-dev__quarto-cli-13215/problem_statement.txt
- Command line
-
hf download hf://datasets/CosmosMind/SWE-PolyVision/tasks/quarto-dev__quarto-cli-13215/problem_statement.txt
-
curl -L -o problem_statement.txt https://huggingface.co/datasets/CosmosMind/SWE-PolyVision/resolve/main/tasks/quarto-dev__quarto-cli-13215/problem_statement.txt
4.22 kB
| Incorrect rendering of URL logos supplied to _brand.yml when rendering to HTML | |
| ### Bug description | |
| When brand logos are supplied via a URL, quarto renders the URL in the HTML using `\` instead of `/`. This will appropriately show the logo when previewing the render locally, but when pushed to a GitHub Pages site the URL gets converted to a relative path based on the current website. For example, if I have a logo hosted at `https://mysite.github.io/branding/logos/example.png`, and I try to link to it in the `_brand.yml` at `https://mysite.github.io/mypage`, the URL embedded in the html will convert the logo URL to `https:\mysite.github.io\branding\logos\example.png`, which will try to redirect to `https://mysite.github.io/mysite.github.io/branding/logos/example.png` (real example shown in the screenshot) | |
|  | |
| ### Steps to reproduce | |
| ````qmd | |
| --- | |
| title: "Reproducible Quarto Document" | |
| format: html | |
| brand: | |
| logo: | |
| images: | |
| quarto-logo: | |
| path:  | |
| alt: "Quarto icon" | |
| small: quarto-logo | |
| --- | |
| This is a reproducible Quarto document using `format: html`. It is written in Markdown and contains embedded Python code. When you run the code, it will produce a message. | |
| {{< lipsum 1 >}} | |
| {{< brand logo small>}} | |
| The end. | |
| ```` | |
| ### Actual behavior | |
| HTML renders the image as follows: `<img src="https:\quarto.org\quarto.png" class="img-fluid">` | |
| When shown in a local preview, this renders the image correctly. When hosted on an external website using GitHub Pages, this appends the image URL to the website URL | |
| ### Expected behavior | |
| HTML renders the image with the full URL: `` | |
| When shown on an external website in a browser, this should correctly render the image. | |
| ### Your environment | |
| - IDE: Positron 2025.05.0 build 58 | |
| - OS: Windows 11 | |
| ### Quarto check output | |
| ``` | |
| Quarto 1.7.29 | |
| [>] Checking environment information... | |
| Quarto cache location: C:\Users\Jonathan.Peake\AppData\Local\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.29 | |
| Path: C:\Users\Jonathan.Peake\AppData\Local\Programs\Quarto\bin | |
| CodePage: 1252 | |
| [>] Checking tools....................OK | |
| TinyTeX: (external install) | |
| Chromium: (not installed) | |
| [>] Checking LaTeX....................OK | |
| Using: TinyTex | |
| Path: C:\Users\Jonathan.Peake\AppData\Roaming\TinyTeX\bin\windows\ | |
| Version: 2025 | |
| [>] Checking Chrome Headless....................OK | |
| Using: Chrome found on system | |
| Path: C:\Program Files\Google\Chrome\Application\chrome.exe | |
| Source: Windows Registry | |
| [>] Checking basic markdown render....OK | |
| [>] Checking Python 3 installation....OK | |
| Version: 3.12.9 (Conda) | |
| Path: C:/Users/Jonathan.Peake/AppData/Local/miniforge3/python.EXE | |
| Jupyter: (None) | |
| Jupyter is not available in this Python installation. | |
| Install with conda install jupyter | |
| [>] Checking R installation...........OK | |
| Version: 4.4.2 | |
| Path: C:/Users/Jonathan.Peake/AppData/Local/Programs/R/R-4.4.2 | |
| LibPaths: | |
| - C:/Users/Jonathan.Peake/AppData/Local/Programs/R/R-4.4.2/library | |
| knitr: 1.50 | |
| rmarkdown: 2.29 | |
| [>] Checking Knitr engine render......OK | |
| ``` | |
| ## Relevant pre-fix discussion | |
| ### Issue #12643 | |
| #### Comment at 2025-04-29T18:50:18Z | |
| I also created a live GitHub Pages site from the reprex quarto file: https://jonpeake.github.io/quarto-reprex/reprex.html | |
| When accessed from site url: | |
|  | |
| When previewing locally: | |
|  | |
| #### Comment at 2025-04-29T22:43:45Z | |
| I followed the formatting used in this doc, which suggests that a URL is not only allowed but supported: | |
| https://quarto.org/docs/authoring/brand.html | |
|  | |
|  |