Open platform to collect and prioritize feedback
Don't render mentions as links
Matt Roberts3565c961122e
diff --git a/public/services/markdown.ts b/public/services/markdown.tsindex 094faab45..5b28ca726 100644--- a/public/services/markdown.ts+++ b/public/services/markdown.ts@@ -27,11 +27,12 @@ const fullRenderer = new marked.Renderer()fullRenderer.image = () => ""fullRenderer.link = linkfullRenderer.text = (text: string) => {+ // Handling mention links (they're in the format @{id:1234, name:'John Doe'})return text.replace(/@{([^}]+)}/g, (match) => {try {const json = match.substring(1).replace(/"/g, '"')const mention = JSON.parse(json)- return `<a href="/users/${mention.id}" class="text-link">@${mention.name}</a>`+ return `<span class="text-blue-600">@${mention.name}</span>`} catch {return match}