├── .github └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── .pre-commit-config.yaml ├── BENCHMARKS.md ├── LICENSE ├── README.md ├── benchmarks.json ├── chatgpt_md_converter ├── __init__.py ├── html_markdown │ ├── escaping.py │ ├── handlers.py │ ├── renderer.py │ ├── state.py │ └── tree.py ├── html_splitter.py ├── html_to_markdown.py ├── telegram_formatter.py └── telegram_markdown │ ├── __init__.py │ ├── code_blocks.py │ ├── inline.py │ ├── postprocess.py │ ├── preprocess.py │ └── renderer.py ├── docs └── splitter-changes.md ├── scripts └── benchmark.py ├── setup.py └── tests ├── __init__.py ├── fixtures ├── __init__.py └── markdown_roundtrips.py ├── html_examples.py ├── test_html_to_markdown_inline_spacing.py ├── test_parser.py ├── test_roundtrip_markdown.py └── test_splitter.py /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /BENCHMARKS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/BENCHMARKS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/README.md -------------------------------------------------------------------------------- /benchmarks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/benchmarks.json -------------------------------------------------------------------------------- /chatgpt_md_converter/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/__init__.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_markdown/escaping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_markdown/escaping.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_markdown/handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_markdown/handlers.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_markdown/renderer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_markdown/renderer.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_markdown/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_markdown/state.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_markdown/tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_markdown/tree.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_splitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_splitter.py -------------------------------------------------------------------------------- /chatgpt_md_converter/html_to_markdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/html_to_markdown.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_formatter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_formatter.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/__init__.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/code_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/code_blocks.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/inline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/inline.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/postprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/postprocess.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/preprocess.py -------------------------------------------------------------------------------- /chatgpt_md_converter/telegram_markdown/renderer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/chatgpt_md_converter/telegram_markdown/renderer.py -------------------------------------------------------------------------------- /docs/splitter-changes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/docs/splitter-changes.md -------------------------------------------------------------------------------- /scripts/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/scripts/benchmark.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/__init__.py: -------------------------------------------------------------------------------- 1 | """Test fixtures for chatgpt_md_converter.""" 2 | -------------------------------------------------------------------------------- /tests/fixtures/markdown_roundtrips.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/fixtures/markdown_roundtrips.py -------------------------------------------------------------------------------- /tests/html_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/html_examples.py -------------------------------------------------------------------------------- /tests/test_html_to_markdown_inline_spacing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/test_html_to_markdown_inline_spacing.py -------------------------------------------------------------------------------- /tests/test_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/test_parser.py -------------------------------------------------------------------------------- /tests/test_roundtrip_markdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/test_roundtrip_markdown.py -------------------------------------------------------------------------------- /tests/test_splitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botfather-dev/formatter-chatgpt-telegram/HEAD/tests/test_splitter.py --------------------------------------------------------------------------------