Skip to content
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
172a489
extend test to cover issue reported in #1058
svlandeg Dec 11, 2024
9164116
set rich_markup_mode as a setting on ctx.obj to only perform escaping…
svlandeg Dec 12, 2024
c6a7347
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Dec 12, 2024
542d6bd
deal with DefaultPlaceholder value
svlandeg Dec 12, 2024
72eb74b
add another failing test
svlandeg Dec 12, 2024
c02f0fd
Ensure that rich_to_html is only called when escaping has happened co…
svlandeg Dec 12, 2024
dd7edfd
Fix type annotation
svlandeg Dec 12, 2024
c687a85
cleanup
svlandeg Dec 12, 2024
0a9c253
small refactor
svlandeg Dec 12, 2024
860d0df
Merge branch 'master' into fix/escape
svlandeg Dec 19, 2024
be06986
Merge branch 'master' into fix/escape
svlandeg Aug 26, 2025
b6c2f8a
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Aug 26, 2025
12a023d
refactor to avoid doing the same operations multiple times
svlandeg Aug 26, 2025
5e24bc1
fix lint issue
svlandeg Aug 26, 2025
92b0f78
Merge branch 'master' into fix/escape
svlandeg Aug 26, 2025
0a348da
use global VAR for key
svlandeg Aug 26, 2025
6d42930
fix
svlandeg Aug 26, 2025
9a502ea
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Aug 26, 2025
c1bbfe5
Merge branch 'master' into fix/escape
svlandeg Sep 1, 2025
6354ea2
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Sep 1, 2025
77f95dd
remove duplicate leftover from merge conflict
svlandeg Sep 1, 2025
4f7470f
follow diff more cleanly
svlandeg Sep 1, 2025
b186f2a
Merge branch 'master' into fix/escape
svlandeg Sep 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint issue
  • Loading branch information
svlandeg committed Aug 26, 2025
commit 5e24bc113c675ec55a1780143494b047da7b7638
2 changes: 1 addition & 1 deletion typer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_docs_for_click(
rich_markup_mode = None
if hasattr(ctx, "obj") and isinstance(ctx.obj, dict):
rich_markup_mode = ctx.obj.get("TYPER_RICH_MARKUP_MODE", None)
to_parse = has_rich and rich_markup_mode and rich_markup_mode == "rich"
to_parse: bool = bool(has_rich and (rich_markup_mode == "rich"))
if obj.help:
docs += f"{_parse_html(to_parse, obj.help)}\n\n"
usage_pieces = obj.collect_usage_pieces(ctx)
Expand Down
Loading