We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b30291 commit 0ef2c8bCopy full SHA for 0ef2c8b
packages/slackBotFunction/app/slack/slack_events.py
@@ -279,8 +279,7 @@ def convert_markdown_to_slack(body: str) -> str:
279
body = re.sub(r"\*\*([^*]+)\*\*", r"*\1*", body)
280
281
# 4. Handle Lists (Handle various bullet points and dashes, inc. unicode support)
282
- list_separator_pattern = r"[ \t]*(?:(?:\\n|[\r\n]|[-•–—▪‣◦⁃])[ \t]*)+"
283
- body = re.sub(list_separator_pattern, r"\n- ", body)
+ body = re.sub(r"(\u2022|-|•)\s", r"\n\g<0>", body)
284
285
# 5. Convert Markdown Links [text](url) to Slack <url|text>
286
body = re.sub(r"\[([^\]]+)\]\(([^\)]+)\)", r"<\2|\1>", body)
0 commit comments