Skip to content
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

Incorrect relative path when performing "paste converted" #647

Open
3rady opened this issue Jun 19, 2024 · 1 comment
Open

Incorrect relative path when performing "paste converted" #647

3rady opened this issue Jun 19, 2024 · 1 comment

Comments

@3rady
Copy link

3rady commented Jun 19, 2024

I am using AsciidocFX version 1.8.9 on Windows.

When using the "paste converted" function to add images to a document/project, AsciidocFX seems to be adding an extra (and incorrect) ../ (or go up one directory in the tree) prefix to the path of the image file. This does not seem to bother AsciidocFX, but when I use the same document with other tools (asciidoctor), the other tools do not accept the path.

Here is an example:

  1. Create a new folder C:\Temp\AsciidocFX-Test and set it as your work directory in AsciidocFX.
  2. Create a new document called Index.adoc in the work directory and open it.
  3. From another application, copy an image to the Windows clipboard.
  4. Right-click within the edit window for Index.adoc and select Paste converted.
  5. This creates folder C:\Temp\AsciidocFX-Test\images and places the new image file there, which is expected.
  6. For me, image::../images/Image-190624-032332.809.png[] was inserted into my document

I assert that the relative path to the image file from the Index.adoc's location should be images/Image-190624-032332.809.png (or ./images/Image-190624-032332.809.png). In order to get other tools to successfully process my documents, I must first manually edit the paths (to remove the extra ../ prefix) from all image files I have added, which is often quite a lot.

@newbie-02

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants