1 #ifndef PARSING_FUNCTIONS_H 2 #define PARSING_FUNCTIONS_H 3 /* parsing_functions.c - Functions for parsing markdown and 4 * freeing element lists. */ 5 6 #include "markdown_peg.h" 7 8 /* free_element_list - free list of elements recursively */ 9 void free_element_list(element * elt); 10 /* free_element - free element and contents */ 11 void free_element(element *elt); 12 13 element * parse_references(char *string, int extensions); 14 element * parse_notes(char *string, int extensions, element *reference_list); 15 element * parse_markdown(char *string, int extensions, element *reference_list, element *note_list); 16 17 #endif 18