SHFB icon indicating copy to clipboard operation
SHFB copied to clipboard

Markdown links miss the "md" file extension

Open SimoPrG opened this issue 11 years ago • 6 comments

Hi again,

Firstly, I would like to thank you for your fast response regarding my previous issue! I would also like to inform you that the links which SHFB generates miss the "md" file extension. For example <a href="270cb39d-5592-08d7-c0bc-f40f01bb1ae3">Printer</a> must be <a href="270cb39d-5592-08d7-c0bc-f40f01bb1ae3.md">Printer</a>

Here is a link to my project markdown documentation for more examples.

Thanks and Regards, Simeon

SimoPrG avatar Jul 05 '15 23:07 SimoPrG

That's normal. The output is geared towards GitHub wiki output which doesn't generate extensions on its links either. Once uploaded to the project wiki, they do work as expected.

EWSoftware avatar Jul 06 '15 01:07 EWSoftware

Thanks for the replay! I didn't realize the output is for the wiki. There the links work like a charm. You helped me a lot and I am very grateful!

Cheers!

SimoPrG avatar Jul 06 '15 05:07 SimoPrG

Hi Guys, thanks for the reference to this issue. But once I uploaded the mds they don't work as expected for me. If I follow the example link above, after following the first link I get: 2015-07-17_14h32_15

moethu avatar Jul 17 '15 13:07 moethu

As noted above, the output is intended for wiki sites, not the source repository. I could add the extensions but even then, there's no guarantee the content would work as expected in all cases. Upload the content to the project wiki and it will work as expected.

EWSoftware avatar Jul 17 '15 15:07 EWSoftware

Hi, sorry, my fault, I skipped the wiki part. What do you think about an optional solution, a checkbox enabling links to contain the md suffix? I'm asking because if one is maintaining several repos, cloning and maintaining the wiki repo as well doubles the amount of local repos and therefore commit transactions.

moethu avatar Jul 18 '15 09:07 moethu

No, adding the extensions to the links breaks the wiki content as then it just shows the raw content. As stated, the presentation style is for wiki output not source repos. The output deployment plug-in can be used to copy the content to the wiki repo location and one extra push doesn't require that much effort.

EWSoftware avatar Jul 18 '15 18:07 EWSoftware