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CAnTWljcm9zb2Z0IFlhSGVpJywgQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iNC41cHgiIGZvbnQtd2VpZ2h0PSJib2xkIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj4mbHQ7TUgmZ3Q7PC90ZXh0Pgo8L2c+Cjwvc3ZnPgo=) # 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 CDN](https://cdn.bytedance.com/src/res/logo.svg) | [ByteDance Static CDN](https://cdn.bytedance.com/) | | ![Chinese Fonts](https://chinese-font.netlify.app/favicon.ico) | [Chinese Web Fonts](https://chinese-font.netlify.app) | ## Stargazers [![Stargazers over time](https://starchart.cc/PJ-568/MARKDOWN.HTML.svg?variant=adaptive)](https://starchart.cc/PJ-568/MARKDOWN.HTML)