arnaudsm / raito

Mini Markdown Wiki/CMS in 8kb of JavaScript
https://raito.arnaud.at
MIT License
106 stars 13 forks source link

How to write Markdown links that reference local webserver root path #52

Open Industry-Standard opened 3 weeks ago

Industry-Standard commented 3 weeks ago

@arnaudsm, Is it possible to do the equivalent of <a href="/">Home</a> or <a href="/subdir/a.html">Goto A</a> in Markdown in Raito?

I've tried many variations but had no luck, and all the examples (/subdir/a, subdir/b, etc) use relative backpathing, e.g. [home](../../..) in Markdown to get back to the homepage.

Any server root links do not work in markdown, e.g.

[Next](/dir1/) 

[Next](/dir1/README.md)

[Home](/)

Thanks for your time!

arnaudsm commented 3 weeks ago

It should be feasible without too much refactoring. That logic is located here

Sorry I have little spare time these days, contributions are welcome ! I might work on this later