reveal-md icon indicating copy to clipboard operation
reveal-md copied to clipboard

Why are images that are not in the same folder not recognized?

Open ooker777 opened this issue 1 year ago • 6 comments

It seems that only images in the same folder are recognized. If it's in the parent then it won't work. Is this a conscious choice or you don't have the time to work on it?

ooker777 avatar Jul 09 '24 15:07 ooker777

It was a conscious choice to keep things simple. Assets and images should be in the same or sub folders.

webpro avatar Jul 09 '24 16:07 webpro

I get that it is indeed simple. But in my project I'd like to keep the image folder and note folder separated, as there are images shared by various notes. Those notes can be in their own subfolders. So having to duplicate the images will make noise when I need to manage the notes only, and hard to keep track the version. In that case do you think it's better to allow the relative path to access parent directories?

ooker777 avatar Jul 09 '24 16:07 ooker777

The challenge was that reveal-md is basically a simple http server that serves static assets and also allows to export it all as a stand-alone HTML website.

Feel free to take a stab at it though, I'm happy to review PRs.

webpro avatar Jul 09 '24 17:07 webpro

I'm still not sure what simplicity this achieves. Is it for the users or for the devs? I'm not working on it yet, but I imagine it should be no problem for the server to get files from parents?

ooker777 avatar Jul 10 '24 05:07 ooker777

In the end it's just putting in the work to achieve something. I once had this idea to build something that allows to write Markdown and spin up a Reveal.js deck. It does what I need. Other can use it too. Others can contribute too. This is where we are today :)

webpro avatar Jul 10 '24 08:07 webpro

Yeah I understand that. I just want to know why you make that decision, that's all. Not intend to ask you to work on it :)

ooker777 avatar Jul 10 '24 09:07 ooker777

[!WARNING]

reveal-md is no longer in active development.

No new features will be added. Pull requests for bug and documentation fixes will be considered. Occasional dependency upgrades and CVEs might happen.

Thanks for using reveal-md! Please consider these Markdown-based alternatives:

webpro avatar Feb 25 '25 11:02 webpro