LOWDOWN_TERM_NEW(3)

NAME
lowdown_term_new - allocate a Markdown terminal renderer

LIBRARY
liblowdown

SYNOPSIS
#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>
void *
lowdown_term_new(const struct lowdown_opts *opts);

DESCRIPTION
Allocates a terminal renderer using the flags in opts, which can be NULL in which case all fields are zero. The renderer type in opts is ignored.

The returned renderer must be freed with a call to lowdown_term_free(3). The returned pointer may be used with multiple invocations of lowdown_term_rndr(3).

RETURN VALUES
Always returns a valid pointer.

SEE ALSO
lowdown(3), lowdown_term_free(3), lowdown_term_rndr(3)