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

Relative links do not work #97

Open
bpatath opened this issue Dec 20, 2024 · 0 comments
Open

Relative links do not work #97

bpatath opened this issue Dec 20, 2024 · 0 comments

Comments

@bpatath
Copy link

bpatath commented Dec 20, 2024

Hi,

I am using this plugin to write an architecture documentation. One thing that I would find very useful is that the diagrams include links to make navigation easier. It is easily doable using UML so this part is fine.

My issue is that when using relative URL, the URLs are broken due to how the image is being embedded. The current solutions are either:

  • <img> which are static and hence don't allow to click links
  • <object> which are dynamic, but URL are resolved relative to the data they are using, that is the folder used for image generation, NOT the current page URL. E.g. if i am on my/sub/section/index.html and I have a link to page1.html, the link will actually go to something like images/page1.html.

I did not find a lot of information online on a possible workaround, apart from using <svg> directly. Would you know of any workaround ? Or would it be possible to have a new output format that injects the svg directly in the form of an tag with content inlined ?

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

1 participant