6 typedef struct TodoItem {
13 /* callbacks to parser */
14 int enter_block(MD_BLOCKTYPE type, void* detail, void* userdata);
15 int leave_block(MD_BLOCKTYPE type, void* detail, void* userdata);
16 int enter_span(MD_SPANTYPE type, void* detail, void* userdata);
17 int leave_span(MD_SPANTYPE type, void* detail, void* userdata);
18 int text(MD_TEXTTYPE type, const MD_CHAR* text, MD_SIZE size, void* userdata);
19 void debug_log(const char* msg, void* userdata);
22 static MD_PARSER parser = {
24 MD_DIALECT_COMMONMARK,
34 static char task_md[] = "###";
36 main(int argc, char** argv)
41 input_file = fopen("test_board.md", "r");
43 printf("Something went wrong opening file");
51 enter_block(MD_BLOCKTYPE type, void* detail, void* userdata)
57 leave_block(MD_BLOCKTYPE type, void* detail, void* userdata)
63 enter_span(MD_SPANTYPE type, void* detail, void* userdata)
69 leave_span(MD_SPANTYPE type, void* detail, void* userdata)
75 text(MD_TEXTTYPE type, const MD_CHAR* text, MD_SIZE size, void* userdata){
80 debug_log(const char* msg, void* userdata)