@marp-team/marpit
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -5,2 +5,14 @@ # Change Log | ||
## v1.4.0 - 2019-09-12 | ||
### Changed | ||
- Update CircleCI configuration to use v2.1 ([#187](https://github.com/marp-team/marpit/pull/187)) | ||
- Bump markdown-it to [v10.0.0](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md#1000---2019-09-11) ([#190](https://github.com/marp-team/marpit/pull/190)) | ||
- Upgrade Node and dependent packages to the latest version ([#190](https://github.com/marp-team/marpit/pull/190)) | ||
### Removed | ||
- Deprecated dollar prefix alias for global directive ([#182](https://github.com/marp-team/marpit/issues/182), [#189](https://github.com/marp-team/marpit/pull/189)) | ||
## v1.3.2 - 2019-08-23 | ||
@@ -7,0 +19,0 @@ |
@@ -16,4 +16,6 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -92,14 +94,8 @@ | ||
for (const key of Object.keys(obj)) { | ||
const globalKey = key.startsWith('$') ? (() => { | ||
if (marpit.customDirectives.global[key]) return key; | ||
console.warn(`Deprecation warning: Dollar prefix support for global directive "${key}" is deprecated and will remove soon. Just remove "$" from "${key}" to fix ("${key.slice(1)}").`); | ||
return key.slice(1); | ||
})() : key; | ||
if (directives.globals[globalKey]) { | ||
if (directives.globals[key]) { | ||
recognized = true; | ||
globalDirectives = _objectSpread({}, globalDirectives, {}, directives.globals[globalKey](obj[key], marpit)); | ||
} else if (marpit.customDirectives.global[globalKey]) { | ||
globalDirectives = _objectSpread({}, globalDirectives, {}, directives.globals[key](obj[key], marpit)); | ||
} else if (marpit.customDirectives.global[key]) { | ||
recognized = true; | ||
globalDirectives = _objectSpread({}, globalDirectives, {}, applyBuiltinDirectives(marpit.customDirectives.global[globalKey](obj[key], marpit), directives.globals)); | ||
globalDirectives = _objectSpread({}, globalDirectives, {}, applyBuiltinDirectives(marpit.customDirectives.global[key](obj[key], marpit), directives.globals)); | ||
} | ||
@@ -106,0 +102,0 @@ } |
@@ -14,4 +14,6 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
/** @module */ | ||
@@ -18,0 +20,0 @@ const createPatterns = keys => { |
@@ -147,6 +147,5 @@ "use strict"; | ||
url: url.toString(), | ||
options // Detect shorthand for setting color (Use value before normalization) | ||
options | ||
}); // Detect shorthand for setting color (Use value before normalization) | ||
}); | ||
if (!!_colorString.default.get(originalUrl) || originalUrl.toLowerCase() === 'currentcolor') { | ||
@@ -153,0 +152,0 @@ token.meta.marpitImage.color = originalUrl; |
@@ -68,7 +68,6 @@ "use strict"; | ||
inlineSVG: false | ||
/** | ||
* Parse Marpit Markdown and render to the slide HTML/CSS. | ||
*/ | ||
}; | ||
/** | ||
* Parse Marpit Markdown and render to the slide HTML/CSS. | ||
*/ | ||
@@ -75,0 +74,0 @@ class Marpit { |
@@ -30,4 +30,6 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,0 +36,0 @@ |
@@ -50,7 +50,6 @@ "use strict"; | ||
theme: String | ||
/** | ||
* Marpit theme class. | ||
*/ | ||
}; | ||
/** | ||
* Marpit theme class. | ||
*/ | ||
@@ -57,0 +56,0 @@ class Theme { |
{ | ||
"name": "@marp-team/marpit", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "The skinny framework for creating slide deck from Markdown", | ||
@@ -39,6 +39,7 @@ "license": "MIT", | ||
"scripts": { | ||
"build": "yarn --mutex file run clean && babel src --out-dir lib", | ||
"check-audit": "yarn --mutex file audit", | ||
"build": "yarn -s clean && babel src --out-dir lib", | ||
"check:audit": "yarn audit", | ||
"check:format": "yarn -s run format -c", | ||
"clean": "rimraf lib", | ||
"docs": "npm-run-all --npm-path yarn --parallel docsify docsify:style:watch", | ||
"docs": "run-p docsify docsify:style:watch", | ||
"docsify": "browser-sync start -s docs -f \"docs/**/*\" --single --no-open", | ||
@@ -48,23 +49,22 @@ "docsify:style": "node ./docsify/build.js", | ||
"format": "prettier \"**/*.{css,html,js,json,md,scss,ts,yaml,yml}\"", | ||
"format:check": "yarn --silent --mutex file run format -c", | ||
"jsdoc": "rimraf jsdoc && jsdoc src -c .jsdoc.json", | ||
"lint:js": "eslint .", | ||
"lint:css": "stylelint \"./**/*.{css,scss}\"", | ||
"prepack": "npm-run-all --npm-path yarn --parallel check-audit format:check lint:* test:coverage --sequential build", | ||
"preversion": "npm-run-all --npm-path yarn --parallel check-audit format:check lint:* test:coverage", | ||
"prepack": "npm-run-all --parallel check:* lint:* test:coverage --sequential build", | ||
"preversion": "run-p check:* lint:* test:coverage", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"version": "curl https://raw.githubusercontent.com/marp-team/marp/master/version.js | node && git add -A CHANGELOG.md", | ||
"version": "curl https://raw.githubusercontent.com/marp-team/actions/v1/lib/scripts/version.js | node && git add -A CHANGELOG.md", | ||
"watch": "babel src --out-dir lib -w --verbose" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/cli": "^7.6.0", | ||
"@babel/core": "^7.6.0", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.5.5", | ||
"@babel/plugin-proposal-private-methods": "^7.4.4", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/plugin-proposal-private-methods": "^7.6.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"autoprefixer": "^9.6.1", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.2", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
@@ -74,24 +74,24 @@ "browser-sync": "^2.26.7", | ||
"codecov": "^3.5.0", | ||
"cross-env": "^5.2.0", | ||
"cross-env": "^5.2.1", | ||
"cssnano": "^4.1.10", | ||
"dedent": "^0.7.0", | ||
"docsify-themeable": "^0.7.2", | ||
"eslint": "~6.1.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-airbnb-base": "14.0.0", | ||
"eslint-config-prettier": "^6.1.0", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^7.0.0", | ||
"jest-junit": "^8.0.0", | ||
"jsdoc": "^3.6.3", | ||
"minami": "^1.2.3", | ||
"mkdirp": "^0.5.1", | ||
"nodemon": "^1.19.1", | ||
"nodemon": "^1.19.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.18.2", | ||
"rimraf": "^3.0.0", | ||
"sass": "^1.22.10", | ||
"sass": "^1.22.12", | ||
"stylelint": "^10.1.0", | ||
"stylelint-config-prettier": "^5.2.0", | ||
"stylelint-config-standard": "^18.3.0", | ||
"stylelint-scss": "^3.9.4" | ||
"stylelint-scss": "^3.10.1" | ||
}, | ||
@@ -102,5 +102,5 @@ "dependencies": { | ||
"lodash.kebabcase": "^4.1.1", | ||
"markdown-it": "^9.1.0", | ||
"markdown-it": "^10.0.0", | ||
"markdown-it-front-matter": "^0.1.2", | ||
"postcss": "^7.0.17" | ||
"postcss": "^7.0.18" | ||
}, | ||
@@ -107,0 +107,0 @@ "publishConfig": { |
159758
3202
+ Addedentities@2.0.3(transitive)
+ Addedmarkdown-it@10.0.0(transitive)
- Removedentities@1.1.2(transitive)
- Removedmarkdown-it@9.1.0(transitive)
Updatedmarkdown-it@^10.0.0
Updatedpostcss@^7.0.18