Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LOWDOWN_DOC_PARSE(3)   FreeBSD Library Functions Manual	  LOWDOWN_DOC_PARSE(3)

NAME
     lowdown_doc_parse -- parse	a Markdown document into an AST

LIBRARY
     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
     Parse a lowdown(5)	document input of length inputsz into an AST.  This
     function may be invoked multiple times with a single doc and different
     input.  The returned node is always of type LOWDOWN_ROOT.	The maxn argu-
     ment, if not NULL,	is 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)

FreeBSD	13.0			August 28, 2020			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lowdown_doc_parse&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help