Closed hwang63130 closed 9 months ago
@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 reveal-md presentation.md
, images on both slides seem ok under the presentation mode.
But if I visit http://localhost:1948/presentation.md/?print-pdf/
, it appears the link to the local image is broken.
@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 When switching to the correct url, the local images is shown correctly.
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