{"repo":"sudoskys/telegramify-markdown","free":true,"listed":false,"github":"https://github.com/sudoskys/telegramify-markdown","clone":"git clone https://github.com/sudoskys/telegramify-markdown.git","description":"🪄 Markdown To Telegram MarkdownV2 Converter Python| No more worrying about formatting.","language":"Python","stars":378,"topics":["formatter","markdown","telegram-bot","telegram-markdown-v2"],"license":"MIT","category":"dev-tools","readme_excerpt":"telegramify-markdown Effortlessly convert raw Markdown to Telegram plain text + MessageEntity pairs. Say goodbye to MarkdownV2 escaping headaches! This library parses Markdown (including LLM output, GitHub READMEs, etc.) and produces (text, entities) tuples that can be sent directly via the Telegram Bot API — no parse mode needed. - No matter the format or length, it can be easily handled! - Entity offsets are measured in UTF-16 code units, exactly as Telegram requires. - We also support LaTeX-to-Unicode conversion, expandable block quotes, and Mermaid diagram rendering. - Built on pyromark (Rust pulldown-cmark bindings) for speed and correctness. [!NOTE] v1.0.0 introduces a new entity-based output: convert() returns (str, list[MessageEntity]) . The 0.x functions markdownify() and standardize() are still available and return MarkdownV2 strings as before. 👀 Use case convert() convert() telegramify() --- --- --- 🪄 Quick Start Install Requires Python 3.10+ . 🤔 What you want to do? - If you just want to send static text and don't want to worry about formatting → use convert() - If you are developing an LLM application or need to send potentially super-long text → use telegramify() - If you need streaming output (token-by-token, like ChatGPT typing) → use DraftStream (private) or EditStream (group) - If you need to split convert() output manually → use split entities() - If your middleware only supports parse mode=\"MarkdownV2\" (no entities parameter) → use markdownify() - If yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/sudoskys","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sudoskys/telegramify-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}