Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
opts.fn = function process(tag) {
let tagLink = props.permalink
tagLink = tagLink.replace(/:slug/, tag.slug) || `/${tag.slug}/`
return props.autolink ?
<>
<span>
{tag.name}
</span>
:
<><span>{tag.name}</span>
}
return (
tagsHelper(props.post, opts)
)
}