@marp-team/marpit
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -5,2 +5,8 @@ # Change Log | ||
## v0.0.8 - 2018-06-28 | ||
- Apply `color` style to pseudo layer of advanced backgrounds ([#37](https://github.com/marp-team/marpit/pull/37)) | ||
- Fix JSDoc: Missing `color` prop in the definition of local directives ([#38](https://github.com/marp-team/marpit/pull/38)) | ||
- Support Unicode 11.0 emoji ([#39](https://github.com/marp-team/marpit/pull/39)) | ||
## v0.0.7 - 2018-06-04 | ||
@@ -7,0 +13,0 @@ |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _inline_style = require('../helpers/inline_style'); | ||
var _inline_style2 = _interopRequireDefault(_inline_style); | ||
var _wrap_tokens = require('../helpers/wrap_tokens'); | ||
@@ -14,2 +18,3 @@ | ||
/** @module */ | ||
const bgSizeKeywords = { | ||
@@ -37,4 +42,3 @@ auto: 'auto', | ||
*/ | ||
}; /** @module */ | ||
function backgroundImage(md) { | ||
};function backgroundImage(md) { | ||
md.inline.ruler2.after('marpit_parse_image', 'marpit_background_image', ({ tokens }) => { | ||
@@ -154,2 +158,7 @@ tokens.forEach(t => { | ||
// Apply styles | ||
const style = new _inline_style2.default(); | ||
if (open.meta && open.meta.marpitDirectives && open.meta.marpitDirectives.color) style.set('color', open.meta.marpitDirectives.color); | ||
tokens = [t, ...(0, _wrap_tokens2.default)('marpit_advanced_background_foreign_object', { | ||
@@ -162,2 +171,3 @@ tag: 'foreignObject', | ||
tag: 'section', | ||
style: style.toString(), | ||
'data-marpit-advanced-background': 'pseudo', | ||
@@ -164,0 +174,0 @@ 'data-marpit-pagination': open.attrGet('data-marpit-pagination') |
@@ -58,3 +58,3 @@ 'use strict'; | ||
* @prop {Directive} class Specify HTML class of section element(s). | ||
* @prop {Directive} class Specify color style (base text color). | ||
* @prop {Directive} color Specify color style (base text color). | ||
* @prop {Directive} footer Specify the content of slide footer. It will insert | ||
@@ -61,0 +61,0 @@ * a `<footer>` element to the last of each slide contents. |
@@ -23,7 +23,6 @@ 'use strict'; | ||
rule.selectors = rule.selectors.map(selector => { | ||
if (/^section(?![\w-])/.test(selector)) { | ||
return `:marpit-container > :marpit-slide${selector.slice(7)}`; | ||
} else if (/^(:marpit-container|html|body)(?![\w-])/.test(selector)) { | ||
return selector; | ||
} | ||
if (/^section(?![\w-])/.test(selector)) return `:marpit-container > :marpit-slide${selector.slice(7)}`; | ||
if (/^(:marpit-container|html|body)(?![\w-])/.test(selector)) return selector; | ||
return `:marpit-container > :marpit-slide ${selector}`; | ||
@@ -30,0 +29,0 @@ }); |
{ | ||
"name": "@marp-team/marpit", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "The skinny framework for creating slide deck from Markdown", | ||
@@ -59,9 +59,9 @@ "license": "MIT", | ||
"coveralls": "^3.0.1", | ||
"cross-env": "^5.1.6", | ||
"cross-env": "^5.2.0", | ||
"dedent": "^0.7.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "12.1.0", | ||
"eslint": "^5.0.1", | ||
"eslint-config-airbnb-base": "13.0.0", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-plugin-import": "^2.12.0", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-prettier": "^2.6.1", | ||
"jsdoc": "^3.5.5", | ||
@@ -72,8 +72,8 @@ "minami": "^1.2.3", | ||
"nyc": "^12.0.2", | ||
"power-assert": "^1.5.0", | ||
"prettier": "^1.13.4", | ||
"power-assert": "^1.6.0", | ||
"prettier": "^1.13.6", | ||
"rimraf": "^2.6.2" | ||
}, | ||
"dependencies": { | ||
"emoji-regex": "^6.5.1", | ||
"emoji-regex": "^7.0.0", | ||
"js-yaml": "^3.12.0", | ||
@@ -83,3 +83,3 @@ "lodash.kebabcase": "^4.1.1", | ||
"markdown-it-front-matter": "^0.1.2", | ||
"postcss": "^6.0.22" | ||
"postcss": "^6.0.23" | ||
}, | ||
@@ -86,0 +86,0 @@ "publishConfig": { |
106176
2100
+ Addedemoji-regex@7.0.3(transitive)
- Removedemoji-regex@6.5.1(transitive)
Updatedemoji-regex@^7.0.0
Updatedpostcss@^6.0.23