question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android/iOS] Support for White Space characters in Markdown

See original GitHub issue

Platform

This bug will track shared model platforms (Android/iOS/UWP).

See also #5350 (Javascript), #5351 (.NET) and #5352 (documentation)

Author or host

Host on Webex Teams

Version of SDK

v1.2.11

Details

Support for ​

-   (honored by iOS)​
-   and ​
-  

is missing for Android and iOS

Sample JSON is as follows:

 {
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "TextBlock with 4 \"space\" characters    1"
        },
        {
            "type": "TextBlock",
            "text": "TextBlock with 4 \"&-nbsp;\" characters    1"
        },
        {
            "type": "TextBlock",
            "text": "TextBlock with 4 \"&-ensp;\" characters    1"
        },
        {
            "type": "TextBlock",
            "text": "TextBlock with 4 \"&-emsp;\" characters    1"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}

Resultant Images for the above JSON are: Android White Space- Android iOS White Space- iOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
matthidingercommented, Sep 10, 2020

We should investigate the best way to support this scenario without necessarily relying on HTML entities (&nbsp)

E.g., we could rely on unicode characters \u2002 in the JSON, although this doesn’t quite work based on my limited research, so further digging will be required.

https://stackoverflow.com/questions/6046263/how-to-indent-a-few-lines-in-markdown-markup

0reactions
RebeccaAnnecommented, Aug 26, 2021

Fixed by #4000

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I ensure that whitespace is preserved in Markdown?
To preserve spaces in a markdown document use a non-breaking space: "a space character that prevents consecutive whitespace characters from ...
Read more >
Format Text with Markdown
To treat characters as ordinary text, press undo or backspace once. Italics ​. Use syntax *sample text* followed by space or return key....
Read more >
White space issue in markdown - support
Hi Team, When I use comma or dot after the URL in markdown [text](url). [text](url), The output has space between the text and...
Read more >
Untitled
Indent (Tab) Tabs and whitespace have a special meaning in Markdown. You can use trailing whitespace to create line breaks, and you can...
Read more >
markdown | Dart Package
A portable Markdown library written in Dart that can parse Markdown into HTML. ... Fix table-rendering bug when table rows have trailing whitespace....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found