Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
title={node.title}
rel="noopener noreferrer nofollow ugc"
target="_blank"
key={state.key}
>
{output(node.content, state)}
),
},
autolink: {
...defaultRules.autolink,
match: anyScopeRegex(/^<(https?:\/\/[^ >]+)>/),
},
url: defaultRules.url,
strong: defaultRules.strong,
em: defaultRules.em,
underline: defaultRules.u,
inlineCode: {
...defaultRules.inlineCode,
react: (node, _, state) => <code>{node.content}</code>,
},
shrug: {
// Edge case for shrug emoji getting parsed as markup.
order: defaultRules.text.order,
match: inlineRegex(/^¯\\_\(ツ\)_\/¯/),
parse: capture => ({
type: "text",
content: capture[0],
}),
react: null,
},
emoji: {