forked from jgm/peg-markdown
-
Notifications
You must be signed in to change notification settings - Fork 55
/
markdown_lib.h
38 lines (32 loc) · 898 Bytes
/
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
#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_FILTER_HTML = 1 << 2,
EXT_FILTER_STYLES = 1 << 3,
EXT_COMPATIBILITY = 1 << 4,
EXT_PROCESS_HTML = 1 << 5,
EXT_NO_LABELS = 1 << 6,
};
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();
/* vim: set ts=4 sw=4 : */
#endif