From 36e349a5519a4ea5e5d9425a93a21237a29ddf16 Mon Sep 17 00:00:00 2001 From: dwreeves Date: Fri, 29 Dec 2023 19:18:17 -0500 Subject: [PATCH] a couple more changes --- src/rich_click/rich_help_formatter.py | 1 - src/rich_click/rich_help_rendering.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rich_click/rich_help_formatter.py b/src/rich_click/rich_help_formatter.py index 9c2b926c..796e6beb 100644 --- a/src/rich_click/rich_help_formatter.py +++ b/src/rich_click/rich_help_formatter.py @@ -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, diff --git a/src/rich_click/rich_help_rendering.py b/src/rich_click/rich_help_rendering.py index 1a0498eb..ddb7ea37 100644 --- a/src/rich_click/rich_help_rendering.py +++ b/src/rich_click/rich_help_rendering.py @@ -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)