mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
fix newline after listblock
This commit is contained in:
@@ -89,6 +89,12 @@ namespace Markdig.Renderers.Normalize
|
||||
}
|
||||
renderer.CompactParagraph = compact;
|
||||
|
||||
// TODO: make reusable method?
|
||||
if (listBlock.Parent is MarkdownDocument md && md.LastChild != listBlock)
|
||||
{
|
||||
renderer.WriteLine();
|
||||
}
|
||||
|
||||
renderer.RenderLinesAfter(listBlock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user