mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
markdown.cc: Format
Slightly custom because the automated formatting messes up the braced initializer with named fields.
This commit is contained in:
parent
fb450de20e
commit
2b4e3f04a4
1 changed files with 4 additions and 3 deletions
|
@ -4,8 +4,8 @@
|
|||
#include "terminal.hh"
|
||||
|
||||
#if HAVE_LOWDOWN
|
||||
# include <sys/queue.h>
|
||||
# include <lowdown.h>
|
||||
# include <sys/queue.h>
|
||||
# include <lowdown.h>
|
||||
#endif
|
||||
|
||||
namespace nix {
|
||||
|
@ -15,7 +15,8 @@ std::string renderMarkdownToTerminal(std::string_view markdown)
|
|||
#if HAVE_LOWDOWN
|
||||
int windowWidth = getWindowSize().second;
|
||||
|
||||
struct lowdown_opts opts {
|
||||
struct lowdown_opts opts
|
||||
{
|
||||
.type = LOWDOWN_TERM,
|
||||
.maxdepth = 20,
|
||||
.cols = (size_t) std::max(windowWidth - 5, 60),
|
||||
|
|
Loading…
Reference in a new issue