Skip to content

Images

View Markdownllms.txt

An image in Ribalta is written as in Markdown: ![description](address). The address can be an image stored by the program you write in or an https:// link.

A stored image is referenced with asset: followed by its identifier. The program you write in takes care of storing the file and of writing this reference for you:

![sales-chart](asset:3f2b8c1e-7a4d-4e9b-9c2a-1d5e6f7a8b9c)

Write a description in brackets that says what the image shows.

You can also use an image published on the web, with an address that starts with https://:

# Our office
![Mountains at sunrise](https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200){h=640 radius=lg}

An image on a line of its own is a block. Attributes go in braces, right after the address:

AttributeWhat it does
fit=containShows the whole image inside the area. This is the default.
fit=coverFills the whole area, cropping the edges if needed.
w, hWidth and height, in pixels (480), percentage (50%) or full.
radiusRounds the corners: sm, md, lg or pixels.
shadowShadow: sm, md, lg or none. On its own, it means md.
borderBorder, such as border="4 accent".
opacityTransparency, from 0 to 1 or as a percentage.

fit only makes a difference when the area has a different shape from the image, for example when you set both w and h:

::: columns {gap=lg}
![Whole landscape](https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200){fit=contain h=560}
![Cropped landscape](https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200){fit=cover h=560 radius=lg shadow}
:::

To place text next to an image, use columns. See Layout.

An image inside a paragraph flows with the text and is as tall as the letters. Attributes go right after it, with no space:

# Partners
Supported by: ![logo](https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200){radius=sm} Horizon Foundation {size=2xl}

To change its size, change the paragraph size or set h on the image.

The image attribute places an image in the background of a page or a block. It covers the whole area and stays centered:

--- {image=https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200 color=white align=center}
::: box {bg=ink/60 pad=xl radius=lg}
# Planning 2027 {size=5xl}
Annual leadership meeting {.lead}
:::

image accepts the same addresses as regular images: https:// or a stored image (image=asset:…).

--- {image=asset:3f2b8c1e-7a4d-4e9b-9c2a-1d5e6f7a8b9c}
::: box {image=asset:3f2b8c1e-7a4d-4e9b-9c2a-1d5e6f7a8b9c h=400 radius=lg}
:::
CodeWhen it happens
R301Address not allowed: it does not start with https:// and is not a stored image (asset: followed by the identifier).
R301fit with a value other than cover or contain.
R209Unknown attribute on the image, such as fitt.