{"id":19909635,"url":"https://github.com/zigaowang/md2html-batch","last_synced_at":"2025-09-19T01:33:01.948Z","repository":{"id":247036061,"uuid":"824861743","full_name":"ZigaoWang/md2html-batch","owner":"ZigaoWang","description":"MD2HTML is a powerful and user-friendly tool for converting Markdown files to HTML in batch mode.","archived":false,"fork":false,"pushed_at":"2024-07-06T08:32:47.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-12T21:16:10.712Z","etag":null,"topics":["batch","cli","converter","html","markdown","md2html","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZigaoWang.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":"2024-07-06T06:39:25.000Z","updated_at":"2024-09-16T08:32:46.000Z","dependencies_parsed_at":"2024-07-06T08:59:54.485Z","dependency_job_id":null,"html_url":"https://github.com/ZigaoWang/md2html-batch","commit_stats":null,"previous_names":["zigaowang/md-journal","zigaowang/md2html-batch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html-batch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html-batch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html-batch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html-batch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZigaoWang","download_url":"https://codeload.github.com/ZigaoWang/md2html-batch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233543337,"owners_count":18691796,"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":["batch","cli","converter","html","markdown","md2html","python"],"created_at":"2024-11-12T21:16:13.356Z","updated_at":"2025-09-19T01:32:56.637Z","avatar_url":"https://github.com/ZigaoWang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MD2HTML - Markdown to HTML Converter (Batch Edition)\n\n## Overview\n\nMD2HTML is a powerful and user-friendly tool for converting Markdown files to HTML in batch mode. This tool supports syntax highlighting, custom CSS styling, and generates an index page for easy navigation. The project is ideal for creating personal blogs, documentation sites, or any other static web content from Markdown files.\n\n## Features\n\n- **Batch Conversion**: Converts multiple Markdown files to HTML in one go.\n- **Custom CSS Styling**: Supports light and dark mode themes.\n- **Syntax Highlighting**: Uses Pygments for beautiful code highlighting.\n- **Copy Button for Code Blocks**: Adds a copy button to code blocks for easy copying.\n- **MathJax Support**: Automatically includes MathJax for rendering mathematical notations.\n- **Index Page Generation**: Creates an index page listing all converted HTML files.\n- **Folder Structure Option**: Option to organize HTML files into folders for clean URLs.\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ZigaoWang/md2html-batch.git\n   cd md2html-batch\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\n1. Place your Markdown files in the `input` folder.\n\n2. Run the script:\n   ```bash\n   python main.py\n   ```\n\n3. Follow the prompts to choose your preferences:\n   - **Mode**: Choose between light and dark mode for CSS styling.\n   - **Site Name**: Enter a name for your site, which will appear as the title of the index page.\n   - **Use Folders**: Decide whether to use folders for clean URLs.\n\n4. The converted HTML files will be generated in the `output` folder, with an `index.html` file for navigation.\n\n## Customization\n\n- **CSS Styles**: Modify `style_light.css` and `style_dark.css` to customize the appearance of your HTML files.\n\n## Example\n\nHere's an example of how to convert Markdown files:\n\n1. Place your `.md` files in the `input` folder.\n2. Run `python main.py`.\n3. Enter your preferences when prompted.\n4. The HTML files will be generated in the `output` folder.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Credits\n\nMade with 💜 by [Zigao Wang](https://zigao.wang).\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## Acknowledgements\n\n- [Markdown](https://daringfireball.net/projects/markdown/)\n- [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)\n- [Pygments](https://pygments.org/)\n- [MathJax](https://www.mathjax.org/)\n\n## Contact\n\nFor any questions or suggestions, please open an issue or contact [Zigao Wang](mailto:a@zigao.wang).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigaowang%2Fmd2html-batch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigaowang%2Fmd2html-batch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigaowang%2Fmd2html-batch/lists"}