[Skype for Business] Markdown and Line Break formatting inconsistencies (macOS vs Windows)
See original GitHub issueSDK Platform: python SDK Version: BotBuilder 3.11.0 Active Channels: Skype for Business Deployment Environment: ngrok
Issue Description
SFB Markdown for Mac client/ iOS vs PC/Android is inconsistent. We have taken Bot Framework’s recommendation to remove html and use only Markdown.
• We have accepted that Markdown bold does not render in either PC nor Mac and have not seen a way to do it without using html (which will completely block output on Mac clients) • Bold on PC renders it as italics • Italics on PC renders as italics • Both of the above are ignored on Mac/iOS clients and just give me text no formatting.
Regardless of Markdown formatting, the most important thing we can do with mostly text based formatting, are LINE BREAKS.
Please advise on how to properly render LINE BREAKS across all channels?
We have been instructed to use \n\n
but this does not work on SFB standalone clients for PC, MAC, iOS, Android
• On Mac, does not even compute (see screenshot) • On PC, does not compute (see screenshot)
We’ve tried several methods including unicode \u00A0\u00A0\n
and ultimately we came to use the following hack:
\n\n\u200C<br/>
for a single line break.
To make another paragraph separated by a break we have to use this:
\n\n\u200C<br/>\n\nu200C<br/>
This is really bothersome, as we have also seen older instances of SFB on PC have even larger breaks perhaps respecting the original \n\n
. See attached image
Code Example
RAW text output that gets sent to json when using the recommend \n\n
markdown method:
This is normal text followed by two slash n line breaks.
This should come after two line breaks.
This markdown text should be **BOLD** and this should be __ITALICS__
→ **This title is wrapped by double asteriks**
1 - Button 1
2 - Button 2
3 - Button 3
**This is a footer wrapped by two asteriks, should be Markdown bold.**
Expected Behavior
I expect to consistently be able to create new lines at will across all platforms, PC, Mac, Android, iOS, Azure testbed
Actual Results
See screenshot.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (1 by maintainers)
two spaces followed by \n again space followed by \n works on all platforms for skype for business
Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.
From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here: https://github.com/microsoft/botbuilder-v3/issues
For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here: https://github.com/microsoft/botframework-services/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow. https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team