Fix issue with containers

This commit is contained in:
Alexandre Mutel
2016-02-21 07:05:36 +09:00
parent de35805311
commit 0cfc9fa425

View File

@@ -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);
}