{"id":13815082,"url":"https://github.com/yym68686/md2tgmd","last_synced_at":"2026-03-05T04:34:26.930Z","repository":{"id":166533270,"uuid":"627740580","full_name":"yym68686/md2tgmd","owner":"yym68686","description":"md2tgmd is a Markdown to Telegram-specific-markdown(MarkdownV2) converter","archived":false,"fork":false,"pushed_at":"2025-03-26T01:45:36.000Z","size":70,"stargazers_count":81,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-15T07:41:39.250Z","etag":null,"topics":["converter","markdown","markdownv2","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yym68686.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-14T05:20:41.000Z","updated_at":"2025-05-06T09:06:33.000Z","dependencies_parsed_at":"2024-01-15T10:38:44.209Z","dependency_job_id":"f10076f9-c865-49ba-9702-90b9b35be1a3","html_url":"https://github.com/yym68686/md2tgmd","commit_stats":null,"previous_names":["yym68686/md2tgmd"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/yym68686/md2tgmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yym68686%2Fmd2tgmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yym68686%2Fmd2tgmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yym68686%2Fmd2tgmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yym68686%2Fmd2tgmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yym68686","download_url":"https://codeload.github.com/yym68686/md2tgmd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yym68686%2Fmd2tgmd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260726605,"owners_count":23053188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","markdown","markdownv2","python","telegram","telegram-bot"],"created_at":"2024-08-04T04:02:55.787Z","updated_at":"2026-03-05T04:34:21.905Z","avatar_url":"https://github.com/yym68686.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# md2tgmd\n\n[English](README.md) | [Chinese](README_CN.md)\n\nmd2tgmd is a Markdown to [Telegram-specific-markdown](https://core.telegram.org/bots/api#formatting-options) converter.\n\n## Feature\n\n- Supports most of the specific Markdown syntax for Telegram, including: headings, bold, italic, strikethrough, code blocks, links, and quotes.\n- Support the conversion of LaTeX formulas in Markdown to Unicode characters to improve the readability of mathematical formulas in Telegram.\n- Support syntax highlighting for code blocks in Markdown.\n\n## Install\n\n```bash\npip install md2tgmd\n```\n\n## Usage\n\n~~~python\nFrom md2tgmd import escape\n\ntext = '''\n# Title\n\n\\[ \\\\varphi(35) = 35 \\\\left(1 - \\\\frac{1}{5}\\\\right) \\\\left(1 - \\\\frac{1}{7}\\\\right) \\]\n\n**Bold**\n```\n# Comment\nprint(qwer) # ferfe\nni1\n```\n# bn\n\n# b\n\n# Title\n## Subtitle\n\n[1.0.0](http://version.com)\n![1.0.0](http://version.com)\n\n- Item 1 -\n    - Item 1 -\n    - Item 1 -\n* Item 2 #\n* Item 3 ~\n\n1. Item 1\n2. Item 2\n\nsudo apt install mesa-utils # Install\n\n```python\n\n# Comment\nprint(\"1.1\\n\")_\n\\subsubsection{1.1}\n```\n\\subsubsection{1.1}\n\nAnd simple text `with-ten`  `with+ten` + some - **symbols**. # `-` inside `with-ten` will not be escaped\n\n\n```\nprint(\"Hello, World!\") -\n```\n\nCxy = abs (Pxy)**2/ (Pxx*Pyy)\n\n`a`a-b-c`n`\n\n`-a----++++`++a-b-c`-n-`\n`[^``]*`a``b-c``d``\n# pattern = r\"`[^`]*`-([^`-]*)``\nw`-a----`ccccc`-n-`bbbb``a\n'''\n\nprint(escape(text))\n\n\n'''\n▎*Title*\n\nϕ(35) = 35(1 - ⅕)(1 - 1/7)\n\n*Bold*\n```\n\\# Comment\nprint\\(qwer\\) \\# ferfe\nni1\n```\n▎*bn*\n\n▎*b*\n\n▎*Title*\n▎*Subtitle*\n\n[1\\.0\\.0](http://version\\.com)\n[1\\.0\\.0](http://version\\.com)\n\n\n• Item 1 \\-\n\n    • Item 1 \\-\n\n    • Item 1 \\-\n\n• Item 2 \\#\n\n• Item 3 \\~\n\n\n1\\. Item 1\n\n2\\. Item 2\n\nsudo apt install mesa\\-utils \\# Install\n\n```python\n\n\\# Comment\nprint\\(\"1\\.1\\\\n\"\\)\\_\n\\\\subsubsection\\{1\\.1\\}\n```\n\\\\subsubsection\\{1\\.1\\}\n\nAnd simple text `with-ten`  `with+ten` \\+ some \\- *symbols*\\. \\# `-` inside `with-ten` will not be escaped\n\n\n```\nprint\\(\"Hello, World\\!\"\\) -\n```\n\nCxy \\= abs \\(Pxy\\)\\*\\*2/ \\(Pxx\\*Pyy\\)\n\n`a`a\\-b\\-c`n`\n\n`-a----++++`\\+\\+a\\-b\\-c`-n-`\n`\\[^\\`\\`\\]\\*`a\\`\\`b\\-c\\`\\`d\\`\\`\n▎*pattern*\nw`-a----`ccccc`-n-`bbbb\\`\\`a\n'''\n~~~\n\n## Reference\n\nhttps://github.com/skoropadas/telegramify-markdown\n\n\n## License\n\nThis project is licensed under GPLv3, which means you are free to copy, distribute, and modify the software, as long as all modifications and derivative works are also released under the same license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyym68686%2Fmd2tgmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyym68686%2Fmd2tgmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyym68686%2Fmd2tgmd/lists"}