mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This commit updates the Slack incoming webhook endpoint to use the same Slack reformatting functions (`convert_to_zulip_markdown` and `replace_links`) that are used for Slack data import and cleaning up any duplicative functions. This was previously not possible because the Slack reformatting regex in `slack_message_conversion.py` could not handle these cases: - Formatting applied to non-ASCII characters (e.g., emoji). - Formatted strings separated by exactly one character. - Formatted strings appearing immediately after a new line. Fixes part of #31162.