mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
update dev dependencies
This commit is contained in:
parent
1cd281f064
commit
5cc3fcc84e
34
dist/showdown.js
vendored
34
dist/showdown.js
vendored
@ -970,7 +970,7 @@ showdown.helper.padEnd = function padEnd (str, targetLength, padString) {
|
||||
* POLYFILLS
|
||||
*/
|
||||
// use this instead of builtin is undefined for IE8 compatibility
|
||||
if (typeof(console) === 'undefined') {
|
||||
if (typeof console === 'undefined') {
|
||||
console = {
|
||||
warn: function (msg) {
|
||||
'use strict';
|
||||
@ -2225,10 +2225,10 @@ showdown.Converter = function (converterOptions) {
|
||||
*/
|
||||
setConvFlavor = setFlavor,
|
||||
|
||||
/**
|
||||
* Metadata of the document
|
||||
* @type {{parsed: {}, raw: string, format: string}}
|
||||
*/
|
||||
/**
|
||||
* Metadata of the document
|
||||
* @type {{parsed: {}, raw: string, format: string}}
|
||||
*/
|
||||
metadata = {
|
||||
parsed: {},
|
||||
raw: '',
|
||||
@ -2287,7 +2287,7 @@ showdown.Converter = function (converterOptions) {
|
||||
'Please inform the developer that the extension should be updated!');
|
||||
legacyExtensionLoading(showdown.extensions[ext], ext);
|
||||
return;
|
||||
// END LEGACY SUPPORT CODE
|
||||
// END LEGACY SUPPORT CODE
|
||||
|
||||
} else if (!showdown.helper.isUndefined(extensions[ext])) {
|
||||
ext = extensions[ext];
|
||||
@ -2849,7 +2849,7 @@ showdown.subParser('anchors', function (text, options, globals) {
|
||||
|
||||
// normal cases
|
||||
text = text.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
|
||||
writeAnchorTag);
|
||||
writeAnchorTag);
|
||||
|
||||
// handle reference-style shortcuts: [link text]
|
||||
// These must come last in case you've also got [link test][1]
|
||||
@ -3105,7 +3105,7 @@ showdown.subParser('codeSpans', function (text, options, globals) {
|
||||
|
||||
text = globals.converter._dispatch('codeSpans.before', text, options, globals);
|
||||
|
||||
if (typeof(text) === 'undefined') {
|
||||
if (typeof text === 'undefined') {
|
||||
text = '';
|
||||
}
|
||||
text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
|
||||
@ -3525,7 +3525,7 @@ showdown.subParser('hashHTMLBlocks', function (text, options, globals) {
|
||||
|
||||
//2. Split the text in that position
|
||||
var subTexts = showdown.helper.splitAtIndex(text, opTagPos),
|
||||
//3. Match recursively
|
||||
//3. Match recursively
|
||||
newSubText1 = showdown.helper.replaceRecursiveRegExp(subTexts[1], repFunc, patLeft, patRight, 'im');
|
||||
|
||||
// prevent an infinite loop
|
||||
@ -3644,13 +3644,13 @@ showdown.subParser('headers', function (text, options, globals) {
|
||||
|
||||
var headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart),
|
||||
|
||||
// Set text-style headers:
|
||||
// Header 1
|
||||
// ========
|
||||
//
|
||||
// Header 2
|
||||
// --------
|
||||
//
|
||||
// Set text-style headers:
|
||||
// Header 1
|
||||
// ========
|
||||
//
|
||||
// Header 2
|
||||
// --------
|
||||
//
|
||||
setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm,
|
||||
setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
|
||||
|
||||
@ -4451,7 +4451,7 @@ showdown.subParser('tables', function (text, options, globals) {
|
||||
}
|
||||
|
||||
var tableRgx = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,
|
||||
//singeColTblRgx = /^ {0,3}\|.+\|\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n(?: {0,3}\|.+\|\n)+(?:\n\n|¨0)/gm;
|
||||
//singeColTblRgx = /^ {0,3}\|.+\|\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n(?: {0,3}\|.+\|\n)+(?:\n\n|¨0)/gm;
|
||||
singeColTblRgx = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
|
||||
|
||||
function parseStyles (sLine) {
|
||||
|
2
dist/showdown.js.map
vendored
2
dist/showdown.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/showdown.min.js.map
vendored
2
dist/showdown.min.js.map
vendored
File diff suppressed because one or more lines are too long
1275
package-lock.json
generated
1275
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@
|
||||
"grunt-conventional-changelog": "^6.1.0",
|
||||
"grunt-conventional-github-releaser": "^1.0.0",
|
||||
"grunt-endline": "^0.6.1",
|
||||
"grunt-eslint": "^19.0.0",
|
||||
"grunt-eslint": "^22.0.0",
|
||||
"grunt-simple-mocha": "^0.4.0",
|
||||
"jsdom": "^13.0.0",
|
||||
"load-grunt-tasks": "^3.2.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user