Correct extension category

This commit is contained in:
Xavier Mendez 2014-03-23 19:56:05 +01:00
parent 6e7624195a
commit 8bc7aadbff

View file

@ -16,29 +16,28 @@ extern "C" {
enum hoedown_extensions {
/* block-level extensions */
HOEDOWN_EXT_SPACE_HEADERS = (1 << 0),
HOEDOWN_EXT_TABLES = (1 << 1),
HOEDOWN_EXT_FENCED_CODE = (1 << 2),
HOEDOWN_EXT_FOOTNOTES = (1 << 3),
HOEDOWN_EXT_TABLES = (1 << 0),
HOEDOWN_EXT_FENCED_CODE = (1 << 1),
HOEDOWN_EXT_FOOTNOTES = (1 << 2),
/* span-level extensions */
HOEDOWN_EXT_AUTOLINK = (1 << 4),
HOEDOWN_EXT_STRIKETHROUGH = (1 << 5),
HOEDOWN_EXT_UNDERLINE = (1 << 6),
HOEDOWN_EXT_HIGHLIGHT = (1 << 7),
HOEDOWN_EXT_QUOTE = (1 << 8),
HOEDOWN_EXT_SUPERSCRIPT = (1 << 9),
HOEDOWN_EXT_AUTOLINK = (1 << 3),
HOEDOWN_EXT_STRIKETHROUGH = (1 << 4),
HOEDOWN_EXT_UNDERLINE = (1 << 5),
HOEDOWN_EXT_HIGHLIGHT = (1 << 6),
HOEDOWN_EXT_QUOTE = (1 << 7),
HOEDOWN_EXT_SUPERSCRIPT = (1 << 8),
/* other flags */
HOEDOWN_EXT_LAX_SPACING = (1 << 10),
HOEDOWN_EXT_NO_INTRA_EMPHASIS = (1 << 11),
HOEDOWN_EXT_LAX_SPACING = (1 << 9),
HOEDOWN_EXT_NO_INTRA_EMPHASIS = (1 << 10),
HOEDOWN_EXT_SPACE_HEADERS = (1 << 11),
/* negative flags */
HOEDOWN_EXT_DISABLE_INDENTED_CODE = (1 << 12)
};
#define HOEDOWN_EXT_BLOCK (\
HOEDOWN_EXT_SPACE_HEADERS |\
HOEDOWN_EXT_TABLES |\
HOEDOWN_EXT_FENCED_CODE |\
HOEDOWN_EXT_FOOTNOTES )
@ -53,7 +52,8 @@ enum hoedown_extensions {
#define HOEDOWN_EXT_FLAGS (\
HOEDOWN_EXT_LAX_SPACING |\
HOEDOWN_EXT_NO_INTRA_EMPHASIS )
HOEDOWN_EXT_NO_INTRA_EMPHASIS |\
HOEDOWN_EXT_SPACE_HEADERS )
#define HOEDOWN_EXT_NEGATIVE (\
HOEDOWN_EXT_DISABLE_INDENTED_CODE )