Related topics
Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

With Markdown, you get a live preview of your formatted text inside your compose box as you type, and you can always undo your formatting by pressing Ctrl+Z.

Also, most of these actions are available if you expand your compose box (everything except block quotes and strikethrough will still have its own button).

Available Markdown actions in Teams




Bold text

*bold text*

bold text

Italic text

_italic text_

italic text



Markdown strikethrough text

Numbered list

<number> Item one

1. Item one
2. Item two

Unordered list

* Item one
- Item one

· Item one
· Item two



Here's a link.

Multi-line code block

```[code block]

Code block with language specification



Inline block of code

`[code text]`


##Header text

Header text



This is a Blockquote

Use Markdown to share code

You can format and share your code on Teams.

  • To add an inline block of code, start and end the text with a backtick (` ) key, which is located next to the 1 on your keyboard, followed by a space. However, some users may have difficulty accessing the backtick key on their keyboard. In that case, you can use one of the following alternate keys to start an inline code block:

    1. Shift+`+Space

    2. Shift+Alt+´

    3. Use the keyboard manager Ukelele.

After you press one of these keys, you can type your code and then press the same key again to end the code block.

  • To add a multi-line block of code, preface your text with ``` and then paste it into your compose box.

You'll get a live preview of your code, and you can undo any formatting by hitting Ctrl+Z.

For now, you can view but not generate Markdown-formatted messages on your mobile device, so if you want to collaborate on code, stick to the desktop or web app.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!