Skip to content

Commit

Permalink
fix: 跟进@karinjs/md-html包版本,修复kkk版本样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Aug 5, 2024
1 parent 40ea999 commit 600e913
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ data/*
yarn.lock/*
package-lock.json
!.gitignore
jsconfig.json
jsconfig.json
resources/html/help/changelogs.html
7 changes: 3 additions & 4 deletions apps/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ export class Help extends plugin {
async version (e) {
const changelogs = fs.readFileSync(Version.pluginPath + '/CHANGELOG.md', 'utf8')
const html = markdown(changelogs, {
gitcss: 'GitHubDark'
})
const img = await Render.render('html/help/version-info', {
data: html
gitcss: 'github-markdown-dark.css'
})
fs.writeFileSync(Version.pluginPath + '/resources/html/help/changelogs.html', html)
const img = await Render.render('html/help/changelogs')
await e.reply(img)
return true
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "ikenxuan",
"license": "GPL-3.0",
"dependencies": {
"@karinjs/md-html": "^1.1.0",
"@karinjs/md-html": "^1.1.3",
"child_process": "^1.0.2",
"jsdom": "^24.1.1",
"md5": "^2.3.0",
Expand Down

0 comments on commit 600e913

Please sign in to comment.