Ultralytics Refactor https://ultralytics.com/actions (#17031)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
31b357b8a7
commit
99f729a4e4
30 changed files with 41 additions and 71 deletions
|
|
@ -199,7 +199,7 @@ def convert_plaintext_links_to_html(content):
|
|||
for text_node in paragraph.find_all(string=True, recursive=False):
|
||||
if text_node.parent.name not in {"a", "code"}: # Ignore links and code blocks
|
||||
new_text = re.sub(
|
||||
r'(https?://[^\s()<>]+(?:\.[^\s()<>]+)+)(?<![.,:;\'"])',
|
||||
r"(https?://[^\s()<>]+)",
|
||||
r'<a href="\1">\1</a>',
|
||||
str(text_node),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue