Skip to content
Discussion options

You must be logged in to vote

In rich mode (rich_markup_mode="rich") you can now just use [link=<url>]<display_text>[/link] to create a hyperlink, like so:

import typer


URL = "https://example.com/my-docs.md"
app = typer.Typer(
    name="my-command",
    help="My command help",
    epilog=f"More documentation: [link={URL}]{URL}[/link]",
    rich_markup_mode="rich"
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by i30817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants