Skip to content

Commit

Permalink
Add test related to #625
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Apr 20, 2022
1 parent b754aef commit 17b5500
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Markdig.Tests/TestNewLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class TestNewLine
[TestCase("a \nb", "<p>a<br />\nb</p>\n")]
[TestCase("a\\\nb", "<p>a<br />\nb</p>\n")]
[TestCase("a `b\nc`", "<p>a <code>b c</code></p>\n")]
[TestCase("# Text A\nText B\n\n## Text C", "<h1>Text A</h1>\n<p>Text B</p>\n<h2>Text C</h2>\n")]
public void Test(string value, string expectedHtml)
{
Assert.AreEqual(expectedHtml, Markdown.ToHtml(value));
Expand Down

0 comments on commit 17b5500

Please sign in to comment.