Skip to content

Improve Slack message formatting (links, mentions, emoji, spacing)#11

Merged
meonkeys merged 1 commit intoapache:mainfrom
airajena:feat/formatting-slack-output
Feb 11, 2026
Merged

Improve Slack message formatting (links, mentions, emoji, spacing)#11
meonkeys merged 1 commit intoapache:mainfrom
airajena:feat/formatting-slack-output

Conversation

@airajena
Copy link
Contributor

PR Description

Improve Slack message formatting (links, mentions, emoji, spacing)

Summary

Convert Slack markup to readable Markdown:

  • <url|text>[text](url)
  • <@U123>@displayName
  • <#C123|name>#name
  • <!here> / <!channel> / <!everyone>@here / @channel / @everyone
  • Add blank lines between messages for improved readability.
  • Replace emoji shortcodes like :wave: using a small curated map.
  • Use Unicode escape sequences to avoid platform encoding issues.

After Formatting

Screenshot 2026-02-10 104736 image

Tests

  • ./gradlew test --tests org.apache.fineract.chat.archive.SlackTextFormatterTest

@meonkeys
Copy link
Contributor

meonkeys commented Feb 11, 2026

LGTM.

@meonkeys meonkeys merged commit dfa6667 into apache:main Feb 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants