@paperist/remark-latex
Advanced tools
Comparing version 0.0.5 to 0.0.6
import { Converters } from '../converters'; | ||
export default class LaTeXCompiler { | ||
file: any; | ||
options: any; | ||
footnotes: any[]; | ||
definitions: any; | ||
converters: Converters; | ||
options: any; | ||
constructor(file: any, options?: any); | ||
@@ -9,0 +9,0 @@ compile(node: any): string; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const jsYAML = require('js-yaml'); | ||
const _ = require('lodash'); | ||
const converters_1 = require('../converters'); | ||
@@ -12,3 +13,2 @@ const visit = require('unist-util-visit'); | ||
this.file = file; | ||
this.options = options; | ||
this.footnotes = []; | ||
@@ -25,2 +25,3 @@ this.definitions = {}; | ||
} | ||
this.options = _.cloneDeep(options); | ||
this.options.templatesDir = | ||
@@ -36,3 +37,3 @@ this.options.templatesDir || path.resolve(__dirname, '../templates'); | ||
const opts = jsYAML.safeLoad(yamlNode.value); | ||
this.options = Object.assign(this.options, opts.latex || {}); | ||
this.options = _.defaultsDeep(this.options, opts.latex || {}); | ||
} | ||
@@ -39,0 +40,0 @@ catch (_e) { |
{ | ||
"name": "@paperist/remark-latex", | ||
"description": "wooorm/remark plugin for latex", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"dependencies": { | ||
"ejs": "^2.5.2", | ||
"js-yaml": "^3.7.0", | ||
"lodash": "^4.17.2", | ||
"unist-util-visit": "^1.1.1" | ||
@@ -13,2 +14,3 @@ }, | ||
"@types/js-yaml": "^3.5.28", | ||
"@types/lodash": "^4.14.43", | ||
"@types/node": "^6.0.48", | ||
@@ -15,0 +17,0 @@ "cpx": "^1.5.0", |
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
20665
413
4
9
+ Addedlodash@^4.17.2
+ Addedlodash@4.17.21(transitive)