We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73ce90 commit a8ba25eCopy full SHA for a8ba25e
src/components/Markdown/allowNode.tsx
@@ -4,7 +4,7 @@ export default function allowNode(node: any, index: number, parent: NodeType) {
4
const nodeany: MarkdownAbstractSyntaxTree = node;
5
if (nodeany.type === 'html') {
6
// filter style
7
- node.value = node.value.replace(/<((style|script|link|input|form)|\/(style|script|link|input|form))(\s?[^\>]*\>)/g, (a: string) => {
+ node.value = node.value.replace(/<((style|script|link|input|form)|\/(style|script|link|input|form))(\s?[^\>]*\>)/gi, (a: string) => {
8
return a.replace(/[<>]/g, (e: string) => (({ '<': '<', '>': '>' } as { [key: string]: string })[e]))
9
});
10
}
0 commit comments