@paperist/remark-latex
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -10,3 +10,3 @@ "use strict"; | ||
for (const id of ids) { | ||
if (id.match(/^(?:fig|tbl|sec):/)) { | ||
if (id.match(/^(?:fig|tbl|sec|eq|lst):/)) { | ||
refs.push(id); | ||
@@ -13,0 +13,0 @@ } |
"use strict"; | ||
const qs = require('querystring'); | ||
function image(node, parent) { | ||
node.caption = node.title || node.alt; | ||
node.label = node.label || ''; | ||
node.config = this.options.imageConfig || 'width=5cm,height=5cm,keepaspectratio'; | ||
const config = Object.assign({}, this.options.imageConfigs || {}); | ||
const nextNodeIdx = node.index + 1; | ||
@@ -10,3 +11,5 @@ const nextNode = parent.children[nextNodeIdx]; | ||
node.label += this.convert(nextNode); | ||
Object.assign(config, nextNode.options || {}); | ||
} | ||
node.config = qs.stringify(config, ',', '='); | ||
return node; | ||
@@ -13,0 +16,0 @@ } |
@@ -25,2 +25,5 @@ "use strict"; | ||
this.options.templatesDir || path.resolve(__dirname, '../templates'); | ||
this.options.imageConfigs = { | ||
keepaspectratio: true, | ||
}; | ||
} | ||
@@ -27,0 +30,0 @@ compile(node) { |
{ | ||
"name": "@paperist/remark-latex", | ||
"description": "wooorm/remark plugin for latex", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"dependencies": { | ||
@@ -15,2 +15,3 @@ "ejs": "^2.5.2", | ||
"cpx": "^1.5.0", | ||
"greenkeeper-postpublish": "^1.0.1", | ||
"npm-run-all": "^3.1.1", | ||
@@ -39,4 +40,5 @@ "rimraf": "^2.5.4", | ||
"build:ts": "tsc", | ||
"clean": "rimraf lib/*" | ||
"clean": "rimraf lib/*", | ||
"postpublish": "greenkeeper-postpublish" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20354
408
8