Skip to content

Commit

Permalink
🔖 release: bump version to 0.2.3
Browse files Browse the repository at this point in the history
🐛 fix: correct child access in interpreters.py

📚 docs: improve formatting in README.md
  • Loading branch information
sudoskys committed Dec 14, 2024
1 parent 539b9db commit fc335e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@ pdm add telegramify-markdown
### 🤔 What you want to do?

- If you just want to send *static text* and don't want to worry about formatting,
check: *
*[playground/markdownify_case.py](https://github.com/sudoskys/telegramify-markdown/blob/main/playground/markdownify_case.py)
**
check: **[playground/markdownify_case.py](https://github.com/sudoskys/telegramify-markdown/blob/main/playground/markdownify_case.py)**

- If you are developing an *LLM application* and need to send potentially **super-long text**, please
check: *
*[playground/telegramify_case.py](https://github.com/sudoskys/telegramify-markdown/blob/main/playground/telegramify_case.py)
**
check: **[playground/telegramify_case.py](https://github.com/sudoskys/telegramify-markdown/blob/main/playground/telegramify_case.py)**

## 👀 Use case

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "telegramify-markdown"
version = "0.2.2"
version = "0.2.3"
description = "Makes it easy to send Markdown in Telegram MarkdownV2 style"
authors = [
{ name = "sudoskys", email = "coldlando@hotmail.com" },
Expand Down
2 changes: 1 addition & 1 deletion src/telegramify_markdown/interpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def render_task(self,
token1_l) == 1 and len(token2_l) == 1:
# 如果这个 pack 是完全的 code block,那么采用文件形式发送。否则采用文本形式发送。
_escaped_code = token1_l[0]
_unescaped_code_child = list(token1_l[0].children)
_unescaped_code_child = list(token2_l[0].children)
file_content = render_block_func(token2_l)
if _unescaped_code_child:
_code_text = _unescaped_code_child[0]
Expand Down

0 comments on commit fc335e9

Please sign in to comment.