Skip to content

Commit 5b30291

Browse files
feat: Add tests back for citations
1 parent be0a844 commit 5b30291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def convert_markdown_to_slack(body: str) -> str:
279279
body = re.sub(r"\*\*([^*]+)\*\*", r"*\1*", body)
280280

281281
# 4. Handle Lists (Handle various bullet points and dashes, inc. unicode support)
282-
list_separator_pattern = r"\s*(?:\\n|[\r\n]+|[-•–—▪‣◦⁃])+\s*"
282+
list_separator_pattern = r"[ \t]*(?:(?:\\n|[\r\n]|[-•–—▪‣◦⁃])[ \t]*)+"
283283
body = re.sub(list_separator_pattern, r"\n- ", body)
284284

285285
# 5. Convert Markdown Links [text](url) to Slack <url|text>

0 commit comments

Comments
 (0)