#include <stdlib.h>
#include <stdio.h>
#include <glib.h>

enum markdown_extensions {
    EXT_SMART            = 0x01,
    EXT_NOTES            = 0x02,
    EXT_FILTER_HTML      = 0x04,
    EXT_FILTER_STYLES    = 0x08
};

enum markdown_formats {
    HTML_FORMAT,
    LATEX_FORMAT,
    GROFF_MM_FORMAT
};

GString * markdown_to_g_string(char *text, int extensions, int output_format);
char * markdown_to_string(char *text, int extensions, int output_format);

/* vim: set ts=4 sw=4 : */

#include <stdlib.h>
#include <stdio.h>
#include <glib.h>

enum markdown_extensions {
    EXT_SMART            = 1,
    EXT_NOTES            = 2,
    EXT_FILTER_HTML      = 3,
    EXT_FILTER_STYLES    = 4
};

enum markdown_formats {
    HTML_FORMAT,
    LATEX_FORMAT,
    GROFF_MM_FORMAT
};

GString * markdown_to_g_string(char *text, int extensions, int output_format);
char * markdown_to_string(char *text, int extensions, int output_format);

/* vim: set ts=4 sw=4 : */

--- 
+++ 
@@ -3,10 +3,10 @@
 #include <glib.h>
 
 enum markdown_extensions {
-    EXT_SMART            = 1,
-    EXT_NOTES            = 2,
-    EXT_FILTER_HTML      = 3,
-    EXT_FILTER_STYLES    = 4
+    EXT_SMART            = 0x01,
+    EXT_NOTES            = 0x02,
+    EXT_FILTER_HTML      = 0x04,
+    EXT_FILTER_STYLES    = 0x08
 };
 
 enum markdown_formats {
Fix extensions flags bit collision.

Setting EXT_FILTER_HTML was the same as setting
(EXT_SMART | EXT_NOTES); setting EXT_FILTER_STYLES would
also set EXT_NOTES.

The switch to hex notation is purely to hint that the
values are meant to be used as bit flags directly.
