Quellcode durchsuchen

【文档】更新文档

- 在 README.md 和 README_EN.md 中添加了代码高亮支持的特性说明
- 在依赖列表中加入了 highlightjs/highlight.js 的相关信息
- 更新了 index.html 中的 markdown-html 版本号至 1.13.1
PJ568 vor 1 Jahr
Ursprung
Commit
5eeb6fb688
3 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 2 0
      README.md
  2. 2 0
      README_EN.md
  3. 1 1
      index.html

+ 2 - 0
README.md

@@ -7,6 +7,7 @@
 ## 特性
 
 - **依赖少**:仅需一个 HTML 文件、少量 CDN 和服务器程序,即可完成 Markdown 网页渲染。
+- **代码高亮支持**:渲染 Markdown 中的代码块。
 - **Markdown 支持**:将 Markdown 文件渲染为 HTML。
 - **Mermaid 支持**:将 Markdown 中的 Mermaid 语法渲染为图表。
 - **多语言支持**:支持多种语言间的机器互译。
@@ -52,6 +53,7 @@
 |名称|协议|地址|
 |:-:|:--|:--|
 |tabler-icons|[MIT License](//mit-license.org)|[https://github.com/tabler/tabler-icons](https://github.com/tabler/tabler-icons)|
+|highlightjs/highlight.js|[BSD-3-Clause license](https://github.com/highlightjs/highlight.js/raw/refs/heads/main/LICENSE)|[Github](https://github.com/highlightjs/highlight.js)|
 |markedjs/marked|[marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md)|[Github](https://github.com/markedjs/marked)|
 |mermaidjs/mermaid|[MIT License](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE)|[Github](https://github.com/mermaid-js/mermaid)|
 |translate.js|[Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)|[Github](https://github.com/xnx3/translate)、[Gitee](https://gitee.com/mail_osc/translate)|

+ 2 - 0
README_EN.md

@@ -7,6 +7,7 @@ This project aims to provide a low-dependency, simple deployment solution for re
 ## 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.
@@ -52,6 +53,7 @@ This project is licensed under the [CC BY-SA 4.0 International](https://creative
 |Name|License|URL|
 |:-:|:--|:--|
 |tabler-icons|[MIT License](//mit-license.org)|[https://github.com/tabler/tabler-icons](https://github.com/tabler/tabler-icons)|
+|highlightjs/highlight.js|[BSD-3-Clause license](https://github.com/highlightjs/highlight.js/raw/refs/heads/main/LICENSE)|[Github](https://github.com/highlightjs/highlight.js)|
 |markedjs/marked|[marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md)|[Github](https://github.com/markedjs/marked)|
 |mermaidjs/mermaid|[MIT License](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE)|[Github](https://github.com/mermaid-js/mermaid)|
 |translate.js|[Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)|[Github](https://github.com/xnx3/translate)、[Gitee](https://gitee.com/mail_osc/translate)|

+ 1 - 1
index.html

@@ -1,7 +1,7 @@
 <!doctype html>
 
 <html>
-<markdown-html version="1.13.0" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
+<markdown-html version="1.13.1" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
   license="CC BY-SA 4.0 International"></markdown-html>
 
 <head>