{"repo":"yym68686/md2tgmd","free":true,"listed":false,"github":"https://github.com/yym68686/md2tgmd","clone":"git clone https://github.com/yym68686/md2tgmd.git","description":"md2tgmd is a Markdown to Telegram-specific-markdown(MarkdownV2) converter","language":"Python","stars":104,"topics":["converter","markdown","python","telegram","telegram-bot","markdownv2"],"license":"GPL-3.0","category":"chat-messaging","readme_excerpt":"md2tgmd English Chinese md2tgmd is a Markdown to Telegram-specific-markdown converter. Feature - Supports most of the specific Markdown syntax for Telegram, including: headings, bold, italic, strikethrough, code blocks, links, and quotes. - Support the conversion of LaTeX formulas in Markdown to Unicode characters to improve the readability of mathematical formulas in Telegram. - Support syntax highlighting for code blocks in Markdown. Install Usage python From md2tgmd import escape text = ''' Title \\[ \\\\varphi(35) = 35 \\\\left(1 - \\\\frac{1}{5}\\\\right) \\\\left(1 - \\\\frac{1}{7}\\\\right) \\] Bold bn b Title Subtitle 1.0.0 - Item 1 - - Item 1 - - Item 1 - Item 2 # Item 3 1. Item 1 2. Item 2 sudo apt install mesa-utils # Install \\subsubsection{1.1} And simple text with-ten with+ten + some - symbols . # - inside with-ten will not be escaped Cxy = abs (Pxy) 2/ (Pxx Pyy) a a-b-c n -a----++++ ++a-b-c -n- [^ ] a b-c d pattern = r\" [^ ] -([^ -] ) w -a---- ccccc -n- bbbb a ''' print(escape(text)) ''' ▎ Title ϕ(35) = 35(1 - ⅕)(1 - 1/7) Bold ▎ bn ▎ b ▎ Title ▎ Subtitle 1\\.0\\.0 1\\.0\\.0 • Item 1 \\- • Item 1 \\- • Item 1 \\- • Item 2 \\# • Item 3 \\ 1\\. Item 1 2\\. Item 2 sudo apt install mesa\\-utils \\# Install \\\\subsubsection\\{1\\.1\\} And simple text with-ten with+ten \\+ some \\- symbols \\. \\# - inside with-ten will not be escaped Cxy \\= abs \\(Pxy\\)\\ \\ 2/ \\(Pxx\\ Pyy\\) a a\\-b\\-c n -a----++++ \\+\\+a\\-b\\-c -n- \\[^\\ \\ \\]\\ a\\ \\ b\\-c\\ \\ d\\ \\ ▎ pattern w -a---- ccccc -n- bbbb\\ \\ a ''' Reference https://github","default_branch":null,"files":null,"tree":[],"storefront":"/r/yym68686","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yym68686/md2tgmd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}