@@ -303,21 +303,23 @@ typedef struct MD_SPAN_WIKILINK {
303
303
* By default (when MD_PARSER::flags == 0), we follow CommonMark specification.
304
304
* The following flags may allow some extensions or deviations from it.
305
305
*/
306
- #define MD_FLAG_COLLAPSEWHITESPACE 0x0001 /* In MD_TEXT_NORMAL, collapse non-trivial whitespace into single ' ' */
307
- #define MD_FLAG_PERMISSIVEATXHEADERS 0x0002 /* Do not require space in ATX headers ( ###header ) */
308
- #define MD_FLAG_PERMISSIVEURLAUTOLINKS 0x0004 /* Recognize URLs as autolinks even without '<', '>' */
309
- #define MD_FLAG_PERMISSIVEEMAILAUTOLINKS 0x0008 /* Recognize e-mails as autolinks even without '<', '>' and 'mailto:' */
310
- #define MD_FLAG_NOINDENTEDCODEBLOCKS 0x0010 /* Disable indented code blocks. (Only fenced code works.) */
311
- #define MD_FLAG_NOHTMLBLOCKS 0x0020 /* Disable raw HTML blocks. */
312
- #define MD_FLAG_NOHTMLSPANS 0x0040 /* Disable raw HTML (inline). */
313
- #define MD_FLAG_TABLES 0x0100 /* Enable tables extension. */
314
- #define MD_FLAG_STRIKETHROUGH 0x0200 /* Enable strikethrough extension. */
315
- #define MD_FLAG_PERMISSIVEWWWAUTOLINKS 0x0400 /* Enable WWW autolinks (even without any scheme prefix, if they begin with 'www.') */
316
- #define MD_FLAG_TASKLISTS 0x0800 /* Enable task list extension. */
317
- #define MD_FLAG_LATEXMATHSPANS 0x1000 /* Enable $ and $$ containing LaTeX equations. */
318
- #define MD_FLAG_WIKILINKS 0x2000 /* Enable wiki links extension. */
319
- #define MD_FLAG_UNDERLINE 0x4000 /* Enable underline extension (and disables '_' for normal emphasis). */
320
- #define MD_FLAG_HARD_SOFT_BREAKS 0x8000 /* Force all soft breaks to act as hard breaks. */
306
+ #define MD_FLAG_COLLAPSEWHITESPACE 0x00000001 /* In MD_TEXT_NORMAL, collapse non-trivial whitespace into single ' ' */
307
+ #define MD_FLAG_PERMISSIVEATXHEADERS 0x00000002 /* Do not require space in ATX headers ( ###header ) */
308
+ #define MD_FLAG_PERMISSIVEURLAUTOLINKS 0x00000004 /* Recognize URLs as autolinks even without '<', '>' */
309
+ #define MD_FLAG_PERMISSIVEEMAILAUTOLINKS 0x00000008 /* Recognize e-mails as autolinks even without '<', '>' and 'mailto:' */
310
+ #define MD_FLAG_NOINDENTEDCODEBLOCKS 0x00000010 /* Disable indented code blocks. (Only fenced code works.) */
311
+ #define MD_FLAG_NOHTMLBLOCKS 0x00000020 /* Disable raw HTML blocks. */
312
+ #define MD_FLAG_NOHTMLSPANS 0x00000040 /* Disable raw HTML (inline). */
313
+ #define MD_FLAG_TABLES 0x00000100 /* Enable tables extension. */
314
+ #define MD_FLAG_STRIKETHROUGH 0x00000200 /* Enable strikethrough extension. */
315
+ #define MD_FLAG_PERMISSIVEWWWAUTOLINKS 0x00000400 /* Enable WWW autolinks (even without any scheme prefix, if they begin with 'www.') */
316
+ #define MD_FLAG_TASKLISTS 0x00000800 /* Enable task list extension. */
317
+ #define MD_FLAG_LATEXMATHSPANS 0x00001000 /* Enable $ and $$ containing LaTeX equations. */
318
+ #define MD_FLAG_WIKILINKS 0x00002000 /* Enable wiki links extension. */
319
+ #define MD_FLAG_UNDERLINE 0x00004000 /* Enable underline extension (and disables '_' for normal emphasis). */
320
+ #define MD_FLAG_HARD_SOFT_BREAKS 0x00008000 /* Force all soft breaks to act as hard breaks. */
321
+ #define MD_FLAG_SKIPBOM 0x00010000 /* Skip Unicode BOM, if present. */
322
+
321
323
322
324
#define MD_FLAG_PERMISSIVEAUTOLINKS (MD_FLAG_PERMISSIVEEMAILAUTOLINKS | MD_FLAG_PERMISSIVEURLAUTOLINKS | MD_FLAG_PERMISSIVEWWWAUTOLINKS)
323
325
#define MD_FLAG_NOHTML (MD_FLAG_NOHTMLBLOCKS | MD_FLAG_NOHTMLSPANS)
0 commit comments