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

rebber

Package Overview
Dependencies
Maintainers
3
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 5.2.0 to 5.2.1

6

dist/types/code.js

@@ -7,5 +7,7 @@ "use strict";

var defaultMacro = function defaultMacro(content, lang) {
// Default language is "text"
// Escape CodeBlocks
var escaped = content.replace(new RegExp('\\\\end\\s*{CodeBlock}', 'g'), ''); // Default language is "text"
if (!lang) lang = 'text';
return "\\begin{CodeBlock}{".concat(lang, "}\n").concat(content, "\n\\end{CodeBlock}\n\n");
return "\\begin{CodeBlock}{".concat(lang, "}\n").concat(escaped, "\n\\end{CodeBlock}\n\n");
};

@@ -12,0 +14,0 @@ /* Stringify a code `node`. */

{
"name": "rebber",
"version": "5.2.0",
"version": "5.2.1",
"description": "Stringifies MDAST to LaTeX",

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

},
"gitHead": "7dfdfdf98ac64c3867791036ab0cf1ce45918e40"
"gitHead": "cffaf7f58aaf45223b922f33b1934b96e54bb3ff"
}

@@ -5,6 +5,9 @@ /* Expose. */

const defaultMacro = (content, lang) => {
// Escape CodeBlocks
const escaped = content.replace(new RegExp('\\\\end\\s*{CodeBlock}', 'g'), '')
// Default language is "text"
if (!lang) lang = 'text'
return `\\begin{CodeBlock}{${lang}}\n${content}\n\\end{CodeBlock}\n\n`
return `\\begin{CodeBlock}{${lang}}\n${escaped}\n\\end{CodeBlock}\n\n`
}

@@ -11,0 +14,0 @@

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