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

marksy

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marksy - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

11

lib/index.js

@@ -61,9 +61,14 @@ 'use strict';

var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var children = arguments[2];
var elementId = nextElementId++;
var inlineContent = null;
if (children) {
inlineContent = Array.isArray(children) ? children.map(populateInlineContent) : populateInlineContent(children);
}
elements[elementId] = _react2.default.createElement(tag, Object.assign({
key: elementId
}, props), Array.isArray(children) ? children.map(populateInlineContent) : populateInlineContent(children));
}, props), inlineContent);

@@ -181,3 +186,3 @@ tree.push(elements[elementId]);

renderer.image = function (href, title, text) {
return addElement('img', { href: href, alt: text });
return addElement('img', { src: href, alt: text });
};

@@ -184,0 +189,0 @@

{
"name": "marksy",
"version": "0.4.0",
"version": "0.4.1",
"description": "Convert markdown into react components",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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