quarto-dev / quarto-dev/quarto-cli

Identify and process revealjs metadata from command line option

Open
#10,812 1 comment 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Sep 16, 2024.

enhancement metadata revealjs
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Let's say you have this YAML header

format:
  revealjs:
    show-notes: true

It seems you can't do

quarto render index.qmd -M show-notes:true

and you need to do

quarto render index.qmd -M showNotes:true

This is because in former case the metadata will be

( "show-notes" , MetaBool True )

while Pandoc is expecting showNotes variable for the template.

This is happening in this specific case because metadata is passed while not associated to revealjs format.
When it is, we do provess the metadata in typescript

https://github.com/quarto-dev/quarto-cli/blob/5b0edd24765852bf4f32652cd8aeab1fcff25e0b/src/format/reveal/format-reveal.ts#L73-L74

https://github.com/quarto-dev/quarto-cli/blob/5b0edd24765852bf4f32652cd8aeab1fcff25e0b/src/format/reveal/metadata.ts#L23-L50

We should improve this.

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.