Replies: 2 comments 5 replies
-
Marp CLI does not have an ability to show missing files, but you can do the same thing easily by using the browser with HTML export. Export HTML into next to the Markdown file and open it in the browser that has enabled Developer Tools (F12). In the "Network" tab, missing resources while loading HTML will highlight. |
Beta Was this translation helpful? Give feedback.
-
I am having a similar problem. specifically, it is about a css file. I try to @import a sub-css file in my theme file. /* @theme my-theme */
@import 'default'
@import '/themes/utils/sub-file.css'
... my shell promt is: $ npx marp slides/slideTemplate.md --theme themes/my-theme.css --allow-local-files --html
[ INFO ] Converting 1 markdown...
[ INFO ] slides/slideTemplate.md => slides/slideTemplate.html
$ npx marp slides/slideTemplate.md --theme themes/my-theme.css --allow-local-files --html --pdf
[ INFO ] Converting 1 markdown...
[ WARN ] Insecure local file accessing is enabled for conversion from slides/slideTemplate.md.
[ WARN ] The local file is missing and will be ignored. Make sure the file path is correct.
[ INFO ] slides/slideTemplate.md => slides/slideTemplate.pdf The substyle is missing in the pdf, but working in html version. What did I get wrong with the include? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get a list of what local files are missing?
I am using marp cli to create PDFs. (this is a great workflow for my class lectures)
The terse error message is usually good. But sometimes, being told "[ WARN ] Some of the local files are missing and will be ignored. Make sure the file paths are correct." isn't enough - I'd like to know which local files (what lines in the markdown file).
(skimming over a 100 page lecture to find the missing image can be tricky)
Is there a way to get more verbose warning messages from the CLI?
Thank you,
Mike
Beta Was this translation helpful? Give feedback.
All reactions