README_EN.md 4.2 KB

MARKDOWN.HTML

简体中文 | English

This project provides a low-dependency, one-click deployment solution for rendering Markdown to web pages.

Features

  • Minimal dependencies: Only requires a single HTML file to render Markdown web pages.
  • Code highlighting: Supports syntax highlighting for code blocks in Markdown.
  • Markdown support: Renders Markdown files to HTML.
  • Mermaid support: Renders Mermaid diagrams in Markdown.
  • Multi-language support: Provides machine translation between languages.
  • Dark mode: Supports light, dark, and system theme modes.
  • Pjax support: Enables page navigation without full refresh.

Usage

Filename 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 which can be downloaded by script.
index.allinone.min.html Minified all-in-one HTML entry file with embedded dependencies which can be downloaded by script.

Manual Deployment

  1. Download the required HTML file from Releases and place it in your website root directory;
  2. The HTML file will automatically render index.md in the same directory, or README.md if index.md doesn't exist.

Github Actions

Compiles and deploys HTML files to specified directory. Replace <version> with 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'

Notes

This open-source project allows modifications but please retain original author information. If removal is necessary, please contact the author to avoid losing technical support. See License for details.

Contributions

We welcome contributions to code and content. Please refer to:

License

This project is licensed under CC BY-SA 4.0 International. For complete license information, see LICENSE.

Acknowledgments

Projects

Name License Links
tabler-icons MIT License Github, Website
highlightjs/highlight.js BSD-3-Clause license Github, Website
markedjs/marked marked License Github, Website
mermaidjs/mermaid MIT License Github, Website
translate.js Apache License Version 2.0 Github, Gitee, Website
darkmode.js MIT license Github, Website
MoOx/pjax MIT license Github
instant.page MIT license Github, Website
Maple Mono OFL-1.1 license Github, Website

Services

Icon Name
- 360 Frontend CDN
ByteDance Static CDN ByteDance Static CDN
Chinese Web Font Project Chinese Web Font Project

Stars

Stargazers over time