Collect inline glossary terms and link them to a generated glossary section. Definitions live in project metadata, and a placeholder block is replaced at render time.
quarto add Kangaa/glossaryThis installs the extension under _extensions. If you're using version control, check in this directory.
- Add glossary definitions to
glossary.qmdfront matter:
---
title: "Glossary"
glossary-include: auto # auto | all | used
glossary-sort: yaml # yaml | alpha
glossary:
- term: Quarto
definition: "An open-source scientific and technical publishing system."
- term: Filter
definition: "A script that transforms a document during rendering."
aliases: ["Filters"]
---- By default the filter looks for
glossary.qmdat the project root. - If you use a different file, set
glossary-pagein_quarto.ymlto point at it. - If
glossary-pageends in.qmd, it is rewritten to.htmlfor HTML output.
- Mark terms inline (hover to see the definition tooltip):
[Quarto]{.glossary}
[Quarto project]{.glossary term="Quarto"}- Add a glossary placeholder where entries should be inserted:
# Glossary
::: {#glossary}
:::Example book files: index.qmd, chapter-01.qmd, chapter-02.qmd, glossary.qmd.