mirror of
https://github.com/progsource/maddy.git
synced 2026-03-25 07:50:39 +01:00
fix: one-liner quote parser does not give any output
This commit is contained in:
@@ -21,6 +21,18 @@ TEST(MADDY_PARSER, ItShouldParse)
|
||||
ASSERT_EQ(testHtml, output);
|
||||
}
|
||||
|
||||
TEST(MADDY_PARSER, ItShouldParseOneLiner)
|
||||
{
|
||||
auto parser = std::make_shared<maddy::Parser>();
|
||||
std::stringstream markdown("> This is a **test**");
|
||||
|
||||
const std::string output = parser->Parse(markdown);
|
||||
|
||||
ASSERT_EQ(
|
||||
"<blockquote><p>This is a <strong>test</strong> </p></blockquote>", output
|
||||
);
|
||||
}
|
||||
|
||||
TEST(MADDY_PARSER, ItShouldParseWithBitwiseConfig)
|
||||
{
|
||||
auto config = std::make_shared<maddy::ParserConfig>();
|
||||
|
||||
Reference in New Issue
Block a user