bouncepaw / mycorrhiza

🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language.
https://mycorrhiza.wiki
GNU Affero General Public License v3.0
300 stars 26 forks source link

How to add multiple images in the markup? #173

Closed the-digital-anarchist closed 2 years ago

the-digital-anarchist commented 2 years ago

Cool wiki.

I've got a question, how do I add multiple images (or other media) in the markup?

For now it seems like you only can upload one media item for one page and then it sticks it add the top...

I want to add multiple images in my markup with text in between, but how to do it?

Also when I upload a image to a page with media manager it uploads the image with the same name as the page, that seems pretty weird to me and also makes it impossible to use it in the markup. Shouldn't it then just name an image, with preferable a name you give it, and upload/store it with that name, so you can use it in the markup?

Update: when trying to remove the media it returns an error that there is no media to remove.

bouncepaw commented 2 years ago

You have a little misconception. When you upload an image, you don't add it to the page, you make a hypha which is that image (and which might also have a text description).

Also, Mycorrhiza works with hyphae, not with pages. See docs also.

And when you actually want to embed other images, use this syntax:

img {
   image name
   a different image name
}

See docs also.

Also when I upload a image to a page with media manager it uploads the image with the same name as the page, that seems pretty weird to me and also makes it impossible to use it in the markup.

It actually makes perfect sense! I think I should make a clearer indication on the media manager page, though.