-
Notifications
You must be signed in to change notification settings - Fork 417
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
?print-pdf can't find local images #467
Comments
@hwang63130 can you attach some demo repository to check the issue? |
@vvscode Here is a very simple example with only 2 slides. The first slide contains an image linking to the reveal.js homepage, while the second pointing to the local page. https://github.com/hwang63130/reveal-md-example By running But if I visit |
It works fine for me |
@vvscode Thanks for the response. But not sure what went wrong but I still get the same broken link on both of my Windows machines (one with Windows 10 and the other with fresh installed Windows 11/Node LTS/reveal-md). I don't have Linux/Mac machines in hand so I am not sure if it is a Windows-only issue. |
Have you inspected the page? Please run build command and attach results here in archive, also what is the directory name for you? Are you using wsl? |
OK. I know what I did wrong. I have been using the url http://localhost:1948/presentation.md/?print-pdf instead of http://localhost:1948/presentation.md?print-pdf Sorry for the stupid mistake. |
Not sure what's wrong. But here is an example
example.md
file.When I trying to print the pdf via
http://localhost:1948/example.md/?print-pdf
, the image on the first page is correctly displayed while the local image on the second page is shown missing.node version 20.9.0
reveal-md version 5.5.2
The text was updated successfully, but these errors were encountered: