vscode-R
vscode-R copied to clipboard
VSCode preview of rmd file, fails to load images from path with special characters
trafficstars
Describe the bug
linking to an image with special characters in the path, will not render in the preview pane, but will show up in html doc.
To Reproduce Steps to reproduce the behavior:
- make a .rmd file
- link to an image with special character in path. like so:

Do you want to fix by self? (We hope your help!)
No, I have no idea where this fails.
Expected behavior
The image renders, even tough the path contains a special character.
Environment (please complete the following information):
- OS: Windows 11
- VSCode Version: 1.66.2
- R Version: 4.1.3
- vscode-R version: 2.4.0
Additional context
OUTPUT:
"C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS "C:/Users/ChristianSteingrund/.vscode-R/tmp/Main.knit.md" --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoc82dc70c8a63.html --lua-filter "C:\Users\CHRIST~1\ONEDRI~1\DOCUME~1\R\WIN-LI~1\4.1\RMARKD~1\RMARKD~1\lua\PAGEBR~1.LUA" --lua-filter "C:\Users\CHRIST~1\ONEDRI~1\DOCUME~1\R\WIN-LI~1\4.1\RMARKD~1\RMARKD~1\lua\LATEX-~1.LUA" --self-contained --variable bs3=TRUE --standalone --section-divs --table-of-contents --toc-depth 3 --template "C:\Users\CHRIST~1\ONEDRI~1\DOCUME~1\R\WIN-LI~1\4.1\RMARKD~1\rmd\h\DEFAUL~1.HTM" --no-highlight --variable highlightjs=1 --variable theme=bootstrap --mathjax --variable "mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\CHRIST~1\AppData\Local\Temp\RtmpkZUENQ\rmarkdown-str82dc7a6a5bcf.html"
[WARNING]
Could not fetch resource mæn/2022-04-13-12-59-42.png
Output created: C:/Users/ChristianSteingrund/.vscode-R/tmp/73edfab8bbd10a5c2166d5a6be8fea307340d6ba2d0041fd3e080a8de0398e97.html
<<<vsc>>>C:/Users/ChristianSteingrund/.vscode-R/tmp/73edfab8bbd10a5c2166d5a6be8fea307340d6ba2d0041fd3e080a8de0398e97.html<<<vsc>>>
[VSC-R] Main.Rmd process exited with exit code 0
EDIT:
This is only an issue with the preview. The Rendered html file has all images, with no errors.