Skip to content

Releases: livlev/Mark2TG

Mark2TG 1.0.3 — Stable PyPI Release

Choose a tag to compare

@livlev livlev released this 27 Oct 17:38

Release Notes

Overview

First stable PyPI release of Mark2TG, a reliable converter from standard Markdown to Telegram MarkdownV2.
Ensures correct escaping of all special characters and adds developer-friendly utilities like a CLI, table rendering, and message splitting.


Added

  • CLI tool: mark2tg file.md [--max-len 4096 --split-policy word|para|hard]
  • Safe escaping for all MarkdownV2 symbols
  • Optional message splitting (Telegram 4096-char limit)
  • Monospaced table rendering
  • Correct handling of inline code, quotes, and nested links
  • Support for parse_mode="MarkdownV2" and disable_web_page_preview=True
  • Complete README, CHANGELOG, setup.py, and pyproject.toml
  • GitHub Actions CI + Trusted Publishing to PyPI

Improved

  • Version sync between GitHub and PyPI
  • Added full project metadata and classifiers
  • Expanded documentation with before/after examples and comparison table

Technical


Next Steps

  • CommonMark compliance tests
  • Property-based fuzz tests for escaping
  • Benchmarks vs telegramify-markdown and md2tgmd
  • Example integrations with aiogram and python-telegram-bot

Install

pip install mark2tg

v1.0.1

Choose a tag to compare

@livlev livlev released this 22 Mar 13:08

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@livlev livlev released this 22 Mar 13:01
4554147