Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paperist/remark-latex

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperist/remark-latex - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/converters/crossReference/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc