Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{output(node.content, state)}
),
},
}
const inlineRules: ReactRules = {
...baseRules,
}
const blockRules: ReactRules = {
...baseRules,
newline: defaultRules.newline,
paragraph: defaultRules.paragraph,
codeBlock: {
order: defaultRules.codeBlock.order,
// eslint-disable-next-line unicorn/regex-shorthand
match: anyScopeRegex(/^```(?:([\da-z-]+?)\n+)?\n*([\S\s]+?)\n*```/i),
parse: (capture, _, state) => ({
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
language: capture[1]?.trim(),
content: capture[2],
inQuote: state.inQuote,
}),
react: (node, _, state) => (
),
},