matrix-spec/data/event-schemas/schema/components/m_text_content_block.yaml
Johannes Marbach a20ff4a09a MSC3765: Rich text in room topics
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2025-03-14 10:02:47 +01:00

29 lines
809 B
YAML

type: array
description: |-
An ordered array of textual representations in different mimetypes.
Senders SHOULD specify at least one representation and SHOULD always
include a plaintext representation.
Receivers SHOULD use the first representation in the array that
they understand.
title: TextContentBlock
items:
type: object
title: TextualRepresentation
properties:
mimetype:
type: string
description: The mimetype. Defaults to `text/plain` if omitted.
example: "text/html"
body:
type: string
description: |-
The string content.
Clients SHOULD validate and sanitize the content as they do
for rich content associated with [`msgtype`](#mroommessage-msgtypes)
of [`m.room.message`](#mroommessage).
required:
- body