mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
channel link open on a new page
This commit is contained in:
parent
753bb1ec85
commit
f36033d841
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def convert_slack_references(text):
|
|||
def channel_replacement(match):
|
||||
channel_id = match.group(1)
|
||||
channel_name = channels_maps.get(channel_id, channel_id)
|
||||
return f'<a href="https://hackclub.slack.com/archives/{channel_id}">#{channel_name}</a>'
|
||||
return f'<a target="_blank" href="https://hackclub.slack.com/archives/{channel_id}">#{channel_name}</a>'
|
||||
|
||||
result = re.sub(channel_pattern, channel_replacement, text)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue