Respect NO_COLOR in Markdown output

This commit is contained in:
Eelco Dolstra 2021-09-14 14:57:58 +02:00
parent 7e4dd0e279
commit 75837bb595

View file

@ -44,7 +44,7 @@ std::string renderMarkdownToTerminal(std::string_view markdown)
if (!rndr_res)
throw Error("allocation error while rendering Markdown");
return std::string(buf->data, buf->size);
return filterANSIEscapes(std::string(buf->data, buf->size), !shouldANSI());
}
}