Use Markdown formatting in Teams

Use Markdown formatting in Teams

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 still available if you expand your compose box (everything except block quotes and strikethrough will still have its own button).

In this article

Available Markdown actions in Teams

Use Markdown to share code

Available Markdown actions in Teams

Name

Action

Example

Bold text

*bold text*

bold text

Italic text

_italic text_

italic text

Strikethrough

~strikethrough~

Markdown strikethrough text

Numbered list

<number> Item one

1. Item one
2. Item two

Unordered list

* Item one
OR
- Item one

· Item one
· Item two

Hyperlink

[Text](URL)

Here's a link.

Multi-line code block

'''[code block]

Inline block of code

`[code text]`

Header

##Header text

Header text

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 back tick (` ), which is located next to the 1 on your keyboard.

  • 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.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×