This is the first line.
And this is the second line.
bar
+Above is a break!
+ )") + << "## foo\n" + "\n" + "bar\n" + "\n" + " \n\n" //will add a more linebreak. + "\n" + "Above is a break!\n"; + + // Test Formating QTest::newRow("Bold") << wrapHTML("I just love bold text.") << "I just love **bold text**."; @@ -423,12 +437,45 @@ void TestWizHtmlTool::check_WizHtmlToMarkdown_data() QTest::newRow("Bold and Italic without space") << wrapHTML("This is reallyveryimportant text.") << "This is really***very***important text."; + QTest::newRow("Mutiple complex inline formating") + << wrapHTML(R"( +
+ Bold
+ Italic
+ Bola and italic
+ Strikethrought
+ Underline
+ Underline2
+
+ + Klick the image for the preview +
+ )" + << "[![Example](/home/tim/qtprojegt/MarkdownEdit/doc/images/Example.png)" + "Klick the image for the preview](https://software-made-easy.github.io" + "/MarkdownEdit/markdownedit.html)\n"; // Test Blockquotes QTest::newRow("Simple blockquotes") << R"(-)" << "> Dorothy followed her through many of the beautiful rooms in her castle.\n"; @@ -440,7 +487,7 @@ void TestWizHtmlTool::check_WizHtmlToMarkdown_data()Dorothy followed her through many of the beautiful rooms in her castle.
+Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
)" << "> Dorothy followed her through many of the beautiful rooms in her castle.\n" - ">\n" + "> \n" "> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.\n"; QTest::newRow("Nested Blockquotes") << R"( @@ -453,8 +500,44 @@ void TestWizHtmlTool::check_WizHtmlToMarkdown_data() )" << "> Dorothy followed her through many of the beautiful rooms in her castle.\n" - ">\n" + "> \n" "> > The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.\n"; + QTest::newRow("Multiple level of nested blockquotes") + << R"( +++ )" + << "> > 1\n" + "> \n" + "> > > 1.2\n" + "> \n" + "> > > > 1.3\n"; + QTest::newRow("Multiple level of nested blockquotes 2") + << R"( ++1
+++1.2
+++++1.3
++ )" + << "> > 1\n" + "> > \n" + "> > > 1.2\n" + "> > > \n" + "> > > > 1.3\n"; QTest::newRow("Blockquotes with Other Elements") << R"(++1
+++1.2
++1.3
@@ -469,10 +552,10 @@ void TestWizHtmlTool::check_WizHtmlToMarkdown_data())" << "> #### The quarterly results look great!\n" - ">\n" + "> \n" "> * Revenue was off the chart.\n" "> * Profits were higher than ever.\n" - ">\n" + "> \n" "> *Everything* is going according to **plan**.\n"; QTest::newRow("Nested Blockquotes with list") << R"( @@ -488,9 +571,55 @@ void TestWizHtmlTool::check_WizHtmlToMarkdown_data() )" << "> Dorothy followed her through many of the beautiful rooms in her castle.\n" - ">\n" + "> \n" "> > * Revenue was off the chart.\n" "> > * Profits were higher than ever.\n"; + QTest::newRow("Complex Nested Blockquotes with list") + << R"( +
++1
+++2
+++3
+1 again
+
++in list
+
++in list 1
+
++in list 2
+
A paragraph
+Same paragraph
+A paragraph
+Same paragraph
+