progsource / maddy

C++ Markdown to HTML header-only parser library
MIT License
194 stars 39 forks source link

About codeblock parser problem and solution #33

Open xingyun86 opened 3 years ago

xingyun86 commented 3 years ago

Minimal Code Example

static std::regex re("^(?:`){3}$");

Conditions

. .
Operating System: Win10
Compiler: VS2019
Compiler flags: C++14
maddy version: newest

Description

I found codeblock parser invalid。I had solved it with new re string “^(?:`){3}(.*)$”

static std::regex re("^(?:`){3}$"); ===>>> static std::regex re("^(?:`){3}(.*)$"); 

now it works good!

progsource commented 1 year ago

Can you please check, if #41 solves your problem? If not, please also provide example markdown with which it currently doesn't work for you. Thank you very much.