quarto-dev / quarto-dev/quarto-cli

Specify which portions of the YAML namespace are safe for extensions

Open
#3,919 1 comment 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jan 10, 2023.

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

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/3918

Originally posted by ThierryO January 10, 2023
With version 1.1.189 we could add custom variables to the book settings in _quarto.yml and use them in the template. The example below provided $book.reportnr$ in the template.

book:
  title: my title
  reportnr: 99999

After upgrading to version 1.2.313 this results in an error property name reportnr is invalid. How can we pass custom variables to a template in an extension?

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.