Tighten context snippet in slash command results
This commit is contained in:
@ -5,7 +5,7 @@ function present(document: Document, context?: string) {
|
||||
// the context contains <b> 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 {
|
||||
|
Reference in New Issue
Block a user