Skip to content

Commit

Permalink
a couple more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Dec 30, 2023
1 parent aa8eb98 commit 36e349a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rich_click/rich_help_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def create_console(config: RichHelpConfiguration, file: Optional[IO[str]] = None
"usage": config.style_usage,
}
),
highlighter=config.highlighter,
color_system=config.color_system,
force_terminal=config.force_terminal,
file=file,
Expand Down
3 changes: 3 additions & 0 deletions src/rich_click/rich_help_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def _make_rich_rext(text: str, style: StyleType, formatter: RichHelpFormatter) -
config = formatter.config
# Remove indentations from input text
text = inspect.cleandoc(text)
# TODO:
# In a future major version release, decouple emojis and markdown.
# Decoupling isn't something that is sensible without breaking the API.
if config.use_markdown:
if config.use_markdown_emoji:
text = Emoji.replace(text)
Expand Down

0 comments on commit 36e349a

Please sign in to comment.