How can I paste Markdown in Microsoft Teams?

It is a known issue, and as far as I know, Microsoft doesn't seem to be working on it.

One way to work this around (as you allowed workarounds) is to paste your markdown code to any editor/converter that produces rich text, copy the rich text, and paste it to Microsoft Teams.

Any online markdown editor will work. I tested with Dillenger and StackEdit but I'm quite sure there are many other online editors you can paste your markdown code, copy the preview, and paste into Teams.

If you are using VSCode, you can use the native markdown preview to generate a rich text, copy from it, and paste into Teams. Both Teams and Code are MS products so I guess they would work well together (just guessing with no hard argument). At least the pasted result seems good enough to me.


If you have pandoc and powershell; the following converts your markdown to interpreted HTML;

Get-Clipboard | pandoc | Set-Clipboard -AsHtml

I find this a useful workaround because my markdown is usually coming from where I take my notes; vim. So in vim I can bind;

" In visual mode, Shift-v to copy selection to clipboard
vn V "+y
" In normal mode, Ctrl-m to convert clipboard Markdown to interpreted HTML
nn <c-m> :! powershell -Command "Get-Clipboard \| pandoc \| Set-Clipboard -AsHtml"<cr>

And I'm shift-v, ctrl-m away from having pretty notes on my clipboard to paste into Teams.

I think it's not also a stretch to imagine a Teams Extension that would do this in Teams.

Edit: I was getting some encoding issues. The command in my vimrc has evolved as follows.

nn <c-m> :silent ! powershell -Command "[Console]::OutputEncoding = [Text.Encoding]::Default; Get-Clipboard \| pandoc \| Set-Clipboard -AsHtml;"<cr>