fletcher/peg-multimarkdown — pull request #109 by hydrixos (2012-02-24 13:02:58+00:00)
Title: Public API for accessing the generated AST

For several applications, it is useful to operate directly on the AST instead of only generating a string output.

I've created a fork that has an API "markdown_to_ast" that allows to access the generated AST. This API is accessible through a separate header "markdown_parser_lib.h" that exposes the AST data structures to the public. A further API "markdown_free_ast" can be used to clean up the operations. For compatibility reasons, I've left out the "typedef struct Link link", thus it becomes easier to use your library in UNIX systems.

I've also adapted "markdown_lib.c" such that "markdown_to_gstring" utilizes the "markdown_to_ast" function.

(I've also did some minor changes to remove warnings and updated the XCode project for XCode 4.3)