# MARKDOWN.HTML
> [简体中文](README.md) | English
This project provides a low-dependency, one-click deployment solution for rendering Markdown to web pages.
## Features
- **Low Dependencies**: Only one HTML file is required to render Markdown to web pages.
- **Syntax Highlighting**: Render code blocks in Markdown.
- **Markdown Support**: Convert Markdown files to HTML.
- **Mermaid Support**: Render Mermaid diagrams in Markdown.
- **Multi-language Support**: Machine translation between multiple languages.
- **Dark Mode**: Support light, dark, and system default themes.
- **Pjax Support**: Page navigation without full reload.
## Usage
| File Name | Description |
| :------------------------------------------------- | :------------------------------------------------------------- |
| [index.html](index.html) | Default HTML entry file using CDN dependencies |
| [index.min.html](index.min.html) | Minified HTML entry file using CDN dependencies |
| [index.allinone.html](index.allinone.html) | All-in-one HTML entry file with embedded dependencies |
| [index.allinone.min.html](index.allinone.min.html) | Minified all-in-one HTML entry file with embedded dependencies |
### Manual Deployment
1. Download the required HTML file from the [Releases page](https://github.com/PJ-568/MARKDOWN.HTML/releases) and place it in your website directory;
2. When accessed, the HTML file will automatically render `index.md` in the same directory. If `index.md` doesn't exist, it will render `README.md`.
### GitHub Actions
Compile and deploy HTML files to the target directory. Replace `` with the actual version number.
```yaml
- name: Deploy markdown.html
uses: PJ-568/MARKDOWN.HTML@v
with:
target-dir: "."
file-name: "index.html"
use-minified: "true"
use-all-in-one: "false"
```
## Additional Notes
`The open-source projects used in this work may be modified, but please retain the original author information. Contact the author if removal is necessary to avoid losing technical support.` For details, see [License](#license).
## Contributing
We welcome contributions to this project. Please review:
- [Program Logic](doc/logic.md)
- [Script Design](doc/scripts.md)
- [To-do List](doc/TODO.md)
- [Workflow](doc/workflow.md)
Ensure your contributions follow project specifications. For contribution guidelines, see [CONTRIBUTING.md](CONTRIBUTING.md).
## License
This project is licensed under [CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). The full license text is available in [`LICENSE`](LICENSE).
### Acknowledgements
#### Projects
| Name | License | Links |
| :----------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------ |
| tabler-icons | [MIT](//mit-license.org) | [GitHub](https://github.com/tabler/tabler-icons), [Website](https://tabler.io/icons) |
| highlight.js | [BSD-3-Clause](https://github.com/highlightjs/highlight.js/raw/main/LICENSE) | [GitHub](https://github.com/highlightjs/highlight.js), [Website](https://highlightjs.org) |
| marked | [marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md) | [GitHub](https://github.com/markedjs/marked), [Website](https://marked.js.org) |
| mermaid | [MIT](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE) | [GitHub](https://github.com/mermaid-js/mermaid), [Website](https://mermaid.js.org) |
| translate.js | [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0) | [GitHub](https://github.com/xnx3/translate), [Gitee](https://gitee.com/mail_osc/translate), [Website](https://translate.zvo.cn) |
| darkmode.js | [MIT](//mit-license.org) | [GitHub](https://github.com/sandoche/Darkmode.js), [Website](https://darkmodejs.learn.uno) |
| pjax | [MIT](//mit-license.org) | [GitHub](https://github.com/MoOx/pjax) |
| instant.page | [MIT](//mit-license.org) | [GitHub](https://github.com/instantpage/instant.page), [Website](https://instant.page) |
| Maple Mono | [OFL-1.1](https://openfontlicense.org) | [GitHub](https://github.com/subframe7536/maple-font), [Website](https://font.subf.dev) |
#### Services
| Icon | Service |
| :------------------------------------------------------------- | :---------------------------------------------------- |
| - | [360 Frontend CDN](https://cdn.baomitu.com/) |
|  | [ByteDance Static CDN](https://cdn.bytedance.com/) |
|  | [Chinese Web Fonts](https://chinese-font.netlify.app) |
## Stargazers
[](https://starchart.cc/PJ-568/MARKDOWN.HTML)