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

@nteract/markdown

Package Overview
Dependencies
Maintainers
16
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nteract/markdown - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

lib/index.d.ts.map

5

lib/index.js

@@ -14,2 +14,3 @@ "use strict";

const MathJax = __importStar(require("@nteract/mathjax"));
const presentational_components_1 = require("@nteract/presentational-components");
const react_1 = __importDefault(require("react"));

@@ -20,7 +21,9 @@ const react_markdown_1 = __importDefault(require("react-markdown"));

const inlineMath = (props) => (react_1.default.createElement(MathJax.Node, { inline: true }, props.value));
const code = (props) => (react_1.default.createElement(presentational_components_1.Source, { language: props.language }, props.value));
const MarkdownRender = (props) => {
const newProps = Object.assign({}, props, { escapeHtml: false, plugins: [remark_math_1.default], renderers: Object.assign({}, props.renderers, { math,
inlineMath }) });
inlineMath,
code }) });
return react_1.default.createElement(react_markdown_1.default, Object.assign({}, newProps));
};
exports.default = MarkdownRender;

4

package.json
{
"name": "@nteract/markdown",
"version": "4.0.0",
"version": "4.0.1",
"description": "Markdown/MathJax renderer for nteract",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

},
"gitHead": "8125bd8f3d7db2ca479d1b078379b5061625cd8f"
"gitHead": "81f0f5c66e0b9ab194719cb0c09eaf7329cd623c"
}

@@ -8,3 +8,6 @@ {

"include": ["src"],
"references": [{ "path": "../mathjax" }]
"references": [
{ "path": "../mathjax" },
{ "path": "../presentational-components" }
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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