mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
Limit attributes for external links (#950)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
d4b69d5006
commit
c9168fcaa7
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export class LinkInNewTabReplacer extends ComponentReplacer {
|
|||
return undefined
|
||||
}
|
||||
|
||||
return <a {...node.attribs} rel='noopener noreferrer' target='_blank'>
|
||||
return <a className={node.attribs?.class} title={node.attribs?.title} href={node.attribs?.href} rel='noopener noreferrer' target='_blank'>
|
||||
{
|
||||
node.children?.map((child, index) => subNodeTransform(child, index))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue