Merge pull request 'Add target to remote links in reference section.' (#2089) from emily_s/strudel:add-target-to-remote-links into main

Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2089
This commit is contained in:
froos
2026-08-14 00:22:47 +02:00
@@ -214,7 +214,12 @@ export const Reference = memo(function Reference() {
</p>
)}
<p dangerouslySetInnerHTML={{ __html: entry.description }}></p>
<p
dangerouslySetInnerHTML={{
// If we have an external url make sure it opens in another tab to not interrupt the player
__html: entry.description.replaceAll(/<a href="https:\/\//g, `<a target="_blank" href="https://`),
}}
></p>
<ul>
{entry.params?.map(({ name, type, description }, i) => (
<li key={i}>