Robust Markdown → Telegram MarkdownV2 converter.
Safe escaping, optional 4096-split, readable table rendering.
Mark2TG converts standard Markdown into Telegram MarkdownV2, preserving formatting and escaping symbols that Telegram treats as control characters.
It aims to be minimal, predictable, and compatible with official Telegram API limits.
- Correct escaping for all Telegram MarkdownV2 special characters
- Optional message splitting at 4096 characters
- Safe handling of links, code, and inline entities
- Table rendering using monospaced text
- CLI tool (
mark2tg) for terminal use - Works with any bot or API wrapper (e.g.
aiogram,python-telegram-bot)
pip install mark2tg