Skip to content

Commit bc8ba4f

Browse files
committed
A test has been added.
1 parent 3e0c72f commit bc8ba4f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Markdig.Tests/MiscTests.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,26 @@ public void RootInlineInTableCellHasCorrectSourceSpan()
317317
Assert.That(paragraph.Inline.Span.Start == paragraph.Inline.FirstChild.Span.Start);
318318
Assert.That(paragraph.Inline.Span.End == paragraph.Inline.LastChild.Span.End);
319319
}
320+
321+
[Test]
322+
public void TestDefinitionListInListItemWithBlankLine()
323+
{
324+
var input = @"
325+
-
326+
327+
term
328+
: definition
329+
";
330+
331+
var expected = @"<ul>
332+
<li>
333+
<dl>
334+
<dt>term</dt>
335+
<dd>definition</dd>
336+
</dl>
337+
</li>
338+
</ul>
339+
";
340+
TestParser.TestSpec(input, expected, new MarkdownPipelineBuilder().UseDefinitionLists().Build());
341+
}
320342
}

0 commit comments

Comments
 (0)