Disable the emphasized parser in markdown_to_html, so links with underscores work properly.

This commit is contained in:
Relintai 2021-01-05 19:27:53 +01:00
parent e149574149
commit d2751d83e2

View File

@ -13,7 +13,7 @@ void Utils::newline_to_br(std::string *str) {
void Utils::markdown_to_html(std::string *str) {
std::shared_ptr<maddy::ParserConfig> config = std::make_shared<maddy::ParserConfig>();
config->isEmphasizedParserEnabled = true;
config->isEmphasizedParserEnabled = false;
config->isHTMLWrappedInParagraph = true;
std::shared_ptr<maddy::Parser> parser = std::make_shared<maddy::Parser>(config);