Skip to content

Commit 8f33f72

Browse files
committed
【修复】更新 markdown-html-generator 版本并修复相关功能
- 将 markdown-html 包更名为 markdown-html-generator - 更新版本号至 1.8.0 - 修改 index.html 中的版本号为 1.17.9 - 移除未使用的 reqwest::blocking::get 导入 - 调整 getMarkdown 函数调用,增加 pValue 参数
1 parent bd708b8 commit 8f33f72

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22

33
<html>
4-
<markdown-html version="1.17.8" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
4+
<markdown-html version="1.17.9" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
55
license="CC BY-SA 4.0 International"></markdown-html>
66

77
<head>
@@ -409,7 +409,7 @@
409409
}
410410
try {
411411
pValue = mdPath ? mdPath : path;
412-
updateContent(await getMarkdown((mdPath ? mdPath : path), response))
412+
updateContent(await getMarkdown((mdPath ? mdPath : path), response), pValue)
413413
document.querySelector('html').classList.add('loaded'); //// 防止缓存的页面被自定义 PJAX 中覆写的处理响应的函数捕获
414414
waitForAnimationsEnd(document.querySelector('.markdown-body'), '.content, .old-content', ['Animation-slideInRight', 'Animation-slideInLeft']).then(async () => {
415415
await showMarkdownEnded();

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use minify_html::{minify, Cfg};
2-
use reqwest::blocking::get;
32
use scraper::{Html, Selector};
43
use std::fs::{read, write};
54
use std::path::{Path, PathBuf};

0 commit comments

Comments
 (0)