Skip to content

Commit 5e6fb2d

Browse files
committed
Add test for issue #845 list item blank line
1 parent 14406bc commit 5e6fb2d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Markdig.Tests/MiscTests.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,27 @@ Also not a note.</p>
386386
";
387387
TestParser.TestSpec(input, expected, new MarkdownPipelineBuilder().UseAlertBlocks().Build());
388388
}
389+
390+
391+
[Test]
392+
public void TestIssue845ListItemBlankLine()
393+
{
394+
TestParser.TestSpec("-\n\n foo",@"
395+
<ul>
396+
<li></li>
397+
</ul>
398+
<p>foo</p>");
399+
TestParser.TestSpec("-\n-\n\n foo",@"
400+
<ul>
401+
<li></li>
402+
<li></li>
403+
</ul>
404+
<p>foo</p>");
405+
TestParser.TestSpec("-\n\n-\n\n foo",@"
406+
<ul>
407+
<li></li>
408+
<li></li>
409+
</ul>
410+
<p>foo</p>");
411+
}
389412
}

0 commit comments

Comments
 (0)