@uiw/react-md-editor
Advanced tools
Comparing version 3.20.7 to 3.20.8
/*! | ||
* @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 => ({ | ||
'<': '<', | ||
'>': '>', | ||
'&': '&', | ||
'"': '"' | ||
})[c]); | ||
}).replace(/[<&"]/g, c => ({ | ||
return sHtml | ||
// .replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, (str: string) => { | ||
// return str.replace( | ||
// /[<&"]/g, | ||
// (c: string) => (({ '<': '<', '>': '>', '&': '&', '"': '"' } as Record<string, string>)[c]), | ||
// ); | ||
// }) | ||
.replace(/[<&"]/g, c => ({ | ||
'<': '<', | ||
@@ -19,0 +19,0 @@ '>': '>', |
@@ -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 { | ||
'<': '<', | ||
'>': '>', | ||
'&': '&', | ||
'"': '"' | ||
}[c]; | ||
}); | ||
}).replace(/[<&"]/g, function (c) { | ||
return sHtml | ||
// .replace(/```(\w+)?([\s\S]*?)(\s.+)?```/g, (str: string) => { | ||
// return str.replace( | ||
// /[<&"]/g, | ||
// (c: string) => (({ '<': '<', '>': '>', '&': '&', '"': '"' } as Record<string, string>)[c]), | ||
// ); | ||
// }) | ||
.replace(/[<&"]/g, function (c) { | ||
return { | ||
@@ -29,0 +27,0 @@ '<': '<', |
{ | ||
"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
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
4262806
77439