Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 898 Bytes
#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