Upstream xoofx/markdig state of the touched files before 27b8c9eb56

This commit is contained in:
upstream committed 2026-09-19 11:52:40 +02:00
1 parent 9006f0b4a2
commit 49e145437f
3 files changed
+93 -81

No files matched your search

@@ -419,19 +419,6 @@ public class EmphasisInlineParser : InlineParser, IPostInlineProcessor
break;
}
}
// Leftover delimiter characters keep the following inlines nested inside
// the emphasis; move them out so they keep their original position.
if (closeDelimiter.DelimiterCount > 0 && closeDelimiter.Parent is EmphasisInline closerParentEmphasis)
{
var outermostEmphasis = closerParentEmphasis;
while (outermostEmphasis.Parent is EmphasisInline ancestorEmphasis)
{
outermostEmphasis = ancestorEmphasis;
}
closeDelimiter.MoveChildrenAfter(outermostEmphasis);
}
}
}