forked from fletcher/peg-multimarkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
markdown_peg.h
31 lines (22 loc) · 1.12 KB
/
markdown_peg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* markdown_peg.h */
#ifndef MARKDOWN_PEG_H
#define MARKDOWN_PEG_H
#include "markdown_lib.h"
#include "glib.h"
#include "markdown_parser_lib.h"
typedef struct Link link;
typedef struct CodeBlock codeblock;
typedef struct Element element;
element * parse_references(char *string, int extensions);
element * parse_notes(char *string, int extensions, element *reference_list);
element * parse_labels(char *string, int extensions, element *reference_list, element *note_list);
element * parse_markdown(char *string, int extensions, element *reference_list, element *note_list, element *label_list);
element * parse_markdown_with_metadata(char *string, int extensions, element *reference_list, element *note_list, element *label_list);
void free_element_list(element * elt);
void free_element(element *elt);
void print_element_list(GString *out, element *elt, int format, int exts);
element * parse_metadata_only(char *string, int extensions);
char * extract_metadata_value(char *text, int extensions, char *key);
char * metavalue_for_key(char *key, element *list);
element * parse_markdown_for_opml(char *string, int extensions);
#endif