-
DescriptionI'm currently going over all the types of extensions in Quarto, learning how they work so I can see whether they could be useful for me. The one type I can't figure out is The template created by Attached is a test I created, mde.zip. It contains a metadata extension called title: Mde
author: Carsten Allefeld
version: 1.0.0
quarto-required: ">=1.5.0"
contributes:
metadata:
project:
type: website
output-dir: _output
# pre-render: "echo pre-render"
post-render: "echo post-render"
preview:
port: 3333 Result:
So it seems that metadata extensions are even more limited than the documentation says ("only merge project-level metadata in the Without these limitations it would be very useful, e.g. modifying a format in a modular way, i.e. without defining a custom format. Quarto 1.5.57 on Debian 12.7 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
If you want to dig in the context, this is where it was added (#9953) towards solving #9948 Here is a use case: You want to provide an extension that offers some pre / post render script. Previously you only could it by offering a custom project extension. Now using a metadata type extension you can do it. Here is an example: https://github.com/qmd-lab/scheduled-docs This was a first version to solve some known usecase. There is indeed more to support. Hope it helps understand. |
Beta Was this translation helpful? Give feedback.
If you want to dig in the context, this is where it was added (#9953) towards solving #9948
Here is a use case: You want to provide an extension that offers some pre / post render script. Previously you only could it by offering a custom project extension. Now using a metadata type extension you can do it.
Here is an example: https://github.com/qmd-lab/scheduled-docs
This was a first version to solve some known usecase. There is indeed more to support.
Hope it helps understand.