proper html handling

This commit is contained in:
Simon Knott 2024-10-10 11:40:52 +02:00
parent 15c32f0679
commit ecb22691a1
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -165,7 +165,7 @@ const StepTreeItem: React.FC<{
const attachmentName = step.title.match(/^attach "(.*)"$/)?.[1]; const attachmentName = step.title.match(/^attach "(.*)"$/)?.[1];
const attachment = attachments.find(a => a.name === attachmentName); const attachment = attachments.find(a => a.name === attachmentName);
if (attachment) if (attachment)
return <AttachmentLink attachment={attachment} depth={depth} />; return <AttachmentLink attachment={attachment} depth={depth} openInNewTab={getAttachmentCategory(attachment) === 'html'} />;
} }
return <TreeItem title={<span> return <TreeItem title={<span>