1
0
Эх сурвалжийг харах

【修复】扩展媒体元素混色处理
添加 canvas 和 video 元素的深色模式混色支持,防止背景图片、svg、canvas 和视频等混色问题。

【格式,文档】优化表格显示格式

优化 README.md 和 README_EN.md 中表格的单行显示,提升可读性和维护性。

PJ568 11 сар өмнө
parent
commit
03f19f89f9
3 өөрчлөгдсөн 54 нэмэгдсэн , 51 устгасан
  1. 25 25
      README.md
  2. 24 24
      README_EN.md
  3. 5 2
      index.html

+ 25 - 25
README.md

@@ -16,11 +16,11 @@
 
 ## 使用方法
 
-| 文件名 | 说明 |
-| :----- | :--- |
-| [index.html](index.html) | 默认 HTML 入口文件,使用 CDN 引入依赖。 |
-| [index.min.html](index.min.html) | 压缩后的 HTML 入口文件,使用 CDN 引入依赖。 |
-| [index.allinone.html](index.allinone.html) | 全合一 HTML 入口文件,默认包含所有可被脚本下载的依赖。 |
+| 文件名                                             | 说明                                                           |
+| :------------------------------------------------- | :------------------------------------------------------------- |
+| [index.html](index.html)                           | 默认 HTML 入口文件,使用 CDN 引入依赖。                        |
+| [index.min.html](index.min.html)                   | 压缩后的 HTML 入口文件,使用 CDN 引入依赖。                    |
+| [index.allinone.html](index.allinone.html)         | 全合一 HTML 入口文件,默认包含所有可被脚本下载的依赖。         |
 | [index.allinone.min.html](index.allinone.min.html) | 压缩后的全合一 HTML 入口文件,默认包含所有可被脚本下载的依赖。 |
 
 ### 手动部署
@@ -36,10 +36,10 @@
 - 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'
+    target-dir: "."
+    file-name: "index.html"
+    use-minified: "true"
+    use-all-in-one: "false"
 ```
 
 ## 其他说明
@@ -61,25 +61,25 @@
 
 #### 项目
 
-|名称|协议|地址|
-|:-:|:--|:--|
-|tabler-icons|[MIT License](//mit-license.org)|[Github](https://github.com/tabler/tabler-icons)、[Website](https://tabler.io/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)、[Website](https://highlightjs.org)|
-|markedjs/marked|[marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md)|[Github](https://github.com/markedjs/marked)、[Website](https://marked.js.org)|
-|mermaidjs/mermaid|[MIT License](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE)|[Github](https://github.com/mermaid-js/mermaid)、[Website](https://mermaid.js.org)|
-|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)、[Website](https://translate.zvo.cn)|
-|darkmode.js|[MIT license](//mit-license.org)|[Github](https://github.com/sandoche/Darkmode.js)、[Website](https://darkmodejs.learn.uno)|
-|MoOx/pjax|[MIT license](//mit-license.org)|[Github](https://github.com/MoOx/pjax)|
-|instant.page|[MIT license](//mit-license.org)|[Github](https://github.com/instantpage/instant.page)、[Website](https://instant.page)|
-|Maple Mono|[OFL-1.1 license](https://openfontlicense.org/open-font-license-official-text/)|[Github](https://github.com/subframe7536/maple-font)、[Website](https://font.subf.dev)|
+|           名称           | 协议                                                                                            | 地址                                                                                                                            |
+| :----------------------: | :---------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------ |
+|       tabler-icons       | [MIT License](//mit-license.org)                                                                | [Github](https://github.com/tabler/tabler-icons)、[Website](https://tabler.io/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)、[Website](https://highlightjs.org)                                       |
+|     markedjs/marked      | [marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md)                     | [Github](https://github.com/markedjs/marked)、[Website](https://marked.js.org)                                                  |
+|    mermaidjs/mermaid     | [MIT License](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE)                       | [Github](https://github.com/mermaid-js/mermaid)、[Website](https://mermaid.js.org)                                              |
+|       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)、[Website](https://translate.zvo.cn) |
+|       darkmode.js        | [MIT license](//mit-license.org)                                                                | [Github](https://github.com/sandoche/Darkmode.js)、[Website](https://darkmodejs.learn.uno)                                      |
+|        MoOx/pjax         | [MIT license](//mit-license.org)                                                                | [Github](https://github.com/MoOx/pjax)                                                                                          |
+|       instant.page       | [MIT license](//mit-license.org)                                                                | [Github](https://github.com/instantpage/instant.page)、[Website](https://instant.page)                                          |
+|        Maple Mono        | [OFL-1.1 license](https://openfontlicense.org/open-font-license-official-text/)                 | [Github](https://github.com/subframe7536/maple-font)、[Website](https://font.subf.dev)                                          |
 
 #### 服务
 
-|图标|名称|
-|:-:|:--|
-|无|[360 前端静态资源库](https://cdn.baomitu.com/)|
-|![字节跳动静态资源公共库图标](https://cdn.bytedance.com/src/res/logo.svg)|[字节跳动静态资源公共库](https://cdn.bytedance.com/)|
-|![中文网字计划](https://chinese-font.netlify.app/favicon.ico)|[中文网字计划](https://chinese-font.netlify.app)|
+|                                   图标                                    | 名称                                                 |
+| :-----------------------------------------------------------------------: | :--------------------------------------------------- |
+|                                    无                                     | [360 前端静态资源库](https://cdn.baomitu.com/)       |
+| ![字节跳动静态资源公共库图标](https://cdn.bytedance.com/src/res/logo.svg) | [字节跳动静态资源公共库](https://cdn.bytedance.com/) |
+|       ![中文网字计划](https://chinese-font.netlify.app/favicon.ico)       | [中文网字计划](https://chinese-font.netlify.app)     |
 
 ## 星
 

+ 24 - 24
README_EN.md

@@ -16,11 +16,11 @@ This project provides a low-dependency, one-click deployment solution for render
 
 ## 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 |
+| 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
@@ -36,10 +36,10 @@ Compile and deploy HTML files to the target directory. Replace `<version>` with
 - 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'
+    target-dir: "."
+    file-name: "index.html"
+    use-minified: "true"
+    use-all-in-one: "false"
 ```
 
 ## Additional Notes
@@ -65,24 +65,24 @@ This project is licensed under [CC BY-SA 4.0 International](https://creativecomm
 
 #### 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) |
+| 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/) |
+| 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

+ 5 - 2
index.html

@@ -2,7 +2,7 @@
 
 <html>
   <markdown-html
-    version="1.20.0"
+    version="1.20.1"
     author="PJ568"
     repo="https://github.com/PJ-568/markdown.html"
     license="CC BY-SA 4.0 International"
@@ -1151,8 +1151,11 @@
       }
 
       /* 深色模式相关 */
+      /* 防止背景图片、svg、canvas 和视频等混色 */
       .darkmode--activated .markdown-body img,
-      .darkmode--activated .markdown-body svg {
+      .darkmode--activated .markdown-body svg,
+      .darkmode--activated .markdown-body canvas,
+      .darkmode--activated .markdown-body video {
         isolation: isolate;
         mix-blend-mode: difference;
       }