README_EN.md 7.1 KB

MARKDOWN.HTML

MARKDOWN.HTML

简体中文 | 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 Default HTML entry file using CDN dependencies
index.min.html Minified HTML entry file using CDN dependencies
index.allinone.html All-in-one HTML entry file with embedded dependencies
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 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 <version> with the actual version number.

- name: Deploy markdown.html
  uses: PJ-568/MARKDOWN.HTML@v<version>
  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.

Contributing

We welcome contributions to this project. Please review:

Ensure your contributions follow project specifications. For contribution guidelines, see CONTRIBUTING.md.

License

This project is licensed under CC BY-SA 4.0 International. The full license text is available in LICENSE.

Acknowledgements

Projects

Name License Links
tabler-icons MIT GitHub, Website
highlight.js BSD-3-Clause GitHub, Website
marked marked License GitHub, Website
mermaid MIT GitHub, Website
translate.js Apache 2.0 GitHub, Gitee, Website
darkmode.js MIT GitHub, Website
pjax MIT GitHub
instant.page MIT GitHub, Website
Maple Mono OFL-1.1 GitHub, Website

Services

Icon Service
- 360 Frontend CDN
ByteDance CDN ByteDance Static CDN
Chinese Fonts Chinese Web Fonts

Stargazers

Stargazers over time