Re: Chrome Asciidoctor.js plugin environment variables
Posted by yo on
URL: https://discuss.asciidoctor.org/include-and-imagesdir-in-different-folders-tp8154p8158.html
Yes, I would prefer to keep it portable, however, as I said, I use some include. And the asciidoctor.js processes can not resolve them when they are not in the same folder.
Example of file system:
file1.ad
test/file2.ad
file1.ad
Bla bla
include test/file2.ad
test/file2.ad
:imagesdir: ../../src/img/
Bla bla bla
image::test.png[Test]
Then, the image will render for test/file2.ad but it won't for file1.ad as, I guess, it stays in the same path and the :imagesdir: ../../src/img/ then doesn't work.
Am I missing something, do you have a solution for that?