« get me outta code hell

content, external-links: pass url entry through, handle annotation - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/transformContent.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-05-01 08:53:23 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-05-01 08:53:57 -0300
commitf6aad9a81fbb1b4e619355cbec316988837fb61a (patch)
tree6281b063b7741bd4fb46b087bfabedc8a0b97c8d /src/content/dependencies/transformContent.js
parent92d82211fdf3d653b1a5a4d2cfdad5c684e2367d (diff)
content, external-links: pass url entry through, handle annotation
Diffstat (limited to 'src/content/dependencies/transformContent.js')
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 775ccfdc..62a547e4 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -282,14 +282,14 @@ export default {
         nodes
           .filter(({type}) => type === 'external-link')
           .map(({data: {href}}) =>
-            relation('linkExternal', href)),
+            relation('linkExternal', {url: href})),
 
       externalLinksForTooltipNodes:
         nodes
           .filter(({type}) => type === 'tooltip')
           .filter(({data}) => data.link)
           .map(({data: {link: href}}) =>
-            relation('linkExternal', href)),
+            relation('linkExternal', {url: href})),
 
       images:
         nodes