@ndla/util
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -25,3 +25,4 @@ /** | ||
var escapedMarkdown = markdown.render(caption.split(' ').join('\\ ')); | ||
return parse(escapedMarkdown.split('\\').join('')); | ||
var parsed = parse(escapedMarkdown.split('\\').join('')); | ||
return Array.isArray(parsed) ? parsed[0] : parsed; | ||
}; |
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
export declare const parseMarkdown: (embeddedCaption: string) => JSX.Element | JSX.Element[]; | ||
export declare const parseMarkdown: (embeddedCaption: string) => JSX.Element; |
@@ -36,5 +36,6 @@ "use strict"; | ||
var escapedMarkdown = markdown.render(caption.split(' ').join('\\ ')); | ||
return (0, _htmlReactParser["default"])(escapedMarkdown.split('\\').join('')); | ||
var parsed = (0, _htmlReactParser["default"])(escapedMarkdown.split('\\').join('')); | ||
return Array.isArray(parsed) ? parsed[0] : parsed; | ||
}; | ||
exports.parseMarkdown = parseMarkdown; |
{ | ||
"name": "@ndla/util", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Collection of util functions used by NDLA", | ||
@@ -36,3 +36,3 @@ "license": "GPL-3.0", | ||
}, | ||
"gitHead": "94714d8c1e5e1c84bd1beedb3d8f5661b9c72371" | ||
"gitHead": "1682299abb08592d13280c3447db580de9b52808" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
71598
916