rveachkc / pymsteams

Format messages and post to Microsoft Teams.
https://pypi.org/project/pymsteams/
Apache License 2.0
428 stars 79 forks source link

cardsection class method enableMarkdown does not render markdown in card section #97

Closed gatchrsg closed 2 years ago

gatchrsg commented 3 years ago

The enableMarkdown method does not appear to change the results rendered in the card section of the message, still comes through as paintext.

nickolay-github commented 3 years ago

You can use basic markdown in all text fields - https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#text-formatting

For example - use bold markdown text for message:

teams_message = pymsteams.connectorcard(os.getenv("MS_TEAMS_WEBHOOK"))  
teams_message.text("**This is a simple text message.**")  
teams_message.send()

Result of this example request (message in MS Teams channel):

image

gatchrsg commented 2 years ago

Thank you, closing.