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

@ndla/util

Package Overview
Dependencies
Maintainers
10
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/util - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

es/markdownHelpers.js

@@ -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"
}
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