Add macros MD_DIALECT_COMMONMARK and MD_DIALECT_GITHUB.
diff --git a/md4c/md4c.h b/md4c/md4c.h
index d2fc60d..9509eda 100644
--- a/md4c/md4c.h
+++ b/md4c/md4c.h
@@ -260,7 +260,7 @@ struct MD_SPAN_IMG_DETAIL_tag {
};
-/* Flags specifying Markdown dialect.
+/* Flags specifying extensions/deviations from CommonMark specification.
*
* By default (when MD_RENDERER::flags == 0), we follow CommonMark specification.
* The following flags may allow some extensions or deviations from it.
@@ -276,6 +276,14 @@ struct MD_SPAN_IMG_DETAIL_tag {
#define MD_FLAG_NOHTML (MD_FLAG_NOHTMLBLOCKS | MD_FLAG_NOHTMLSPANS)
#define MD_FLAG_TABLES 0x0100 /* Enable tables extension. */
+/* Convenient sets of flags corresponding to well-known Markdown dialects.
+ * Note we may only support subset of features of the referred dialect.
+ * The constant just enables those extensions which bring us as close as
+ * possible given what features we implement.
+ */
+#define MD_DIALECT_COMMONMARK 0
+#define MD_DIALECT_GITHUB (MD_FLAG_PERMISSIVEATXHEADERS | MD_FLAG_PERMISSIVEAUTOLINKS | MD_FLAG_TABLES)
+
/* Renderer structure.
*/
typedef struct MD_RENDERER_tag MD_RENDERER;