PEG Markdown Highlight
|
00001 /* PEG Markdown Highlight 00002 * Copyright 2011-2012 Ali Rantakari -- http://hasseg.org 00003 * Licensed under the GPL2+ and MIT licenses (see LICENSE for more info). 00004 * 00005 * pmh_parser.h 00006 */ 00007 00008 #pragma GCC diagnostic ignored "-Wunused-parameter" 00009 00014 #ifndef __cplusplus 00015 #include <stdbool.h> 00016 #endif 00017 00018 #include <stdlib.h> 00019 #include <assert.h> 00020 #include "pmh_definitions.h" 00021 00022 00039 void pmh_markdown_to_elements(char *text, int extensions, 00040 pmh_element **out_result[]); 00041 00054 void pmh_sort_elements_by_pos(pmh_element *element_lists[]); 00055 00066 void pmh_free_elements(pmh_element **elems); 00067 00077 char *pmh_element_name_from_type(pmh_element_type type); 00078 00088 pmh_element_type pmh_element_type_from_name(char *name); 00089