diff --git a/server/presenters/slackAttachment.js b/server/presenters/slackAttachment.js index c782f0924..a8f842126 100644 --- a/server/presenters/slackAttachment.js +++ b/server/presenters/slackAttachment.js @@ -5,7 +5,7 @@ function present(document: Document, context?: string) { // the context contains tags around search terms, we convert them here // to the markdown format that slack expects to receive. const text = context - ? context.replace(/<\/?b>/g, '*') + ? context.replace(/<\/?b>/g, '*').replace('\n', '') : document.getSummary(); return {