|
@@ -1,5 +1,5 @@
|
|
|
-;/*! showdown 21-06-2016 */
|
|
|
-(function(){
|
|
|
+;/*! showdown 21-06-2016 */
|
|
|
+(function(){
|
|
|
/**
|
|
|
* Created by Tivie on 13-07-2015.
|
|
|
*/
|
|
@@ -90,7 +90,7 @@ function getDefaultOpts(simple) {
|
|
|
}
|
|
|
return ret;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Created by Tivie on 06-01-2015.
|
|
|
*/
|
|
@@ -416,7 +416,7 @@ showdown.validateExtension = function (ext) {
|
|
|
}
|
|
|
return true;
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* showdownjs helper functions
|
|
|
*/
|
|
@@ -689,7 +689,7 @@ if (showdown.helper.isUndefined(console)) {
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Created by Estevao on 31-05-2015.
|
|
|
*/
|
|
@@ -1097,7 +1097,7 @@ showdown.Converter = function (converterOptions) {
|
|
|
};
|
|
|
};
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Turn Markdown link shortcuts into XHTML <a> tags.
|
|
|
*/
|
|
@@ -1231,7 +1231,7 @@ showdown.subParser('anchors', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('anchors.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('autoLinks', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1261,7 +1261,7 @@ showdown.subParser('autoLinks', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* These are all the transformations that form block-level
|
|
|
* tags like paragraphs, headers, and list items.
|
|
@@ -1297,7 +1297,7 @@ showdown.subParser('blockGamut', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('blockQuotes', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1345,7 +1345,7 @@ showdown.subParser('blockQuotes', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('blockQuotes.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Process Markdown `<pre><code>` blocks.
|
|
|
*/
|
|
@@ -1396,7 +1396,7 @@ showdown.subParser('codeBlocks', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('codeBlocks.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* * Backtick quotes are used for <code></code> spans.
|
|
@@ -1456,7 +1456,7 @@ showdown.subParser('codeSpans', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('codeSpans.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Convert all tabs to spaces
|
|
|
*/
|
|
@@ -1489,7 +1489,7 @@ showdown.subParser('detab', function (text) {
|
|
|
return text;
|
|
|
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Smart processing for ampersands and angle brackets that need to be encoded.
|
|
|
*/
|
|
@@ -1504,7 +1504,7 @@ showdown.subParser('encodeAmpsAndAngles', function (text) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Returns the string, with after processing the following backslash escape sequences.
|
|
|
*
|
|
@@ -1522,7 +1522,7 @@ showdown.subParser('encodeBackslashEscapes', function (text) {
|
|
|
text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g, showdown.helper.escapeCharactersCallback);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Encode/escape certain characters inside Markdown code runs.
|
|
|
* The point is that in code, these characters are literals,
|
|
@@ -1551,7 +1551,7 @@ showdown.subParser('encodeCode', function (text) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Input: an email address, e.g. "foo@example.com"
|
|
|
*
|
|
@@ -1604,7 +1604,7 @@ showdown.subParser('encodeEmailAddress', function (addr) {
|
|
|
|
|
|
return addr;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Within tags -- meaning between < and > -- encode [\ ` * _] so they
|
|
|
* don't conflict with their use in Markdown for code, italics and strong.
|
|
@@ -1624,7 +1624,7 @@ showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Handle github codeblocks prior to running HashHTML so that
|
|
|
* HTML contained within the codeblock gets escaped properly
|
|
@@ -1671,13 +1671,13 @@ showdown.subParser('githubCodeBlocks', function (text, options, globals) {
|
|
|
|
|
|
return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals);
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('hashBlock', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
text = text.replace(/(^\n+|\n+$)/g, '');
|
|
|
return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('hashElement', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1697,7 +1697,7 @@ showdown.subParser('hashElement', function (text, options, globals) {
|
|
|
return blockText;
|
|
|
};
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('hashHTMLBlocks', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1765,7 +1765,7 @@ showdown.subParser('hashHTMLBlocks', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Hash span elements that should not be parsed as markdown
|
|
|
*/
|
|
@@ -1792,7 +1792,7 @@ showdown.subParser('unhashHTMLSpans', function (text, config, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Hash span elements that should not be parsed as markdown
|
|
|
*/
|
|
@@ -1808,7 +1808,7 @@ showdown.subParser('hashPreCodeTags', function (text, config, globals) {
|
|
|
text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^(?: |\\t){0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>', '^(?: |\\t){0,3}</code>\\s*</pre>', 'gim');
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('headers', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1884,7 +1884,7 @@ showdown.subParser('headers', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('headers.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Turn Markdown image shortcuts into <img> tags.
|
|
|
*/
|
|
@@ -1962,7 +1962,7 @@ showdown.subParser('images', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('images.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('italicsAndBold', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -1986,7 +1986,7 @@ showdown.subParser('italicsAndBold', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('italicsAndBold.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Form HTML ordered (numbered) and unordered (bulleted) lists.
|
|
|
*/
|
|
@@ -2151,7 +2151,7 @@ showdown.subParser('lists', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('lists.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Remove one level of line-leading tabs or spaces
|
|
|
*/
|
|
@@ -2167,7 +2167,7 @@ showdown.subParser('outdent', function (text) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
@@ -2234,7 +2234,7 @@ showdown.subParser('paragraphs', function (text, options, globals) {
|
|
|
text = text.replace(/\n+$/g, '');
|
|
|
return globals.converter._dispatch('paragraphs.after', text, options, globals);
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Run extension
|
|
|
*/
|
|
@@ -2255,7 +2255,7 @@ showdown.subParser('runExtension', function (ext, text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* These are all the transformations that occur *within* block-level
|
|
|
* tags like paragraphs, headers, and list items.
|
|
@@ -2287,7 +2287,7 @@ showdown.subParser('spanGamut', function (text, options, globals) {
|
|
|
text = globals.converter._dispatch('spanGamut.after', text, options, globals);
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('strikethrough', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -2299,7 +2299,7 @@ showdown.subParser('strikethrough', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Strip any lines consisting only of spaces and tabs.
|
|
|
* This makes subsequent regexs easier to write, because we can
|
|
@@ -2310,7 +2310,7 @@ showdown.subParser('stripBlankLines', function (text) {
|
|
|
'use strict';
|
|
|
return text.replace(/^[ \t]+$/mg, '');
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Strips link definitions from text, stores the URLs and titles in
|
|
|
* hash references.
|
|
@@ -2373,7 +2373,7 @@ showdown.subParser('stripLinkDefinitions', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
showdown.subParser('tables', function (text, options, globals) {
|
|
|
'use strict';
|
|
|
|
|
@@ -2503,7 +2503,7 @@ showdown.subParser('tables', function (text, options, globals) {
|
|
|
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Swap back in all the special characters we've hidden.
|
|
|
*/
|
|
@@ -2516,7 +2516,7 @@ showdown.subParser('unescapeSpecialChars', function (text) {
|
|
|
});
|
|
|
return text;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
var root = this;
|
|
|
|
|
|
// CommonJS/nodeJS Loader
|
|
@@ -2534,6 +2534,6 @@ if (typeof module !== 'undefined' && module.exports) {
|
|
|
} else {
|
|
|
root.showdown = showdown;
|
|
|
}
|
|
|
-}).call(this);
|
|
|
+}).call(this);
|
|
|
|
|
|
-//# sourceMappingURL=showdown.js.map
|
|
|
+//# sourceMappingURL=showdown.js.map
|