borisdiakur / marked

Confluence macro plugin which renders remote Markdown.
https://marketplace.atlassian.com/plugins/com.borisdiakur.marked
BSD 3-Clause "New" or "Revised" License
46 stars 21 forks source link

relative paths #7

Closed ltutar closed 7 years ago

ltutar commented 7 years ago

Hi Boris,

One question: I get a 404 when I click on a relative path in confluence since the link is resolved as https://confluence.levent.com/display/DA/doc/guides/ldap-configure-members-groups.md

In Git, I have the following text as markdown:

Do you have any ideas to solve this issue with relative paths to other MD's and images?

Thank you in advance.

borisdiakur commented 7 years ago

Hi @ltutar , my plan was actually to keep this small plugin as stupid as possible, because I just do not have much time to maintain it (which I am really sorry about). But maybe there is someone else who would like to implement the feature, which consists of converting relative links to absolute links during rendering, and send me a PR. A good starting point would be here maybe: https://github.com/vsch/flexmark-java/issues/90 As a workaround I suggest to use absolute urls, which I know you thought about already. I’ll try to find some slack time for this issue.