Loading...
 
Skip to main content

Features / Usability


What is the Markdown syntax for using images in the image gallery?

posts: 2432 Czech Republic

Hi Jay,
thanks! You can use the following markdown syntax in Tiki if you have SEFURLs enabled:

Copy to clipboard
{MARKDOWN()} ![My Image](./display14) {MARKDOWN}


Lets test it here:

!My Image(./display2188?x=640 "Tiki Oven")


Optionally you can add some attributes:

Copy to clipboard
{MARKDOWN()} ![My Image](./display2188?x=640 "Tiki Oven"){.img-fluid width="400"} {MARKDOWN}


See the Commonmark docs: https://commonmark.thephpleague.com/1.5/extensions/attributes/

luci

waterglass wrote:

Greetings,
The Markdown plugin is wonderful. What syntax do you use to access images in the gallery (database)? In Markdown, I would include an image with the following code:

Copy to clipboard
![My Image](./photos/myimage.jpg)


With Tiki I would reference an image from the galley with the following code:

Copy to clipboard
{img width=400 id=14}


I guessed at the following syntax but neither one generates an image.

Copy to clipboard
{MARKDOWN()} ![My photo](img width=400 id=14) @import "img width=400 id=14" {MARKDOWN}


I haven't found any documentation on how to access images using Markdown plugin syntax. Would someone post a link to the Markdown language reference showing how to access Tiki Wiki images or suggest the proper syntax when uses the Markdown plugin to Tiki Wiki?
Sincerely,
Jay Morreale

There are no comments at this time.