quarto-dev / quarto-dev/quarto-cli

Add an alias to target all slides format in `quarto.doc.isFormat()`

Open
#2,305 0 comments 1 reaction 1 assignee View on GitHub

@cderv is already working on this.

Since Sep 5, 2022.

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

Description

Bug description

It could be useful to add one alias for all slides output in our the format detection utility function (https://quarto.org/docs/extensions/lua.html#format-detection) so that it is easy to target slides in a Lua filter only for slides.

Example: Removing Pause syntax

Para = function(e)
  if (not quarto.doc.isFormat("revealjs") or not quarto.doc.isFormat("beamer") or not quarto.doc.isFormat("pptx")) then
    if (e == pandoc.Para '. . .') then
      return {}
    end
  end
  return nil
end

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.