Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (28 sloc) 0.821 kb
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
#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);

/* vim: set ts=4 sw=4 : */
Something went wrong with that request. Please try again.