From 17b5500b03f799d58e9d01bebd91319a73b6864f Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 20 Apr 2022 18:28:58 +0200 Subject: [PATCH] Add test related to #625 --- src/Markdig.Tests/TestNewLine.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Markdig.Tests/TestNewLine.cs b/src/Markdig.Tests/TestNewLine.cs index 1762348a0..d30d29a99 100644 --- a/src/Markdig.Tests/TestNewLine.cs +++ b/src/Markdig.Tests/TestNewLine.cs @@ -11,6 +11,7 @@ public class TestNewLine [TestCase("a \nb", "

a
\nb

\n")] [TestCase("a\\\nb", "

a
\nb

\n")] [TestCase("a `b\nc`", "

a b c

\n")] + [TestCase("# Text A\nText B\n\n## Text C", "

Text A

\n

Text B

\n

Text C

\n")] public void Test(string value, string expectedHtml) { Assert.AreEqual(expectedHtml, Markdown.ToHtml(value));