forked from fletcher/peg-multimarkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown_lib.h
47 lines (41 loc) · 1.14 KB
/
markdown_lib.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef MARKDOWN_LIB_H
#define MARKDOWN_LIB_H
#include <stdlib.h>
#include <stdio.h>
#include "glib.h"
enum markdown_extensions {
EXT_SMART = 1 << 0,
EXT_NOTES = 1 << 1,
EXT_LINK_ATTRIBUTES = 1 << 2,
EXT_FILTER_HTML = 1 << 3,
EXT_FILTER_STYLES = 1 << 4,
EXT_COMPATIBILITY = 1 << 5,
EXT_PROCESS_HTML = 1 << 6,
EXT_NO_LABELS = 1 << 7,
EXT_KEEP_WHITESPACES = 1 << 8,
EXT_KEEP_ESCAPES = 1 << 9,
EXT_KEEP_MAGIC_BLANK_LINES = 1 << 10,
EXT_TABLES = 1 << 11,
EXT_MATH = 1 << 12,
EXT_LABELS = 1 << 13,
EXT_DELETE = 1 << 14,
EXT_COMMENT = 1 << 15,
};
enum markdown_formats {
HTML_FORMAT,
LATEX_FORMAT,
MEMOIR_FORMAT,
BEAMER_FORMAT,
OPML_FORMAT,
GROFF_MM_FORMAT,
ODF_FORMAT,
ODF_BODY_FORMAT,
ORIGINAL_FORMAT
};
GString * markdown_to_g_string(char *text, int extensions, int output_format);
char * markdown_to_string(char *text, int extensions, int output_format);
char * extract_metadata_value(char *text, int extensions, char *key);
gboolean has_metadata(char *text, int extensions);
char * mmd_version(void);
/* vim: set ts=4 sw=4 : */
#endif