Conversation
…anges made after library initialization are reflected bug: `strict_markdown` obsolete, format entity syntax outdated #68
…vor of singleton access
Refactor `customize` module into singleton pattern
…ntax - Introduced new `standardize()` function in `__init__.py` to convert unstandardized Telegram MarkdownV2 syntax - Created `TelegramMarkdownFormatter` in `render.py` to support standardization - Added new test case for standardization in `exp_test.py` - Supports custom rendering of spoilers, strikethrough, and task list items - Provides a more flexible approach to markdown formatting for Telegram
Added a new test case to ensure the `standardize` function converts markdown consistently, improving coverage and reliability. 🧪 🎨 chore: format and refine playground markdown examples Refined markdown examples in `simple_case.py` and `standardize_case.py` by using raw strings for clarity and consistency. Removed unnecessary imports for cleaner code.
Removed the strict_markdown property and its setter method. Set strict_markdown to True by default. This simplifies the code and removes redundancy, enhancing maintainability.
|
@Ste1io You can test the new changes. |
- Added documentation for the new `standardize` function in README - Expanded function descriptions for `markdownify` and `telegramify` - Included a code example for the `standardize` function - Clarified the purpose of each markdown conversion function
see bug: `strict_markdown` obsolete, format entity syntax outdated #68
✨ fix(render): emphasis/strong rendering
Something seems to have gone wrong, let me check... |
|
Sample: After
refused by Telegram server |
Ah yes, that was a pre-existing bug, but hadn't surfaced prior, due to the fact that the
I'll take a look at it today; I have a PR I'm about to push anyway fixing the I have created a separate issue for this (#72) as the fix may be a little more involved than I had hoped due to the telegram parsing grammar rules. Either they didn't put a lot of thought into their markdown v3 format spec when they wrote it, or there's a very good reason markdown hasn't pursued adding it to theirs. Or both. 😅 |
…ering: - move `Spoiler` renderer to markdown rendering class, and delegate telegram rendering there
Fix Rendering Bugs, Refactor Spoiler Logic in Telegram Markdown Formatter
No description provided.