From 1e9a11af7c1c78a5a44a207b1e0dce4c4b3c39f0 Mon Sep 17 00:00:00 2001 From: Toshihiro Kamiya Date: Sun, 31 Mar 2024 20:22:23 +0900 Subject: [PATCH 1/2] Change the versions of the dependencies in pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f766f86..23c8573 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,10 +22,10 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.7" -rich = "^12.4.0" +rich = "^13.0.0" click = "^8.0.0" requests = "^2.0.0" -textual = "^0.1.18" +textual = "^0.54" rich-rst = "^1.1.7" [tool.poetry.dev-dependencies] From 0a8e77d724ace88ce88ee9d68a46b1dc8464fe0b Mon Sep 17 00:00:00 2001 From: Toshihiro Kamiya Date: Sun, 31 Mar 2024 21:01:36 +0900 Subject: [PATCH 2/2] Enable --emoji option in processing Markdown text --- src/rich_cli/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rich_cli/__main__.py b/src/rich_cli/__main__.py index aa0a068..bfb1819 100644 --- a/src/rich_cli/__main__.py +++ b/src/rich_cli/__main__.py @@ -577,8 +577,11 @@ def print_usage() -> None: elif resource_format == MARKDOWN: from .markdown import Markdown + from rich.emoji import Emoji markdown_data, lexer = read_resource(resource, lexer) + if emoji: + markdown_data = Emoji.replace(markdown_data) renderable = Markdown(markdown_data, code_theme=theme, hyperlinks=hyperlinks) elif resource_format == RST: