mirror of
https://github.com/xoofx/markdig.git
synced 2026-10-08 14:48:32 +00:00
Fix issue with containers
This commit is contained in:
@@ -517,10 +517,17 @@ namespace Textamina.Markdig.Parsing
|
||||
|
||||
if (nextInline.Parent == null)
|
||||
{
|
||||
container.AppendChild(nextInline);
|
||||
if (container.IsClosed)
|
||||
{
|
||||
container.InsertAfter(nextInline);
|
||||
}
|
||||
else
|
||||
{
|
||||
container.AppendChild(nextInline);
|
||||
}
|
||||
}
|
||||
|
||||
if (nextInline != null)
|
||||
if (nextInline != null && !nextInline.IsClosed)
|
||||
{
|
||||
inlineState.OpenedInlines.Add(nextInline);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user