The figure in B.rst is included via a relative path (relative to B). When B is included into A, this path is included as-is and becomes invalid:
> pandoc --filter=pandoc-include -f rst -t pdf A.rst
[WARNING] Could not fetch resource diagram.jpg: replacing image with description
For that use case to work, I guess the $include should rewrite the paths to the figures and prepend the path from A to B, so that the relative paths become relative to A. Another option would be to convert them to absolute paths during the include, although I'm not sure how that fits into the overall pandoc-filter philosophy.
Hi,
I have the following folder structure and files:
A.rst:
B.rst:
The figure in B.rst is included via a relative path (relative to B). When B is included into A, this path is included as-is and becomes invalid:
For that use case to work, I guess the $include should rewrite the paths to the figures and prepend the path from A to B, so that the relative paths become relative to A. Another option would be to convert them to absolute paths during the include, although I'm not sure how that fits into the overall pandoc-filter philosophy.