From 52092ac3a9aaba765cc51359cf585f36efd6d0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= <40836345+signekb@users.noreply.github.com> Date: Wed, 5 Mar 2025 18:14:05 +0100 Subject: [PATCH] fix: :bug: only remove qmd files in reference post render to fix md formatting issues (#1107) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Removing the entire `reference/` folder post-render is problematic because the `_sidebar.yml` file in this folder is referenced under `metadata-files` in `_quarto.yml`. When this file is removed post-render, it seems to disrupt Quarto's functionality in VS Code, affecting its visual mode. As a result, formatting (including column wrapping at length 72) doesn't work as expected. Changing the post-render process to remove only `qmd` files resolves this issue, since (as far as I understand) preserving `_sidebar.yml` ensures that `_quarto.yml` remains valid and maintains an uninterrupted visual mode. Please check if this works for you locally by: 1. Go to this branch 2. Run `just build-website` (to get the `_sidebar.yml` back) 3. In an `md` or a `qmd` file, go to visual mode, save it, and go back to source mode. Is the formatting still OK after these steps for you as well? 🤞 Closes #1089