Aside blocks

An aside block sets content apart from the main text of a note, in a box that the main text can wrap around. It can hold any kind of content, such as formatted text, lists, tables or images, except another aside block.

Inserting an aside block

If you select content before inserting an aside, that content is relocated into the newly created block.

Color

A new aside block has a gray background, Dim grey in the palette. To change it, put the cursor inside the block and click the Background color button in the toolbar that appears above it. It offers the palette and the color picker () of the text background color, described in General formatting. Remove color makes the block transparent.

Like the colors of text, the background color adapts to the theme: Trilium shows it in a lighter or darker shade, so the text stays readable in both light and dark themes.

The Background color button is not available in the mobile layout.

Positioning

A new aside block sits at the right, with the main text wrapping around it. To place it elsewhere, put the cursor inside it and use the Box position button in the toolbar that appears above it. The menu has two groups:

  • Wrap text keeps the block at the side of the note, with the text flowing beside it: Align left or Align right.
  • Break text gives the block lines of its own, so the text continues only above and below it. Besides Align left and Align right, this group can also center the block ( Align center).

In the mobile layout, an aside block takes the full width of the note, so the text does not wrap around it and the block cannot be resized.

Resizing

To change the width of an aside block, put the cursor inside it and drag the handle at its bottom corner. The height adjusts automatically.

Removing an aside block

To delete the aside along with everything in it, click the handle at its top-left corner and press Delete.

Markdown

Aside blocks are kept when a note is exported to Markdown and imported back. For writing them by hand, see the aside section of Supported syntax.