={{(() => {
const blocks = $json.data;
const combined = blocks.map(b => {
if (typeof b.output === ‘string’) return b.output;
if (typeof b.output === ‘object’) {
try {
if (b.output.url && b.output.title && b.output.source) {
return `
${b.output.source} – ${b.output.title}
`;
}
return JSON.stringify(b.output);
} catch (e) {
return ”;
}
}
return ”;
}).join(“nn”);
return combined.replaceAll(““`html”, “”).replaceAll(““`”, “”);
})()}}