mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: update dev dependencies and fix code style
This commit is contained in:
parent
6efd75cb83
commit
d23b028bb3
|
@ -64,8 +64,7 @@ module.exports = function (grunt) {
|
|||
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc',
|
||||
reporterOutput: ''
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
files: [
|
||||
'Gruntfile.js',
|
||||
|
@ -76,7 +75,7 @@ module.exports = function (grunt) {
|
|||
|
||||
eslint: {
|
||||
options: {
|
||||
config: '.eslintrc.json'
|
||||
useEslintrc: true
|
||||
},
|
||||
target: [
|
||||
'Gruntfile.js',
|
||||
|
|
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
6648
package-lock.json
generated
6648
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -47,12 +47,12 @@
|
|||
"grunt": "^1.0.3",
|
||||
"grunt-contrib-clean": "1.1.x",
|
||||
"grunt-contrib-concat": "1.0.x",
|
||||
"grunt-contrib-jshint": "1.1.x",
|
||||
"grunt-contrib-jshint": "3.2.x",
|
||||
"grunt-contrib-uglify": "~3.3.0",
|
||||
"grunt-conventional-changelog": "6.1.x",
|
||||
"grunt-conventional-github-releaser": "1.0.x",
|
||||
"grunt-endline": "0.6.x",
|
||||
"grunt-eslint": "19.0.x",
|
||||
"grunt-eslint": "^24.0.0",
|
||||
"grunt-simple-mocha": "0.4.x",
|
||||
"load-grunt-tasks": "3.5.x",
|
||||
"performance-now": "2.0.x",
|
||||
|
|
|
@ -477,7 +477,7 @@ showdown.helper.Event = function (name, text, params) {
|
|||
* 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';
|
||||
|
|
|
@ -28,7 +28,7 @@ showdown.subParser('makehtml.codeSpans', function (text, options, globals) {
|
|||
|
||||
text = globals.converter._dispatch('makehtml.codeSpans.before', text, options, globals).getText();
|
||||
|
||||
if (typeof(text) === 'undefined') {
|
||||
if (typeof (text) === 'undefined') {
|
||||
text = '';
|
||||
}
|
||||
text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
|
||||
|
|
Loading…
Reference in New Issue
Block a user