# Message formatting

Glue uses markdown to format messages. The following features are supported:

* Text styling
  * Bold
  * Italics
  * Strikethrough
* Links
* User mentions
* Inline code
* Code blocks
* Blockquotes
* Paragraphs
* Lists
  * Ordered
  * Unordered

These features are described in detail below.

## **Text Styling**

**Bold**

To make text bold, wrap it with two asterisks (`**`) or two underscores (`__`). For example:

```
**This is bold text**
__This is also bold text__
```

Displays as:

<figure><img src="/files/aEaVQBbEcaed6Vxecz5H" alt=""><figcaption></figcaption></figure>

**Italics**

To italicize text, wrap it with one asterisk (`*`) or one underscore (`_`). For example:

```
*This is italic text*
_This is also italic text_
```

Displays as:

<figure><img src="/files/ZDJmZzl8vk0P2XG3rgpX" alt=""><figcaption></figcaption></figure>

**Strikethrough**

To strikethrough text, wrap it with two tildes (`~~`). For example:

```
~~This text is strikethrough~~
```

Displays as:

<figure><img src="/files/d2SudeYV0YaF1ohyBlUB" alt=""><figcaption></figcaption></figure>

**Bold and Italics Combined**

You can combine bold and italics for even more emphasis. For example:

```
***This is bold and italic text***
___This is also bold and italic text___
```

Displays as:

<figure><img src="/files/D0KtjagXjTxmTWJ8EhQc" alt=""><figcaption></figcaption></figure>

## **Links**

To create a hyperlink, use square brackets `[ ]` to set the text and parentheses `( )` to set the URL. For example:

```
[Glue](https://glue.ai)
```

Displays as:

<figure><img src="/files/mdOXvSBxURtNjxyzI07g" alt=""><figcaption></figcaption></figure>

**User Mentions**

To mention a user in our chat app, use the following format:

```
[Jason Yonker](glue:usr_2PtTG7GFSgcgwfpeDOBGEQtyB24)
```

Displays as:

<figure><img src="/files/2gvHDkX1IM3Iu8tnwTHW" alt=""><figcaption></figcaption></figure>

## **Inline Code**

To include inline code, wrap your text with backticks (\`). For example:

```
Here is some inline code: `print("Hello, World!")`
```

Displays as:

<figure><img src="/files/4UfrSX3eNY2ghLHgGLei" alt=""><figcaption></figcaption></figure>

## **Code Blocks**

For longer code snippets, use triple backticks (\`\`\`) before and after your code block. You can also specify the language for syntax highlighting. For example:

````
```python
for i in range(10):
    print(i)
```
````

Displays as:

<figure><img src="/files/3eaVrws2U0ytdpKnf3PD" alt=""><figcaption></figcaption></figure>

## **Blockquotes**

To create a blockquote, use the greater than (`>`) symbol followed by a space. For example:

```
> This is a blockquote.
```

Displays as:

<figure><img src="/files/lrdKyQFSnaiu5nehgq0g" alt=""><figcaption></figcaption></figure>

## **Paragraphs**

To create paragraphs, simply separate your text with one or more blank lines. For example:

```
This is the first paragraph.

This is the second paragraph.
```

Displays as:

<figure><img src="/files/jfXqcV97PGzPv3UkvbrI" alt=""><figcaption></figcaption></figure>

## **Lists**

**Unordered Lists**

To create an unordered list, use `-`, `*`, or `+` followed by a space. For example:

```
- Item 1
- Item 2
  - Subitem 1
  - Subitem 2
* Item 3
+ Item 4
```

Displays as:

<figure><img src="/files/wV6IEpR8b8MahO8nmHb4" alt=""><figcaption></figcaption></figure>

**Ordered Lists**

To create an ordered list, use numbers followed by a period and a space. For example:

```
1. First item
2. Second item
   1. Subitem 1
   2. Subitem 2
3. Third item
```

Displays as:

<figure><img src="/files/wFNToW4dyTxxuplnNoN8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glue.ai/developers/graphql-api/message_formatting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
