How can i close multi-line code block within a markdown message in MS Teams?

Lucas Lascano 6 Reputation points
2022-02-16T12:21:43.09+00:00

Hi. I'm trying to send a message with markdown through MS Teams like this:

*Some explanation 1.
Here's a code example:

import pandas as pd
df = pd.read_csv('file_path.csv')

Some explanation 2*

I can't close the code block with "
". "Some explanation 2" keeps getting formatted as if it was part of the code block.

Is there any way to do this? I didn't find any documentation regarding it. By the way, I need to use markdown because this is a message that will be sent through a chat bot.

Thanks in advance
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,328 questions
{count} vote

1 answer

Sort by: Most helpful
  1. DavidBojsen 21 Reputation points
    2022-07-19T20:56:58.757+00:00

    Hi @Lucas Lascano

    I discovered the answer by chance - just press enter twice...

    BR David

    4 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.