Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
markdown.hh File Reference
#include <string_view>

Go to the source code of this file.

Functions

std::string nix::renderMarkdownToTerminal (std::string_view markdown)
 

Function Documentation

◆ renderMarkdownToTerminal()

std::string nix::renderMarkdownToTerminal ( std::string_view markdown)

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.