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

rebber

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rebber - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

dist/custom-types/figure.js

@@ -14,3 +14,3 @@ 'use strict';

var caption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Anonymous';
return '\\begin{Quotation}{' + caption + '}\n' + innerText + '\n\\end{Quotation}\n\n';
return '\\begin{Quotation}[' + caption + ']\n' + innerText + '\n\\end{Quotation}\n\n';
},

@@ -37,4 +37,5 @@ code: function code(_code, caption, extra) {

code: function code(node) {
var extra = { language: node.lang.split(' ')[0] };
if (node.lang.includes(' ')) {
var language = node.lang || 'text';
var extra = { language: language.split(' ')[0] };
if (language.includes(' ')) {
var tail = node.lang.split(' ')[1];

@@ -41,0 +42,0 @@ if (tail) {

@@ -48,3 +48,5 @@ 'use strict';

var title = ctx.codeAppendiceTitle || 'Appendices';
return { codeInTableVisitor: appendiceVisitorFactory({ title: title, root: root }) };
return {
codeInTableVisitor: appendiceVisitorFactory({ title: title, root: root })
};
}

@@ -7,2 +7,3 @@ 'use strict';

var defaultMacro = function defaultMacro(content, lang) {
if (!lang) lang = 'text';
var param = '';

@@ -9,0 +10,0 @@ if (lang.indexOf('hl_lines=') > -1) {

{
"name": "rebber",
"version": "1.0.3",
"version": "1.0.4",
"description": "Stringifies MDAST to LaTeX",

@@ -38,19 +38,20 @@ "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber",

"devDependencies": {
"babel-cli": "^6.24.1",
"babel-cli": "^6.26.0",
"babel-jest": "^20.0.3",
"babel-preset-es2015": "^6.24.1",
"cross-env": "^5.0.5",
"dedent": "^0.7.0",
"del-cli": "^1.0.0",
"eslint": "^4.4.1",
"jest": "^20.0.4",
"remark-abbr": "^1.0.3",
"remark-align": "^1.0.3",
"remark-captions": "^1.0.1",
"remark-emoticons": "^0.0.22",
"remark-grid-tables": "^1.0.3",
"remark-numbered-footnotes": "^0.0.17",
"remark-abbr": "^1.0.4",
"remark-align": "^1.0.4",
"remark-captions": "^1.0.2",
"remark-emoticons": "^0.0.23",
"remark-grid-tables": "^1.0.4",
"remark-numbered-footnotes": "^0.0.18",
"remark-parse": "^4.0.0",
"remark-sub-super": "^1.0.3",
"remark-sub-super": "^1.0.4",
"unified": "^6.1.5"
}
}

@@ -11,3 +11,3 @@ /* Dependencies. */

blockquote: (innerText, caption = 'Anonymous') =>
`\\begin{Quotation}{${caption}}\n${innerText}\n\\end{Quotation}\n\n`,
`\\begin{Quotation}[${caption}]\n${innerText}\n\\end{Quotation}\n\n`,
code: (code, caption, extra) => {

@@ -32,5 +32,6 @@ let params = `[${caption}]`

blockquote: node => {},
code: node => {
const extra = {language: node.lang.split(' ')[0]}
if (node.lang.includes(' ')) {
code: (node) => {
const language = node.lang || 'text'
const extra = {language: language.split(' ')[0]}
if (language.includes(' ')) {
const tail = node.lang.split(' ')[1]

@@ -37,0 +38,0 @@ if (tail) {

@@ -44,3 +44,5 @@ const visit = require('unist-util-visit')

const title = ctx.codeAppendiceTitle || 'Appendices'
return {codeInTableVisitor: appendiceVisitorFactory({title, root})}
return {
codeInTableVisitor: appendiceVisitorFactory({title, root}),
}
}

@@ -5,2 +5,3 @@ /* Expose. */

const defaultMacro = (content, lang) => {
if (!lang) lang = 'text'
let param = ''

@@ -7,0 +8,0 @@ if (lang.indexOf('hl_lines=') > -1) {

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