Comparing version 0.4.0 to 0.4.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19759
147
0