You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is sub.md
![remote image](https://upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg)
![local image](Markdown-mark.svg)
pandoc -L include-files.lua sub.md -o sub.pdf
It's OK.
pandoc -L include-files main.md -o main.pdf
[WARNING] Could not fetch resource https:/upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg: InvalidUrlException "https:/upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg" "URL must be absolute"
Replacing image with description.
the local image is OK, but the remote image not.
The text was updated successfully, but these errors were encountered:
I think it's because consider URL as relative path
-- If image paths are relative then prepend include file pathImage=function (image)
if (string.sub(image.src,1,7) ~="http://") and (string.sub(image.src,1,8) ~="https://") thenifpath.is_relative(image.src) thenimage.src=path.normalize(path.join({include_path, image.src}))
endendreturnimageend,
main.md
sub.md
It's OK.
[WARNING] Could not fetch resource https:/upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg: InvalidUrlException "https:/upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg" "URL must be absolute"
Replacing image with description.
the local image is OK, but the remote image not.
The text was updated successfully, but these errors were encountered: