Respect NO_COLOR in Markdown output
This commit is contained in:
parent
7e4dd0e279
commit
75837bb595
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue