quarto-dev / quarto-dev/quarto-cli
Add an alias to target all slides format in `quarto.doc.isFormat()`
Open
@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
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.