LOWDOWN_BUF_DIFF(3)

NAME
lowdown_buf - parse and diff Markdown buffers into formatted output

LIBRARY
liblowdown

SYNOPSIS
#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>
void
lowdown_buf(const struct lowdown_opts *opts, const char *btarget, size_t btargetsz, const char *otarget, size_t otargetsz, char **ret, size_t *retsz, struct lowdown_metaq *metaq);

DESCRIPTION
Parses lowdown(5) buffers btarget of size btargetsz and otarget of size otargetsz and produces an edit script in ret of size retsz according to configurations opts. The output format is specified by opts->type. If LOWDOWN_SMARTY is set in opts->feat and metaq is not NULL, metaq is filled with metadata rendered in the given output format.

The caller is responsible for freeing ret and metaq.

SEE ALSO
lowdown(3), lowdown_metaq_free(3)

CAVEATS
This function will call exit(3) if internal memory allocation fails. There is no way to catch this condition.