Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc'd @mention support for pretext, text, & fields[X].value #1417

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ When sending an attachment, you can use any of the following to format how you w

![image](attachments-color.png)

`pretext`: An optional line of text that will be shown above the attachment.
`pretext`: An optional line of text that will be shown above the attachment. Supports @mentions.

![image](attachments-pretext.png)

`text`: The text to be included in the attachment. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. For long texts, the message is collapsed and a “Show More” link is added to expand the message.
`text`: The text to be included in the attachment. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. For long texts, the message is collapsed and a “Show More” link is added to expand the message. Supports @mentions.

![image](attachments-text.png)

Expand Down Expand Up @@ -53,7 +53,7 @@ Fields can be included as an optional array within `attachments`, and are used t

`title`: A title shown in the table above the `value`. As of v5.14 a title will render emojis properly.

`value`: The text value of the field. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}.
`value`: The text value of the field. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. Supports @mentions.

`short`: Optionally set to true or false (boolean) to indicate whether the `value` is short enough to be displayed beside other values.

Expand Down
Loading