{"id":19909631,"url":"https://github.com/zigaowang/md2html","last_synced_at":"2025-10-13T12:31:58.986Z","repository":{"id":246856079,"uuid":"822368143","full_name":"ZigaoWang/md2html","owner":"ZigaoWang","description":"MD2HTML - Markdown to HTML Converter","archived":false,"fork":false,"pushed_at":"2025-02-19T06:56:21.000Z","size":56,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T01:48:24.359Z","etag":null,"topics":["cli","converter","html","markdown","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-01T02:41:14.000Z","updated_at":"2025-02-19T06:56:24.000Z","dependencies_parsed_at":"2025-09-19T20:55:14.656Z","dependency_job_id":null,"html_url":"https://github.com/ZigaoWang/md2html","commit_stats":null,"previous_names":["zigaowang/md2html"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZigaoWang/md2html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZigaoWang","download_url":"https://codeload.github.com/ZigaoWang/md2html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZigaoWang%2Fmd2html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015056,"owners_count":26085643,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","converter","html","markdown","python"],"created_at":"2024-11-12T21:16:13.276Z","updated_at":"2025-10-13T12:31:58.944Z","avatar_url":"https://github.com/ZigaoWang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MD2HTML - Markdown to HTML Converter\n\n```\n   __  ______    ___    __ __________  _____ \n  /  |/  / _ \\  |_  |  / // /_  __/  |/  / / \n / /|_/ / // / / __/  / _  / / / / /|_/ / /__\n/_/  /_/____/ /____/ /_//_/ /_/ /_/  /_/____/\n```\n\nMD2HTML is a powerful and easy-to-use command-line tool for converting Markdown files into beautifully styled HTML documents. It supports syntax highlighting, custom CSS, and includes handy features like copy-to-clipboard buttons for code blocks.\n\n## Features\n\n- **Syntax Highlighting:** Converts code blocks into beautifully highlighted code using Pygments.\n- **Custom CSS:** Apply your custom CSS styles to the output HTML.\n- **Light/Dark Mode:** Easily switch between light and dark themes.\n- **Copy-to-Clipboard Buttons:** Adds copy buttons to code blocks for easy copying.\n- **MathJax Support:** Automatically includes MathJax for rendering mathematical expressions.\n\n## Installation\n\n1. **Clone the Repository:**\n    ```sh\n    git clone https://github.com/ZigaoWang/md2html.git\n    cd md2html\n    ```\n\n2. **Install Dependencies:**\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\n### Command-Line Arguments\n\nMD2HTML can be used directly from the command line with various options.\n\n```sh\npython md2html.py -i \u003cinput_file\u003e -o \u003coutput_file\u003e -d \u003coutput_dir\u003e -c \u003ccss_file\u003e -m \u003cmode\u003e\n```\n\n#### Arguments\n\n- `-i`, `--input_file`: Path to the input Markdown file. (Required)\n- `-o`, `--output_file`: Name of the output HTML file. Default is `output.html`.\n- `-d`, `--output_dir`: Directory where the output HTML file will be saved. Default is the current directory.\n- `-c`, `--css_file`: Path to a custom CSS file. (Optional)\n- `-m`, `--mode`: Choose mode (`light`/`dark`). Default is `light`.\n\n### Interactive Prompt\n\nIf no arguments are provided, MD2HTML will prompt you for the necessary inputs interactively.\n\n```sh\npython md2html.py\n```\n\n### Example\n\n```sh\npython md2html.py -i example.md -o example.html -d ./output -m dark\n```\n\n## Custom CSS\n\nYou can provide your CSS file using the `-c` or `--css_file` argument. If not provided, the tool will use default styles (`style_light.css` or `style_dark.css`).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or open an Issue.\n\n## Acknowledgements\n\n- **Markdown:** [Python-Markdown](https://github.com/Python-Markdown/markdown)\n- **Syntax Highlighting:** [Pygments](https://pygments.org/)\n- **HTML Parsing:** [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/)\n\n## Author\n\nMade with 💜 by [Zigao Wang](https://zigao.wang)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigaowang%2Fmd2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigaowang%2Fmd2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigaowang%2Fmd2html/lists"}