Robust Markdown → Telegram MarkdownV2 converter
Project description
Mark2TG
Robust Markdown → Telegram MarkdownV2 converter.
Safe escaping, optional 4096-split, readable table rendering.
🔍 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
pip install mark2tg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mark2tg-1.0.2.tar.gz.
File metadata
- Download URL: mark2tg-1.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81275e16057fbd83b2331e2e97234e963636979d4c6f7b8d0dfd2bdd76dcbdf8
|
|
| MD5 |
4f2149c46439b405a22ac66e7013db3e
|
|
| BLAKE2b-256 |
68a3a652f220e33d40538e911bb993039bf434e93ce35c1c2b5f5e741bf4136c
|
Provenance
The following attestation bundles were made for mark2tg-1.0.2.tar.gz:
Publisher:
publish.yml on livlev/Mark2TG
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mark2tg-1.0.2.tar.gz -
Subject digest:
81275e16057fbd83b2331e2e97234e963636979d4c6f7b8d0dfd2bdd76dcbdf8 - Sigstore transparency entry: 645628289
- Sigstore integration time:
-
Permalink:
livlev/Mark2TG@1bd7eb0b88fff104d69656ff7cb29c6a8491e379 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/livlev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1bd7eb0b88fff104d69656ff7cb29c6a8491e379 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mark2tg-1.0.2-py3-none-any.whl.
File metadata
- Download URL: mark2tg-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d1f7c3f3ff45e9af0e4ea745b8f1f9bd5b624e4d6faf98a6ec5773daa609fe
|
|
| MD5 |
ec23bb82e20bbb682c1b419ce02b1b8b
|
|
| BLAKE2b-256 |
a694381d55c692725af275ad1beb5f5930e8917c66271a4291a62c9b7e4140d2
|
Provenance
The following attestation bundles were made for mark2tg-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on livlev/Mark2TG
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mark2tg-1.0.2-py3-none-any.whl -
Subject digest:
76d1f7c3f3ff45e9af0e4ea745b8f1f9bd5b624e4d6faf98a6ec5773daa609fe - Sigstore transparency entry: 645628298
- Sigstore integration time:
-
Permalink:
livlev/Mark2TG@1bd7eb0b88fff104d69656ff7cb29c6a8491e379 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/livlev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1bd7eb0b88fff104d69656ff7cb29c6a8491e379 -
Trigger Event:
release
-
Statement type: