Message formatting | Glue Developers | Glue Guide
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__
Italics
To italicize text, wrap it with one asterisk (*) or one underscore (_). For example:
*This is italic text*
_This is also italic text_
Strikethrough
To strikethrough text, wrap it with two tildes (~~). For example:
~~This text is strikethrough~~
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___
Links
To create a hyperlink, use square brackets [ ] to set the text and parentheses ( ) to set the URL. For example:
[Glue](/content/site-root.html)
User Mentions
To mention a user in our chat app, use the following format:
[Jason Yonker](glue:usr_2PtTG7GFSgcgwfpeDOBGEQtyB24)
Inline Code
To include inline code, wrap your text with backticks (`). For example:
Here is some inline code: `print("Hello, World!")`
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)
```
Blockquotes
To create a blockquote, use the greater than (>) symbol followed by a space. For example:
> This is a blockquote.
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.
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
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
Last updated 7 months ago.