quarto-dev / quarto-dev/quarto-cli
llms.txt: HTML tags in website.title are not stripped
@cderv is already working on this.
Since Jun 11, 2026.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When website.title contains HTML tags (e.g. <small>), those tags appear verbatim in the generated llms.txt file. For example, a title like:
website:
title: "My Site <small>Version 1.0</small>"
produces an llms.txt opening line of:
# My Site <small>Version 1.0</small>
The HTML markup should be stripped so llms.txt contains plain text.
Steps to reproduce
# _quarto.yml
project:
type: website
website:
llms-txt: true
title: "My Site <small>Version 1.0</small>"
format:
html:
theme: cosmo
Render and inspect _site/llms.txt — the opening heading contains the raw HTML tag.
Relevant code
The site title is written directly without any HTML stripping:
Notes
Reported by the Connect team, where a documentation site uses <small> in the title alongside an env shortcode. The shortcode resolution part is already handled by #14237. This is the remaining piece: HTML markup in website.title is not stripped before being written to llms.txt.
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.
Assessment
This issue has not been assessed yet.