fixed the inline code now also for not directly following letters

* em
* s
* strong

updated regex
This commit is contained in:
M. Petra Baranski
2017-12-26 05:24:01 +01:00
parent 6619f03879
commit 2ee6840008
6 changed files with 9 additions and 9 deletions

View File

@@ -34,8 +34,8 @@ TEST(MADDY_STRONGPARSER, ItReplacesEmphasizedMarkdownNotWithStrongHTML)
TEST(MADDY_STRONGPARSER, ItDoesNotParseInsideInlineCode)
{
std::string text = "some text *bla* text testing `**it**` out";
std::string expected = "some text *bla* text testing `**it**` out";
std::string text = "some text **bla** `/**text**/` testing `**it**` out";
std::string expected = "some text **bla** `/**text**/` testing `**it**` out";
auto strongParser = std::make_shared<maddy::StrongParser>();
strongParser->Parse(text);