Docs

Formatting messages

Bold, spoilers, links, lists, tables and formulas in direct messages and AI chats

A direct message and an AI chat use the same composer. What you type is formatted as you type it, and what you see in the box is what the other person sees.

Formatting a selection

Select some text and a toolbar appears above it: Quote and Spoiler, then Bold, Italic, Underline, Strikethrough and Monospace, then Link and Clear formatting. On a phone the toolbar sits above the box instead, so it does not cover the phone's own menu.

Every button has a keyboard shortcut, and the shortcuts work without the toolbar:

Format Windows and Linux Mac
Bold Ctrl+B ⌘B
Italic Ctrl+I ⌘I
Underline Ctrl+U ⌘U
Strikethrough Ctrl+Shift+X ⌘⇧X
Monospace Ctrl+Shift+M ⌘⇧M
Spoiler Ctrl+Shift+P ⌘⇧P
Quote Ctrl+Shift+B ⌘⇧B
Link Ctrl+K ⌘K

Typing the markup

If you prefer to type it, the composer turns the markup into formatting as you write:

You type You get
**bold** bold
*italic* italic
++underline++ underlined text
~~struck~~ struck
`code` code
||hidden|| a spoiler
$x^2$ a formula in the line
> at the start of a line a quote
- or 1. at the start of a line a list

C++ and a || b stay as typed: the markers only count when they wrap text without spaces inside them.

Spoilers

A spoiler hides its text until the reader clicks it, or reaches it with Tab and presses Enter. It is useful for the answer to a problem. A spoiler is never shown in the inbox, in the line quoted above a reply, or in search results; they show ▒▒▒ in its place. A spoiler cannot go in a table cell.

Sending and new lines

Enter sends. Shift+Enter starts a new line, and the line break is kept in the message.

The expanded editor

For a longer message, a proof or a table of results, open the expanded editor: the arrows button at the end of the box, or Expanded editor in the paperclip menu. It fills the conversation and adds a row of tools:

  • lists: bulleted, numbered and checklists;
  • Table: a table with a header row; Tab moves to the next cell and adds a row at the end;
  • Link: asks for the address, and for the text when nothing is selected;
  • Code block, with a language for highlighting;
  • Formula: write the LaTeX, choose In the line or On its own line, and see it rendered before you insert it. Click a formula in your text to change it.

In the expanded editor Enter starts a new line and Ctrl+Enter (⌘Enter on a Mac) sends. Sending, the collapse button or Escape takes you back to the conversation; the text is the same draft in both.

Attaching

The paperclip opens a menu. In a direct message it offers Photo and the expanded editor; you can also paste an image or drop it on the box. In an AI chat it offers Text or markdown file, and Photo when the model you picked can see images.

What the message stores

A message is stored as text in LibreTimes markdown, the same markdown described in the Markdown reference. That is what Copy puts on the clipboard, what the API returns, and what you can paste back into the composer to get the same formatting.