mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-15 09:38:28 -04:00
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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user