-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Images don't appeared in exported PDF #64
Comments
Marp for VS Code should allow rendering local images by default, so I cannot reproduce reported issue on my macOS. Would you provide us more details? e.g. OS environment, versions of VS Code and extension, the file tree structure on your project workspace, console outputs by Marp CLI after exporting PDF (in |
Thanks. Marp CLI warnings are giving me the thing that something is wrong. (Typically I'll try to find the details of cause. As a workaround, you might export to HTML once, and convert from HTML to PDF by printing out with Chrome (Ctrl+P). |
Thanks!
On Thu, Aug 15, 2019 at 7:02 PM Yuki Hattori ***@***.***> wrote:
Thanks. Marp CLI warnings are giving me the thing that something is wrong.
(Typically local file accessing is enabled and blocked by security reason
do never output together)
I'll try to find the details of cause. As a workaround, you could export
to HTML once, and convert from HTML to PDF by printing out with Chrome (
Ctrl+P).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#64?email_source=notifications&email_token=ACUBCDN5JY2OJFX6KPQYBOLQEYDC5A5CNFSM4ILOIWX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4NOTQA#issuecomment-521857472>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACUBCDPAUZEJJ47VKPCFY4DQEYDC5ANCNFSM4ILOIWXQ>
.
--
Peace,
Rob
|
Hi, I am encountering this issue in v0.17.2 when exporting to PDF with VS Code (Ubuntu), I did not manage to get more logs. Exporting through the CLI in the terminal with |
I use typora to insert image in a global path fashion, then put the code in vscode to convert to pdf, vscode doesnt allow global path which I know, does this mean Marp cannot corectly export the image out to pdf too, or is there some workaround ? |
@jiewangjs It's just following VS Code's restriction, not the limit by Marp: Sometimes using local files with global path become potentially security risk about resource sniffing so VS Code cannot preview images that are not placed in the current workspace.
You can opt in to use local resources freely by using Marp CLI |
When I previews slides in VSCode and when I exported them to HTML, the images appear. However, when I export the same file to PDF, the images don't are missing.
Here is my code (I tried both HTML and standard markdown)
<img src="assets/potentiometer-482082_960_720.jpg" style="width:50px" /> ![width:300px](assets/1565313673103.png)
Here is the PDF export with the missing images
For comparison, here is the preview from VSCode with the images present
The text was updated successfully, but these errors were encountered: