Skip to content

Commit e9b232b

Browse files
authored
Merge pull request #3 from exactamente/Issue2_emphasis
fix: Wrong rendering of emphasis and strong emphasis inlines
2 parents ef51cba + 1b180ae commit e9b232b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NeoMarkdigXaml/Renderers/XamlInlineRenderer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ private static bool WriteSpan(XamlMarkdownWriter renderer, EmphasisInline span)
8888
{
8989
switch (span.DelimiterChar)
9090
{
91-
case '*': // bold
91+
case '*' when span.IsDouble: // bold
92+
case '_' when span.IsDouble: // bold
9293
renderer.WriteStartObject(typeof(Bold));
9394
return true;
95+
case '*': // italic
9496
case '_': // italic
9597
renderer.WriteStartObject(typeof(Italic));
9698
return true;

0 commit comments

Comments
 (0)