README_EN.md 3.7 KB

MARKDOWN.HTML

简体中文 | English

This project aims to provide a low-dependency, simple deployment solution for rendering Markdown web pages.

Features

  • Low dependencies: Only an HTML file, a small number of CDNs, and server programs are required to complete Markdown pages rendering.
  • Syntax highlighting support: Renders code blocks in Markdown.
  • Markdown support: Renders Markdown files into HTML.
  • Mermaid support: Renders Mermaid syntax in Markdown into diagrams.
  • Multilingual support: Supports machine translation between multiple languages.
  • Dark mode support: Supports light, dark, and system-following modes.
  • Pjax support: Supports page navigation without refreshing the whole page.

Usage

Manual Deployment

  1. Download and rename the index.html file from this repository and place to your website's root directory or any other directory;
  2. When the html file is accessed, it will automatically render the index.md in the same directory. If index.md does not exist, it will render README.md.

Github Actions

- name: Deploy markdown.html
  uses: PJ-568/MARKDOWN.HTML@v1
  with:
    target-dir: '.'
    file-name: 'index.html'

Additional Notes

The open-source projects used in this project allow modifications, but please retain the original author information. If removal is necessary, please contact the author to avoid losing technical support. For more details, refer to the license.

Code or Content Contributions

We welcome contributions of code and content from anyone interested in this project. Please checkout 程序逻辑.

For a simpler way to contribute, please refer to the Contribution Guide for relevant information.

License

This project is licensed under the CC BY-SA 4.0 International license. For full license information, please refer to the LICENSE file.

Credits

Projects

Name License URL
tabler-icons MIT License https://github.com/tabler/tabler-icons
highlightjs/highlight.js BSD-3-Clause license Github
markedjs/marked marked License Github
mermaidjs/mermaid MIT License Github
translate.js Apache License Version 2.0 Github、Gitee
darkmode.js MIT license Github
MoOx/pjax MIT license Github
instant.page MIT license Github
Maple Mono OFL-1.1 license Github

Services

Icon Name
None 360 Frontend Static Resource Library
ByteDance Static Resource CDN icon ByteDance Static Resource CDN
Chinese Font Network Project Chinese Font Network Project

Stargazers over time

Stargazers over time