As you probably know, [Hugo renders content](https://gohugo.io/content-management/organization/) from a path such as `content/section/my_page.md` to `publish/section/my_page/index.html`.  This breaks the default image links, which assumes the rendered version remains at the same directory depth, instead of being promoted from `section/` to `section/my_page`.  Thus `index.html` will contain figure links like `my-page.markdown_strict_files/figure-markdown_strict/pressure-1.png` which do not resolve, because it should be `../my-page.markdown_strict_files/figure-markdown_strict/pressure-1.png`.  


I thought I might be able to work around this with knitr `fig.path` options, but that just opens a rabbit hole (e.g. `fig.path="../`" doesn't help any, but has the side effect of two copies of the figure being created, one with `my-page.markdown_strict_files/figure-markdown_strict` path and one with no additional path.  The `.md` and `.html` use the one with no additional path, but this only causes more chaos with hugo's mapping conventions....


cscheid
2023-01-07T00:26:10Z
cboettig
hugo
v1.3
closed
figure paths are broken in hugo-md format
https://github.com/quarto-dev/quarto-cli/issues/3930