Mar 07 2024 08:07 PM - edited Mar 07 2024 08:08 PM
I am making bot alarm message using adaptivecard.
It is important for me to print out the user name and email accurately.
So I tried to use TextRun to prevent markdowns from being supported.(https://adaptivecards.io/explorer/TextRun.html)
But there is a problem that textrun is being marked down on ios mobile, tablet.
this is my adaptive card json.
{"type":"AdaptiveCard","$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.3","body":[{"type":"TextBlock","text":"**Microsoft Entra ID**","size":"Large","wrap":true},{"type":"TextBlock","text":"user 5","size":"Medium","wrap":true},{"type":"RichTextBlock","inlines":[{"type":"TextRun","text":"- ``Use `code` in your Markdown file.(~~hspark~~@aaa.co.kr)\n","size":"Small"},{"type":"TextRun","text":"- + First item(test'email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- ** test12041432(test'''email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- > test12041435(test''email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- 1. adsfsdafsdf *{}*asdfadsf*_~ark~(test'''email address removed for privacy reasons)","size":"Small"}]},{"type":"TextBlock","text":"user 5","size":"Medium","wrap":true},{"type":"RichTextBlock","inlines":[{"type":"TextRun","text":"- ``Use `code` in your Markdown file.``(~~hspark~~@aaa.co.kr)\n","size":"Small"},{"type":"TextRun","text":"- + First item(test'email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- ** test12041432(test'''email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- > test12041435(test''email address removed for privacy reasons)\n","size":"Small"},{"type":"TextRun","text":"- 1ASDFASDFSADFASD asdfadsfsd *{}*adsfasdf*_~ark~(test'''email address removed for privacy reasons)","size":"Small"}]}]}
I used \ to escape markdown on textblock, but there was a phenomenon where \ for escape was output together on mobile (Android, ios) even though it was properly rendered on pc.
i want to know:
Is there any way to output properly without markdown on adaptive card?
PC, mobile, table should be supported in all environments.
and I think it's a bug that textrun is rendered as a markdown in ios environment so please solve it.
that's adaptive card json rendering exapmle
pc:
ios mobile:
and escape \ example:
mobile:
pc:
Mar 07 2024 10:44 PM
Mar 18 2024 12:26 AM