Skip to content

Commit 2e71c64

Browse files
feat: Add tests back for citations
1 parent 29fa626 commit 2e71c64

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-
body = re.sub(r"[\r\n\s]*[-•–—▪‣◦⁃][ \t]*", r"\n- ", body)
282+
body = re.sub(r"(?:^|\s{1,10})[-•–—▪‣◦⁃]\s{0,10}", r"\n- ", body)
283283

284284
# 5. Convert Markdown Links [text](url) to Slack <url|text>
285285
body = re.sub(r"\[([^\]]+)\]\(([^\)]+)\)", r"<\2|\1>", body)

0 commit comments

Comments
 (0)