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

@uiw/react-md-editor

Package Overview
Dependencies
Maintainers
2
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-md-editor - npm Package Compare versions

Comparing version 3.20.7 to 3.20.8

22

dist/mdeditor.min.js.LICENSE.txt
/*!
* @uiw/copy-to-clipboard v1.0.12
* Copy to clipboard.
*
* Copyright (c) 2021 Kenny Wang
* https://github.com/uiwjs/copy-to-clipboard.git
*
* Licensed under the MIT license.
*/
/*!
* Determine if an object is a Buffer

@@ -37,1 +27,13 @@ *

*/
/**!
* @uiw/copy-to-clipboard v1.0.14
* Copy to clipboard.
*
* Copyright (c) 2023 Kenny Wang
* https://github.com/uiwjs/copy-to-clipboard.git
*
* @website: https://uiwjs.github.io/copy-to-clipboard
* Licensed under the MIT license
*/

@@ -9,10 +9,10 @@ import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/taggedTemplateLiteralLoose";

function html2Escape(sHtml) {
return sHtml.replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, str => {
return str.replace(/[<&"]/g, c => ({
'<': '&lt;',
'>': '&gt;',
'&': '&amp;',
'"': '&quot;'
})[c]);
}).replace(/[<&"]/g, c => ({
return sHtml
// .replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, (str: string) => {
// return str.replace(
// /[<&"]/g,
// (c: string) => (({ '<': '&lt;', '>': '&gt;', '&': '&amp;', '"': '&quot;' } as Record<string, string>)[c]),
// );
// })
.replace(/[<&"]/g, c => ({
'<': '&lt;',

@@ -19,0 +19,0 @@ '>': '&gt;',

@@ -17,12 +17,10 @@ "use strict";

function html2Escape(sHtml) {
return sHtml.replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, function (str) {
return str.replace(/[<&"]/g, function (c) {
return {
'<': '&lt;',
'>': '&gt;',
'&': '&amp;',
'"': '&quot;'
}[c];
});
}).replace(/[<&"]/g, function (c) {
return sHtml
// .replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, (str: string) => {
// return str.replace(
// /[<&"]/g,
// (c: string) => (({ '<': '&lt;', '>': '&gt;', '&': '&amp;', '"': '&quot;' } as Record<string, string>)[c]),
// );
// })
.replace(/[<&"]/g, function (c) {
return {

@@ -29,0 +27,0 @@ '<': '&lt;',

{
"name": "@uiw/react-md-editor",
"version": "3.20.7",
"version": "3.20.8",
"description": "A markdown editor with preview, implemented with React.js and TypeScript.",

@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-md-editor/",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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