Browse Source

Deps bump & related updates

pull/722/head
Vitaly Puzrin 4 years ago
parent
commit
564de6b249
  1. 2
      .eslintrc.yml
  2. 1
      CHANGELOG.md
  3. 34
      bin/markdown-it.js
  4. 2
      lib/index.js
  5. 4
      package.json
  6. 10
      support/markdown-it.js
  7. 10
      support/specsplit.js

2
.eslintrc.yml

@ -144,7 +144,7 @@ rules:
#spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ] #spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ]
strict: [ 2, global ] strict: [ 2, global ]
quotes: [ 2, single, avoid-escape ] quotes: [ 2, single, avoid-escape ]
quote-props: [ 1, 'as-needed', { "keywords": true } ] quote-props: [ 1, 'as-needed' ]
radix: 2 radix: 2
use-isnan: 2 use-isnan: 2
valid-typeof: 2 valid-typeof: 2

1
CHANGELOG.md

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rewrite tables according to latest GFM spec, #697. - Rewrite tables according to latest GFM spec, #697.
- Use `rollup.js` to browserify sources. - Use `rollup.js` to browserify sources.
- Drop `bower.json` (bower reached EOL). - Drop `bower.json` (bower reached EOL).
- Deps bump.
### Fixed ### Fixed
- Fix mappings for table rows (amended fix made in 11.0.1), #705. - Fix mappings for table rows (amended fix made in 11.0.1), #705.

34
bin/markdown-it.js

@ -12,42 +12,46 @@ var argparse = require('argparse');
var cli = new argparse.ArgumentParser({ var cli = new argparse.ArgumentParser({
prog: 'markdown-it', prog: 'markdown-it',
version: require('../package.json').version, add_help: true
addHelp: true
}); });
cli.addArgument([ '--no-html' ], { cli.add_argument('-v', '--version', {
action: 'version',
version: require('../package.json').version
});
cli.add_argument('--no-html', {
help: 'Disable embedded HTML', help: 'Disable embedded HTML',
action: 'storeTrue' action: 'store_true'
}); });
cli.addArgument([ '-l', '--linkify' ], { cli.add_argument('-l', '--linkify', {
help: 'Autolink text', help: 'Autolink text',
action: 'storeTrue' action: 'store_true'
}); });
cli.addArgument([ '-t', '--typographer' ], { cli.add_argument('-t', '--typographer', {
help: 'Enable smartquotes and other typographic replacements', help: 'Enable smartquotes and other typographic replacements',
action: 'storeTrue' action: 'store_true'
}); });
cli.addArgument([ '--trace' ], { cli.add_argument('--trace', {
help: 'Show stack trace on error', help: 'Show stack trace on error',
action: 'storeTrue' action: 'store_true'
}); });
cli.addArgument([ 'file' ], { cli.add_argument('file', {
help: 'File to read', help: 'File to read',
nargs: '?', nargs: '?',
defaultValue: '-' default: '-'
}); });
cli.addArgument([ '-o', '--output' ], { cli.add_argument('-o', '--output', {
help: 'File to write', help: 'File to write',
defaultValue: '-' default: '-'
}); });
var options = cli.parseArgs(); var options = cli.parse_args();
function readFile(filename, encoding, callback) { function readFile(filename, encoding, callback) {

2
lib/index.js

@ -15,7 +15,7 @@ var punycode = require('punycode');
var config = { var config = {
'default': require('./presets/default'), default: require('./presets/default'),
zero: require('./presets/zero'), zero: require('./presets/zero'),
commonmark: require('./presets/commonmark') commonmark: require('./presets/commonmark')
}; };

4
package.json

@ -35,7 +35,7 @@
"dist/" "dist/"
], ],
"dependencies": { "dependencies": {
"argparse": "^1.0.7", "argparse": "^2.0.1",
"entities": "~2.0.0", "entities": "~2.0.0",
"linkify-it": "^3.0.1", "linkify-it": "^3.0.1",
"mdurl": "^1.0.1", "mdurl": "^1.0.1",
@ -74,7 +74,7 @@
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"shelljs": "^0.8.4", "shelljs": "^0.8.4",
"stylus": "^0.54.5", "stylus": "^0.54.5",
"supertest": "^4.0.2" "supertest": "^5.0.0"
}, },
"mocha": { "mocha": {
"inline-diffs": true "inline-diffs": true

10
support/markdown-it.js

@ -11,18 +11,16 @@ var argparse = require('argparse');
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
var cli = new argparse.ArgumentParser({ var cli = new argparse.ArgumentParser({
prog: 'markdown-it.js', add_help: true
version: require('../package.json').version,
addHelp: true
}); });
cli.addArgument([ 'file' ], { cli.add_argument('file', {
help: 'File to read', help: 'File to read',
nargs: '?', nargs: '?',
defaultValue: '-' default: '-'
}); });
var options = cli.parseArgs(); var options = cli.parse_args();
function readFile(filename, encoding, callback) { function readFile(filename, encoding, callback) {

10
support/specsplit.js

@ -13,22 +13,20 @@ var argparse = require('argparse');
var cli = new argparse.ArgumentParser({ var cli = new argparse.ArgumentParser({
prog: 'specsplit', add_help: true
version: require('../package.json').version,
addHelp: true
}); });
cli.addArgument([ 'type' ], { cli.add_argument('type', {
help: 'type of examples to filter', help: 'type of examples to filter',
nargs: '?', nargs: '?',
choices: [ 'good', 'bad' ] choices: [ 'good', 'bad' ]
}); });
cli.addArgument([ 'spec' ], { cli.add_argument('spec', {
help: 'spec file to read' help: 'spec file to read'
}); });
var options = cli.parseArgs(); var options = cli.parse_args();
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save