clan: implement OSC8 hyperlinks for help output

The name of the terminal help output stays the same to keep
compatibility with legacy terminal implementations.
This commit is contained in:
a-kenji
2024-06-26 22:41:43 +02:00
committed by kenji
parent 33ea53ee8f
commit d9ba61c30a
4 changed files with 73 additions and 29 deletions

View File

@@ -105,8 +105,9 @@ def epilog_to_md(text: str) -> str:
md += "\n"
md += "\n"
else:
if contains_https_link(line):
line = convert_to_markdown_link(line)
# TODO: check, if the link is already a markdown link, only convert if not
# if contains_https_link(line):
# line = convert_to_markdown_link(line)
md += line
md += "\n"
else: