Explain the syntax of the format: option in YAML (the '-' has meaning) #11498
-
DescriptionI recently forked an extension to change it, and subsequently renamed some things. However, I was confused as to how the
The It was confusing to me because that specification isn't in the If I'm understanding correctly, it would be problematic to (re)name an extension |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The format syntax is title: Lexdoc
author: J.J. Allaire
version: 1.0.0
quarto-required: ">=1.2.222"
contributes:
formats:
+ html:
toc: true
theme: [yeti, custom.scss] Where usually, the Edit:
|
Beta Was this translation helpful? Give feedback.
The format syntax is
<extension-name>-<format>
when to use it.title: Lexdoc author: J.J. Allaire version: 1.0.0 quarto-required: ">=1.2.222" contributes: formats: + html: toc: true theme: [yeti, custom.scss]
Where usually, the
title
is used in lowercase for the directory:_extensions/lexdoc/_extension.yml
Edit:
-
does not have "meaning".The thing that as meaning is that the last word is supposed to be a format known to Quarto, so in your example you need
tech-report-html
as format …