Metadata-Version: 2.4
Name: mark2tg
Version: 1.0.2
Summary: Robust Markdown → Telegram MarkdownV2 converter
Home-page: https://github.com/livlev/Mark2TG
Author: Leonid Ivlev
Author-email: leonid.a.ivelv@gmail.com
License: MIT
Project-URL: Homepage, https://github.com/livlev/Mark2TG
Project-URL: Repository, https://github.com/livlev/Mark2TG
Project-URL: Issues, https://github.com/livlev/Mark2TG/issues
Project-URL: Changelog, https://github.com/livlev/Mark2TG/releases
Keywords: telegram,markdown,markdownv2,bot,converter
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Markup
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Requires-Dist: hypothesis>=6.0; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

# Mark2TG

> Robust Markdown → Telegram MarkdownV2 converter.  
> Safe escaping, optional 4096-split, readable table rendering.

[![PyPI](https://img.shields.io/pypi/v/mark2tg.svg)](https://pypi.org/project/mark2tg/)
[![Python](https://img.shields.io/pypi/pyversions/mark2tg.svg)](https://pypi.org/project/mark2tg/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![CI](https://github.com/livlev/Mark2TG/actions/workflows/ci.yml/badge.svg)](https://github.com/livlev/Mark2TG/actions/workflows/ci.yml)

---

## 🔍 Overview

`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.

---

## ✨ Features

- 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`)

---

## ⚙️ Installation

```bash
pip install mark2tg
