Skip to content

Fixed rendering of markdown links with inline code #3407

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

Merged

Conversation

Sergio0694
Copy link
Member

Fixes #3123

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

The MarkdownTextBlock fails to render text when a link contains inline code.

What is the new behavior?

Links with inline code work fine, and use the same foreground color as inline code blocks.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

@Sergio0694 Sergio0694 added controls 🎛️ markdown 📑 Issues related to Markdown labels Aug 3, 2020
@Sergio0694 Sergio0694 added this to the 7.0 milestone Aug 3, 2020
@Sergio0694 Sergio0694 self-assigned this Aug 3, 2020
@ghost
Copy link

ghost commented Aug 3, 2020

Thanks Sergio0694 for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from michael-hawker, azchohfi and Kyaa-dost August 3, 2020 15:29
@ghost ghost added the bug 🐛 An unexpected issue that highlights incorrect behavior label Aug 3, 2020
Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Realized we were missing a default font for the InlineCodeFontFamily property, added it to our style here. Thanks for this fix, wish we had better styling for Run, but seems distinct enough for now:

image

At least we won't crash anymore! 🎉🎉🎉

@ghost
Copy link

ghost commented Aug 3, 2020

Hello @michael-hawker!

Because this pull request has the auto merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 6 hours 50 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link
Contributor

@Kyaa-dost Kyaa-dost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀 🚀

@michael-hawker michael-hawker merged commit a294b85 into CommunityToolkit:master Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merge ⚡ bug 🐛 An unexpected issue that highlights incorrect behavior controls 🎛️ markdown 📑 Issues related to Markdown
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MarkdownTextBlock throw ArgumentException while rendering link with code text
4 participants