File paths in custom CSS #86
-
I only found out about MARP last week, and I'm already a huge fan! I would like to use it for my weekly research meetings, but my slides need to conform to my university's style guidelines. I've worked with SASS/CSS before, so I figured out most of it easily enough. However, I'm trying to figure out how to properly set an image background in SCSS (building off the Gaia theme) and I'm having some trouble with relative file paths. I was able to compile from SCSS to CSS fine, and I can use my custom theme with an image background. However, all image paths appear to work relative to the P.S. I know we can use Any help is appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As Marp team's position, we don't recommend to use local image assets because Marp treats as that using local file has some potential security risks (e.g. Marp CLI requires manually setting Workarounds have already discussed in the same issue marp-team/marp-vscode#181. You can take following either one:
|
Beta Was this translation helpful? Give feedback.
As Marp team's position, we don't recommend to use local image assets because Marp treats as that using local file has some potential security risks (e.g. Marp CLI requires manually setting
--allow-local-files
).Workarounds have already discussed in the same issue marp-team/marp-vscode#181. You can take following either one:
https://
. For example, D&D your image to GitHub's textbox and use the uploaded image viabackground-image: url('https://user-images.githubusercontent.com/...');
. (Disclaimer: It's not always retained for the future)