LOWDOWN_DOC_PARSE(3)

NAME
lowdown_doc_parse - parse a Markdown document into an AST

LIBRARY
liblowdown

SYNOPSIS
#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>
struct lowdown_node *
lowdown_doc_parse(struct lowdown_doc *doc, size_t *maxn, const char *input, size_t inputsz);

DESCRIPTION
Parses a lowdown(5) document from input of length inputsz into an AST. This function may be invoked multiple times with a single doc. The returned node is always of type LOWDOWN_ROOT, with maxn set to one greater than the highest node identifier of the returned tree.

RETURN VALUES
Returns the root of the parse tree. The pointer is never NULL.

SEE ALSO
lowdown(3)