@uiw/react-md-editor
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -13,3 +13,3 @@ "use strict"; | ||
// filter style | ||
node.value = node.value.replace(/<style/g, '<style').replace(/<\/style>/g, '<style>'); | ||
node.value = node.value.replace(/<(style|script|link|input|form)(.*)>/g, '<$1$2>').replace(/<\/(.*)(style|script|link|input|form)(.*)>/g, '</$1$2$3>'); | ||
} | ||
@@ -16,0 +16,0 @@ |
@@ -6,3 +6,3 @@ export default function allowNode(node, index, parent) { | ||
// filter style | ||
node.value = node.value.replace(/<style/g, '<style').replace(/<\/style>/g, '<style>'); | ||
node.value = node.value.replace(/<(style|script|link|input|form)(.*)>/g, '<$1$2>').replace(/<\/(.*)(style|script|link|input|form)(.*)>/g, '</$1$2$3>'); | ||
} | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "@uiw/react-md-editor", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "A markdown editor with preview, implemented with React.js and TypeScript.", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -39,5 +39,2 @@ <p align="center"> | ||
> [Demo preview for CodeSandbox](https://codesandbox.io/s/markdown-editor-for-react-izdd6) | ||
> [Demo for Github gh-pages](https://uiwjs.github.io/react-md-editor/) | ||
```jsx | ||
@@ -61,2 +58,5 @@ import React from "react"; | ||
- [Demo preview for CodeSandbox](https://codesandbox.io/s/markdown-editor-for-react-izdd6) | ||
- [Demo preview for Github gh-pages](https://uiwjs.github.io/react-md-editor/) | ||
### Props | ||
@@ -63,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
420616
5179