You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix keep-md cleanup deleting the markdown output when output-file has an .html extension (#14671)
When a project pairs an html format with a markdown format and output-file
carries an .html extension (e.g. output-file: index.html, as nbdev sets on
every page for llms.txt workflows), the markdown twin's path (index.html.md)
coincides with the keep-md intermediate convention for the html format. The
html render's cleanup reclaimed that path as a stale intermediate and deleted
the freshly-written markdown output — a hard error at the output-move step in
website projects, a silent drop in default projects.
keep-md handling now never writes to or deletes a path a declared format owns.
This covers full multi-format renders, partial renders (quarto render --to html
must not delete a twin a previous full render produced, since outputs live in
place in default projects), and keep-md: true (the declared output wins; the
intermediate write is skipped with a warning).
Closes#14669.
Copy file name to clipboardExpand all lines: news/changelog-1.10.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,3 +115,4 @@ All changes included in 1.10:
115
115
- ([#14582](https://github.com/quarto-dev/quarto-cli/issues/14582)): Fix format detection for extension formats (e.g. `acm-pdf`) in project preview, manuscript notebooks, MECA bundles, and website format ordering.
116
116
- ([#14583](https://github.com/quarto-dev/quarto-cli/issues/14583)): Fix a shortcode used as an image source (e.g. ``) getting the `default-image-extension` appended, producing a doubled extension once the shortcode resolves.
117
117
- ([#14595](https://github.com/quarto-dev/quarto-cli/issues/14595)): Fix reload preview in code-server environment
118
+
- ([#14669](https://github.com/quarto-dev/quarto-cli/issues/14669)): Fix markdown output being deleted when `output-file` has an `.html` extension and an html format is paired with a markdown format.
0 commit comments