{"id":19631022,"url":"https://github.com/magiclen/markdown2html-converter","last_synced_at":"2025-04-09T10:07:56.448Z","repository":{"id":39381217,"uuid":"153431261","full_name":"magiclen/markdown2html-converter","owner":"magiclen","description":"A tool for converting a Markdown file to a single HTML file with built-in CSS and JS.","archived":false,"fork":false,"pushed_at":"2024-07-08T21:19:05.000Z","size":864,"stargazers_count":91,"open_issues_count":9,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T07:11:17.284Z","etag":null,"topics":["cli","html","markdown","rust"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/magiclen.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":"2018-10-17T09:31:52.000Z","updated_at":"2025-03-25T07:14:58.000Z","dependencies_parsed_at":"2025-04-02T07:11:04.720Z","dependency_job_id":"ec280e09-8bdd-41e7-a508-9e0b84779ee3","html_url":"https://github.com/magiclen/markdown2html-converter","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fmarkdown2html-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fmarkdown2html-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fmarkdown2html-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fmarkdown2html-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/markdown2html-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"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":["cli","html","markdown","rust"],"created_at":"2024-11-11T12:07:26.315Z","updated_at":"2025-04-09T10:07:56.407Z","avatar_url":"https://github.com/magiclen.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Markdown to HTML Converter\n====================\n\n[![CI](https://github.com/magiclen/markdown2html-converter/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/markdown2html-converter/actions/workflows/ci.yml)\n\nMarkdown to HTML Converter is a free tool for converting a Markdown file to a single HTML file with built-in CSS and JS.\n\n## Help\n\n```\nEXAMPLES:\nmarkdown2html-converter /path/to/file.md                           # Convert /path/to/file.md to /path/to/file.html, titled \"file\"\nmarkdown2html-converter /path/to/file.md -o /path/to/output.html   # Convert /path/to/file.md to /path/to/output.html, titled \"output\"\nmarkdown2html-converter /path/to/file.md -t 'Hello World!'         # Convert /path/to/file.md to /path/to/file.html, titled \"Hello World!\"\n\nUsage: markdown2html-converter [OPTIONS] \u003cMARKDOWN_PATH\u003e\n\nArguments:\n  \u003cMARKDOWN_PATH\u003e  Specify the path of your Markdown file\n\nOptions:\n  -t, --title \u003cTITLE\u003e                            Specify the title of your HTML file\n  -o, --html-path \u003cHTML_PATH\u003e                    Specify the path of your HTML file\n  -f, --force                                    Force to output if the HTML file exists\n      --no-safe                                  Allow raw HTML and dangerous URLs\n      --no-highlight                             Not allow to use highlight.js\n      --no-mathjax                               Not allow to use mathjax.js\n      --no-cjk-fonts                             Not allow to use CJK fonts\n      --css-path \u003cCSS_PATH\u003e                      Specify the path of your custom CSS file\n      --highlight-js-path \u003cHIGHLIGHT_JS_PATH\u003e    Specify the path of your custom highlight.js file\n      --highlight-css-path \u003cHIGHLIGHT_CSS_PATH\u003e  Specify the path of your custom CSS file for highlight.js code blocks\n      --mathjax-js-path \u003cMATHJAX_JS_PATH\u003e        Specify the path of your custom single MATH_JAX.js file\n  -h, --help                                     Print help\n  -V, --version                                  Print version\n```\n\n## Dependency\n\nMarkdown is converted to HTML by the [comrak](https://crates.io/crates/comrak) crate. The default stylesheet (the CSS file) is from [sindresorhus/github-markdown-css](https://github.com/sindresorhus/github-markdown-css). \n\nIf ` ``` ` is used in the input Markdown file, the [highlight.js](https://highlightjs.org/) will be automatically embedded in the output HTML file. The preset supported languages are listed below.\n\n* Apache\n* Bash\n* C\n* C#\n* C++\n* CSS\n* Diff\n* Dockerfile\n* Go\n* HTML, XML\n* JSON\n* Java\n* JavaScript\n* Kotlin\n* Less\n* Lua\n* Makefile\n* Markdown\n* Nginx\n* Objective-C\n* PHP\n* PHP Template\n* Perl\n* Python\n* Python REPL\n* R\n* Ruby\n* Rust\n* SCSS\n* SQL\n* Shell\n* Swift\n* TOML, INI\n* TypeScript\n* Visual Basic .NET\n* YAML\n\nIf `#{{` - `}}#` or `#{{{` - `}}}#` is used in the input Markdown file, the [mathjax.js](https://www.mathjax.org/) will be automatically embedded in the output HTML file. `#{{` and `}}#` are `inlineMath` delimiters. `#{{{` and `}}}#` are `displayMath` delimiters. The default **mathjax.js** are using the [tex-mml-chtml](http://docs.mathjax.org/en/latest/web/components/combined.html#tex-mml-chtml) configuration file.\n\n## A Markdown Example\n\n[The Markdown File](https://github.com/magiclen/markdown2html-converter/blob/master/example.md)\n\n[The HTML File](https://jsfiddle.net/magiclen/jgs324w0/latest)\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fmarkdown2html-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fmarkdown2html-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fmarkdown2html-converter/lists"}