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.1 to 1.0.2

2

dist/types/emphasis.js

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

/* Stringify a emphasis `node`. */
/* Stringify an emphasis `node`. */
function emphasis(ctx, node, index, parent) {

@@ -12,0 +12,0 @@ var contents = all(ctx, node);

'use strict';
/* Dependencies. */
var all = require('../all');
/* Expose. */
module.exports = notes;
var defaultMacro = function defaultMacro(text, protect) {
var defaultMacro = function defaultMacro(identifier, text, protect) {
var footnote = '\\footnote[' + identifier + ']{\\label{footnote:' + identifier + '} ' + text + '}\n';
if (protect) {
return '\\protect\\footnote{' + text + '}';
return footnote + '\\protect';
}
return '\\footnote{' + text + '}';
return footnote;
};
/* Stringify a footnote `node`. */
function notes(ctx, node, _index, parent) {

@@ -18,3 +22,3 @@ var macro = ctx.footnote || defaultMacro;

return macro(all(ctx, node), protect);
return macro(node.identifier, all(ctx, node).trim(), protect);
}

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

var defaultMacro = function defaultMacro(identifier, text) {
return '\\footnotetext[' + identifier + ']{\\label{' + identifier + '} ' + text + '}\n';
return '\\footnotetext[' + identifier + ']{\\label{footnote:' + identifier + '} ' + text + '}\n';
};

@@ -10,0 +10,0 @@

@@ -6,3 +6,3 @@ "use strict";

var defaultMacro = function defaultMacro(identifier) {
return "\\textsuperscript{\\ref{" + identifier + "}}";
return "\\textsuperscript{\\ref{footnote:" + identifier + "}}";
};

@@ -9,0 +9,0 @@

{
"name": "rebber",
"version": "1.0.1",
"version": "1.0.2",
"description": "Stringifies MDAST to LaTeX",

@@ -50,2 +50,3 @@ "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber",

"remark-grid-tables": "^1.0.2",
"remark-numbered-footnotes": "^0.0.17",
"remark-parse": "^4.0.0",

@@ -52,0 +53,0 @@ "remark-sub-super": "^1.0.3",

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

/* Stringify a emphasis `node`. */
/* Stringify an emphasis `node`. */
function emphasis (ctx, node, index, parent) {

@@ -10,0 +10,0 @@ const contents = all(ctx, node)

@@ -0,12 +1,16 @@

/* Dependencies. */
const all = require('../all')
/* Expose. */
module.exports = notes
const defaultMacro = (text, protect) => {
const defaultMacro = (identifier, text, protect) => {
const footnote = `\\footnote[${identifier}]{\\label{footnote:${identifier}} ${text}}\n`
if (protect) {
return `\\protect\\footnote{${text}}`
return `${footnote}\\protect`
}
return `\\footnote{${text}}`
return footnote
}
/* Stringify a footnote `node`. */
function notes (ctx, node, _index, parent) {

@@ -16,3 +20,3 @@ const macro = ctx.footnote || defaultMacro

return macro(all(ctx, node), protect)
return macro(node.identifier, all(ctx, node).trim(), protect)
}

@@ -5,3 +5,3 @@ const all = require('../all')

const defaultMacro = (identifier, text) =>
`\\footnotetext[${identifier}]{\\label{${identifier}} ${text}}\n`
`\\footnotetext[${identifier}]{\\label{footnote:${identifier}} ${text}}\n`

@@ -8,0 +8,0 @@ function notes (ctx, node) {

module.exports = notes
const defaultMacro = (identifier) => `\\textsuperscript{\\ref{${identifier}}}`
const defaultMacro = (identifier) => `\\textsuperscript{\\ref{footnote:${identifier}}}`

@@ -5,0 +5,0 @@ function notes (ctx, node) {

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