mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

adressing relative to root not possible

Open Hoffenbar opened this issue 2 years ago • 1 comments

Question

How can one adress relativ to the root? I often reference the same images in documents somewhere in the arbitrary nested folder structure. I don't want to duplicate such images everywhere. Ok, I can create an assets-Folder in the docroot. But Sometimes I have to refer to it like ..\..\assets\xyz, sometimes like ..\..\..\assets\xyz, and so on - I always have to know how levels deep from the Root I am. If I specify `\assets\xyz', then an error occurs because this is treated as an absolute path which is not allowed. I.o.w.: How can I adress a specific folder in a uniform way, not having to know how many folders up it is?

Version

No response

Hoffenbar avatar Jan 27 '23 13:01 Hoffenbar

Absolute link support is not yet available. There is a PR at #1802 open to add that.

ehuss avatar Jan 28 '23 00:01 ehuss