Skip to content

Commit dc7bf03

Browse files
committed
Fix potential race condition, addresses #616
1 parent bd2d553 commit dc7bf03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: components/MarkdownTextBlock/src/MarkdownTextBlock.xaml.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ private void ApplyText(bool rerender)
8888

8989
if (!string.IsNullOrEmpty(Text))
9090
{
91-
this.MarkdownDocument = Markdown.Parse(Text, _pipeline);
92-
_renderer.Render(this.MarkdownDocument);
91+
var parsedMarkdown = Markdown.Parse(Text, _pipeline);
92+
this.MarkdownDocument = parsedMarkdown;
93+
_renderer.Render(parsedMarkdown);
9394
}
9495
}
9596
}

0 commit comments

Comments
 (0)