Skip to content

Commit

Permalink
A test has been added.
Browse files Browse the repository at this point in the history
  • Loading branch information
snnz committed Jan 3, 2025
1 parent 118d28f commit 7b6d659
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Markdig.Tests/MiscTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,24 @@ public void RootInlineInTableCellHasCorrectSourceSpan()
Assert.That(paragraph.Inline.Span.Start == paragraph.Inline.FirstChild.Span.Start);
Assert.That(paragraph.Inline.Span.End == paragraph.Inline.LastChild.Span.End);
}

[Test]
public void TestGridTableShortLine()
{
var input = @"
+--+
| |
+-";

var expected = @"<table>
<col style=""width:100%"" />
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
";
TestParser.TestSpec(input, expected, new MarkdownPipelineBuilder().UseGridTables().Build());
}
}

0 comments on commit 7b6d659

Please sign in to comment.