Skip to content

Commit 7bc644a

Browse files
committed
Better formatting
1 parent 70a5100 commit 7bc644a

File tree

1 file changed

+5
-5
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot

1 file changed

+5
-5
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/copilot.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,21 +205,21 @@ export const Copilot = forwardRef<CopilotRef, CopilotProps>(({ panelWidth }, ref
205205
return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
206206
}
207207

208-
// Function to render content with inline hyperlinked citations and basic markdown
208+
// Function to render content with inline hyperlinked citations and basic markdown
209209
const renderContentWithCitations = (content: string, sources: Message['sources'] = []) => {
210210
if (!content) return content
211-
211+
212212
let processedContent = content
213-
213+
214214
// Replace {cite:1}, {cite:2}, etc. with clickable citation icons
215215
processedContent = processedContent.replace(/\{cite:(\d+)\}/g, (match, num) => {
216216
const sourceIndex = Number.parseInt(num) - 1
217217
const source = sources[sourceIndex]
218-
218+
219219
if (source) {
220220
return `<a href="${source.link}" target="_blank" rel="noopener noreferrer" class="inline-flex items-center ml-1 text-primary hover:text-primary/80 transition-colors text-sm" title="${source.title}">↗</a>`
221221
}
222-
222+
223223
return match
224224
})
225225

0 commit comments

Comments
 (0)