Can change the Quarto working directory in one line?

The project structure looks like this:


In quarto.qmd, it has the following codes:

!["Image title"](./image.png)

Now I create a Quarto project, the file structure is changed to this:

└───quarto project

I have 2 questions:

  1. Can I change the default working directory in quarto.qmd to ../ in just one line? There are so many of the image and I don't want to change them one by one everytime.
  2. Changing !["Image title"](./image.png) to !["Image title"](../image.png) somehow doesn't seem to work in a Quarto project. It seems to parse the path to root/.../image.png.

knitr::opts_knit$set(root.dir = '../') or

    root.dir: "../"

seem to change only the code, not the image path.