-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Image not rendering in the PDF #53
Comments
To be precise, this is the error I get in the GitHub Action logs
|
Update: I tried to fix the Workflow, but it still isn't working. THis is the current code: # Previous code
- name: Build PDF document
uses: baileyjm02/markdown-to-pdf@v1
with:
input_dir: Journals
output_dir: pdf
images_dir: Journals/images
# for example <img src="./images/file-name.png">
image_import: ./images
build_pdf: true
build_html: false
# ... I followed as per the Documentation provided, but it still doesn't work. @BaileyJM02 if you kindly suggest the way to fix this, or let me know if it's alright to give you access to investigate what needs to be fixed. |
@BaileyJM02 |
What is the current output / error since your last code change? |
It only shows the broken image icon, and the I tried all the fixes suggested in previous issues, as well as writing it in Markdown instead of I don't get any error in the GitHub Actions logs now, but neither is the image being rendered either. |
I'd be happy to give you access to the repository to show you how it works. |
Sure, make sure to run the action outputting the HTML while we're debugging |
In the above image, I've put both HTML and Markdown to show that both aren't rendering. provided.
<div align="center">
<img src="images/Research_Venn_Diagram.png" alt="Research Venn Diagram" width="60%" />
</div>
![Research Venn Diagram](images/Research_Venn_Diagram.png)
As shown in the above diagram, ... |
Hey @BaileyJM02 Just wanted to follow-up on this issue. |
Update: I tried using |
Troubleshooting local dev as I haven't touched the repo in a while. Once fixed will look into the issues you've raised. |
Hey @BaileyJM02 Any update on this issue and #54 ? |
I have given you access to the repository. |
Thank you, that's super useful. I've allocated some time to debug this tomorrow - will get back to you on progress. What's the deadline for submission for your work? |
By this Friday I need to submit it. |
Unfortunately I've been looking into this for a few hours and haven't been able to resolve the issue. I've tried rolling back versions and all sorts. It might be that a dependancy has not followed semantic versioning and released a breaking change but I'm unable to investigate that far as I've ran out of time. |
@cr2007 here is a short suggestions to fixe the issue:
and now important, in your markdown file you should try this:
where the path for the image itself is: |
So you mean like state the Absolute path, instead of the relative path? Would that be the fix to the issue? |
@cr2007 I didn't look at the sourcecode so I wouldn't suggest it as a fix. But try it out and check if it works. |
Tried this to long back in here, I'm happy to give you access to the repository if it helps in resolving the issue |
As part of the discussion in #17, I tried the steps provided in the suggestions provided by the other users.
I also followed all the appropriate steps as provided in the documentation, but it is still not producing the images when the converted PDF file is released.
Here is the excerpt of the workflow:
My markdown files are stored in
Journal
directory, and images are stored inJournal/images
directory.I even tried adding single quotes over the directory names (string values), but it still wasn't rendering in that area.
This is the code that was added in the Markdown file:
Is there anything in particular I would need to fix this issue?
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: