Skip to main content

Robust Markdown → Telegram MarkdownV2 converter

Project description

Mark2TG

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

PyPI Python License: MIT CI


🔍 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mark2tg-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mark2tg-1.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for mark2tg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 81275e16057fbd83b2331e2e97234e963636979d4c6f7b8d0dfd2bdd76dcbdf8
MD5 4f2149c46439b405a22ac66e7013db3e
BLAKE2b-256 68a3a652f220e33d40538e911bb993039bf434e93ce35c1c2b5f5e741bf4136c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mark2tg-1.0.2.tar.gz:

Publisher: publish.yml on livlev/Mark2TG

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mark2tg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76d1f7c3f3ff45e9af0e4ea745b8f1f9bd5b624e4d6faf98a6ec5773daa609fe
MD5 ec23bb82e20bbb682c1b419ce02b1b8b
BLAKE2b-256 a694381d55c692725af275ad1beb5f5930e8917c66271a4291a62c9b7e4140d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mark2tg-1.0.2-py3-none-any.whl:

Publisher: publish.yml on livlev/Mark2TG

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page