mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
Document renderMarkdownToTerminal
This commit is contained in:
parent
7d4d34a27d
commit
0bd2d36375
1 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,13 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the given Markdown text to the terminal.
|
||||||
|
*
|
||||||
|
* If Nix is compiled without Markdown support, this function will return the input text as-is.
|
||||||
|
*
|
||||||
|
* The renderer takes into account the terminal width, and wraps text accordingly.
|
||||||
|
*/
|
||||||
std::string renderMarkdownToTerminal(std::string_view markdown);
|
std::string renderMarkdownToTerminal(std::string_view markdown);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue