Originally created by: t_hoffmann
See for example https://sourceforge.net/p/texstudio/discussion/907840/thread/0363a1f4/#9611
I added an attachment named custom_build.png and the following source code: [[img src=custom_build.png]]
Expected Result: The image is shown within the post.
Actual Result: an empty placeholder appears instead of the actual image.
Reason: My code is converted to a relative url ./attachment/custom_build.png
. This expands to an absolute url of
https://sourceforge.net/p/texstudio/discussion/907840/thread/0363a1f4/attachment/custom_build.png
But the actual storage location seems to be
https://sourceforge.net/p/texstudio/discussion/907840/thread/0363a1f4/9611/attachment/custom_build.png
Note the extra level /9611
, which is missing when the relative url is translated to an absolute one.
Using the absoule link attachment can be used in anywhere in the forge markdowns. This task can be made easy if we add another button in attachment button set to copy the absolute link of a specific attachment to clipboard then user can easily get absolute link and use with img macro
ideas?