Commit 9f1c4b580df2a11e37b093cec4fa18fcfe82c956

Martin Mitas 2016-11-21T09:48:08

Fix macro MD_FLAG_PERMISSIVEAUTOLINKS.

diff --git a/md2html/md2html.c b/md2html/md2html.c
index 221ac50..66fa485 100644
--- a/md2html/md2html.c
+++ b/md2html/md2html.c
@@ -585,7 +585,7 @@ cmdline_callback(int opt, char const* value, void* data)
         case 'W':   renderer_flags |= MD_FLAG_COLLAPSEWHITESPACE; break;
         case 'U':   renderer_flags |= MD_FLAG_PERMISSIVEURLAUTOLINKS; break;
         case '@':   renderer_flags |= MD_FLAG_PERMISSIVEEMAILAUTOLINKS; break;
-        case 'V':   renderer_flags |= MD_FLAG_PERMISSIVEURLAUTOLINKS | MD_FLAG_PERMISSIVEEMAILAUTOLINKS; break;
+        case 'V':   renderer_flags |= MD_FLAG_PERMISSIVEAUTOLINKS; break;
 
         default:
             fprintf(stderr, "Illegal option: %s\n", value);
diff --git a/md4c/md4c.h b/md4c/md4c.h
index 34ce47d..6d4557c 100644
--- a/md4c/md4c.h
+++ b/md4c/md4c.h
@@ -196,7 +196,7 @@ struct MD_BLOCK_CODE_DETAIL_tag {
 #define MD_FLAG_PERMISSIVEATXHEADERS        0x0002  /* Do not require space in ATX headers ( ###header ) */
 #define MD_FLAG_PERMISSIVEURLAUTOLINKS      0x0004  /* Recognize URLs as autolinks even without '<', '>' */
 #define MD_FLAG_PERMISSIVEEMAILAUTOLINKS    0x0008  /* Recognize e-mails as autolinks even without '<', '>' and 'mailto:' */
-#define MD_FLAG_PERMISSIVEAUTOLINKS         (MD_FLAG_PERMISSIVEWWWAUTOLINKS | MD_FLAG_PERMISSIVEEMAILAUTOLINKS)
+#define MD_FLAG_PERMISSIVEAUTOLINKS         (MD_FLAG_PERMISSIVEURLAUTOLINKS | MD_FLAG_PERMISSIVEEMAILAUTOLINKS)
 #define MD_FLAG_NOINDENTEDCODEBLOCKS        0x0010  /* Disable indented code blocks. (Only fenced code works.) */
 #define MD_FLAG_NOHTMLBLOCKS                0x0020  /* Disable raw HTML blocks. */
 #define MD_FLAG_NOHTMLSPANS                 0x0040  /* Disable raw HTML (inline). */