Reputation: 3311
Quarto (or better, pandoc in the background) creates an intermediate Markdown file before preparing the final output.
Sometimes though a user would want to edit this file to add changes that would not need to run any code, like text changes, or adding comments. But the next round of rendering will remove these changes since it overwrites the file.
Is it possible to merge the rendered file with the existing Markdown, as git does for example? Maybe using some pandoc or YAML option?
Upvotes: 2
Views: 327
Reputation: 22609
As most things, this would certainly be possible, but also prohibitively hard to set up.
A much better way is probably to rely on Quarto's caching feature. This should prevent any unnecessary repetitions when running computations.
---
title: "My Document"
format: html
execute:
cache: true
---
See the link above for more info and alternatives, e.g., “freezing” the document by setting freeze: true
.
Upvotes: 0