Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Remove Markdown processing from TextRun, and fix default font #5662

Merged
merged 4 commits into from
Apr 15, 2021

Conversation

golddove
Copy link
Member

@golddove golddove commented Apr 14, 2021

Related Issue

Fixes #4914

Description

RichTextBlock's TextRuns were going through Markdown processing, causing inconsistencies with the JS renderer (e.g. in the filed issue, leading/trailing newlines are trimmed). This PR removes that call for TextRun.

Additionally, this fixes TextRun erroneously defaulting to a monospace font when there is no font family configured.

Sample Card

Added test card v1.2/Tests/RichTextBlock.Markdown.json

How Verified

image

Microsoft Reviewers: Open in CodeFlow

@golddove golddove merged commit 207463a into main Apr 15, 2021
@golddove golddove deleted the golddove/4914 branch April 15, 2021 22:30
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
…nt (microsoft#5662)

* [Android] Remove Markdown processing from RichTextBlock, and fix TextRun defaulting to monospace

* Added test card
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
…nt (microsoft#5662)

* [Android] Remove Markdown processing from RichTextBlock, and fix TextRun defaulting to monospace

* Added test card
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] \n Newline character added at the beginning/end of the text is not rendering.
3 participants