Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”§ refactor(mermaid): replace aiohttp_client_cache with aiohttp #50

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

sudoskys
Copy link
Owner

πŸ”– chore(pyproject): bump version to 0.3.1

βž• feat(interpreters): add optional session to MermaidInterpreter

πŸ”– chore(pyproject): bump version to 0.3.1

βž• feat(interpreters): add optional session to MermaidInterpreter
@sudoskys sudoskys added the enhancement New feature or request label Dec 15, 2024
@sudoskys
Copy link
Owner Author

@monosans This should work

πŸ› fix(render.py): ensure space after escaped markdown leader

πŸ”§ chore(playground/telegramify_case.py): add aiohttp for async messaging
@@ -238,7 +238,9 @@ def render_list_item(
) -> Iterable[str]:
token_origin = str(token.leader).strip()
if token_origin.endswith("."):
token.leader = formatting.escape_markdown(token.leader) + " "
if not token.leader.endswith(" "):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that since tokens cannot be deeply copied, the render function will modify the token every time it determines whether the limit is exceeded.
The longer the text, the more modifications are made.

@sudoskys sudoskys merged commit cc274ee into main Dec 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant