Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no images appear in mobile view of .html file,but it appears on pc #583

Closed
nykbocks opened this issue Jul 19, 2024 · 4 comments
Closed

no images appear in mobile view of .html file,but it appears on pc #583

nykbocks opened this issue Jul 19, 2024 · 4 comments
Labels
need more info question 🙅 Not issue, just a question (should post to Marp discussion)

Comments

@nykbocks
Copy link

i dont know what to do,i've tried everething,but neithter the images or the custom fonts appear on the mobile view,but it works perfectly
on the pc,i dont know what more to explain,but the file is simple
slide.md

@yhatt
Copy link
Member

yhatt commented Jul 19, 2024

How are you delivering HTML file and assets to mobile devices?

@yhatt yhatt added question 🙅 Not issue, just a question (should post to Marp discussion) need more info labels Jul 19, 2024
@nykbocks
Copy link
Author

Aa a zip,i have this struct:
-slide.zip
--slide.html
--assets:
---*.PNG;

so you decompress the zip,and open it,in pc as said it works,but even if a decompress it in mobile,using Zarchiver on like the downloads folder and opening the file with chrome,no images appear.

@yhatt
Copy link
Member

yhatt commented Jul 19, 2024

In general, the present mobile OS allow browsing only a selected local resource due to security reasons. An opened HTML file may be isolated from file systems (by using content:// URI scheme when you are using Android). If so, it cannot access to any other local assets.

See also: https://stackoverflow.com/a/70578829

So you have to find a way to open the HTML with file:/// URI scheme, or opening HTML file through Web server instead. (That is outside the scope of Marp)

@yhatt
Copy link
Member

yhatt commented Jul 23, 2024

Close this issue because there are no issues in the HTML output of Marp CLI. To show the correct view on mobile devices, please consider delivering slides with assets through any Web server.

@yhatt yhatt closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info question 🙅 Not issue, just a question (should post to Marp discussion)
Projects
None yet
Development

No branches or pull requests

2 participants