Open sueess opened 2 years ago
Hi sueess! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.
Best regards, Teams Platform
@sueess -We are looking into this I will get back to you soon.
@sueess -We are tried to repro the scenario with IOS and android device but markdown is working fine in both.
Could you please confirm with which device getting issue?
IOS Device -
Android Device -
Windows:-
Thanks for looking into that problem. We tested again and here is the most actual documentation. I hope it is understandable.
*Adaptive card using markdown for italic**
{
type: 'AdaptiveCard',
body: [
{
type: 'TextBlock',
text: 'Text with stars to make it italic: *text*',
wrap: true
},
{
type: 'TextBlock',
text: 'This is a *. Sometimes we like to use a * in the text, or in the middle of a wor*d.',
wrap: true
},
{
type: 'Input.ChoiceSet',
id: 'multipleCardSelection',
style: 'expanded',
choices: [
{
title: 'Text with stars to make it italic: *text*',
value: 1
},
{
title: 'This is a *. Sometimes we like to use a * in the text, or in the middle of a wor*d.',
value: 2
}
],
isMultiSelect: true,
wrap: true
}
],
actions: [],
'$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',
version: '1.4'
}
*Adaptive card using in text**
{
type: 'AdaptiveCard',
body: [
{
type: 'TextBlock',
text: 'Text with stars to make it italic: \\*text\\*',
wrap: true
},
{
type: 'TextBlock',
text: 'This is a \\*. Sometimes we like to use a \\* in the text, or in the middle of a wor\\*d.',
wrap: true
},
{
type: 'Input.ChoiceSet',
id: 'multipleCardSelection',
style: 'expanded',
choices: [
{
title: 'Text with stars to make it italic: \\*text*',
value: 1
},
{
title: 'This is a \\*. Sometimes we like to use a \\* in the text, or in the middle of a wor\\*d.',
value: 2
}
],
isMultiSelect: true,
wrap: true
}
],
actions: [],
'$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',
version: '1.4'
}
@sueess -Currently markdown feature supports TextBlock. TextBlock offers advanced features for formatting and localizing the text. https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/text-features#markdown-example
I know that - I'm reading the doc. In German language we need sometime to use the *. Since it is interpreted as markdown, we have to escape using backslackes. And that is not displayed the same way on mobile and desktop. Don't you see that difference? That's a clear bug:
If you don't see the bug, then let me know how I can escape a * reliable on all devices. Thank you!
@sueess -ok Got it. We are able to repro that issue , We have raised bug for the same and concerned team is looking into it. We will inform you once we get any update.
Nice! Thank you!
Is there any update?
Engineering team working on this issue. Currently we don’t have ETA or Update on this thread. We will update this thread once the bug is fixed.
Engineering team working on it will take time to rolled out publicly. We will update this thread once publicly available.
Is there any update for this bug? We still have this problem, that Markdown and Escaping is displayed in different way on different devices.
The same Adaptive Card displayed in Microsoft Teams Windows App and Android App:
@MajaEffenberg -Issue is solved on latest canary build. We will update you once it is publicly released.
Sorry for delay in response!! We are actively checking the status of bug with engineering team and let you know the updates, if we have any.
Is there an update on this? We are hitting this as well.
I'm trying to have my bot just return tst, It works fine on Desktop and Web but on mobile i get italics, even when i surround it with ticks. I've even tried RIchTextBlocks, nothing stops the mobile app from applying markdown formatting.
@MajaEffenberg @botch8 -Hope you are doing well!! Just wanted to inform you that engineering team is working on this issue, and we are tracking it closely. Once we get any update on it, we will inform you accordingly.
@sayali-MSFT The engineering team is now working for 3 months on this. Do you have any additional information on this?
@sueess, we got below update from engineering team:
By spec, Adaptive Card only supports Markdown for TextBlock and Fact / FactSet, while the other fields should remain pure text. So, for MultiChoice there's no need to escape markdown but just keep text straightforwardly.
(Same behaviour in Desktop/Web and Mobile clients)
For escaping in Markdown in TextBlock:
(Same behaviour in Desktop/Web and Mobile clients)
Hi there
I know the title is hard to understand, but it exactly shows the mess :). Let's start with the problems:
In short: Please ensure that Markdown and Escaping works on all devices, AdaptiveCard elements and OS the same way