Skip to content

Commit fd78352

Browse files
committed
Disallow anchor tags a within the rendered Markdown content
1 parent 125bcf7 commit fd78352

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/ui/src/components/editor/panel/ResponsePreview/components

‎packages/ui/src/components/editor/panel/ResponsePreview/components/TextItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const TextItem: FC<Props> = (props) => {
3737
header_ref.current && props.on_toggle(header_ref.current)
3838
}
3939
>
40-
<ReactMarkdown disallowedElements={['hr']}>
40+
<ReactMarkdown disallowedElements={['a', 'hr']}>
4141
{props.content}
4242
</ReactMarkdown>
4343
<div className={styles.text__collapse}>

0 commit comments

Comments
 (0)