|
@@ -170,6 +170,10 @@ var showdown = {},
|
|
|
ghCompatibleHeaderId: true,
|
|
|
ghMentions: true
|
|
|
},
|
|
|
+ original: {
|
|
|
+ noHeaderId: true,
|
|
|
+ ghCodeBlocks: false
|
|
|
+ },
|
|
|
vanilla: getDefaultOpts(true),
|
|
|
allOn: allOptionsOn()
|
|
|
};
|
|
@@ -1404,8 +1408,8 @@ showdown.subParser('autoLinks', function (text, options, globals) {
|
|
|
b = b || '';
|
|
|
mail = showdown.subParser('unescapeSpecialChars')(mail, options, globals);
|
|
|
if (options.encodeEmails) {
|
|
|
- mail = showdown.helper.encodeEmailAddress(mail);
|
|
|
href = showdown.helper.encodeEmailAddress(href + mail);
|
|
|
+ mail = showdown.helper.encodeEmailAddress(mail);
|
|
|
} else {
|
|
|
href = href + mail;
|
|
|
}
|