diff --git a/package-lock.json b/package-lock.json index ae0b97b..4e7239b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "hexo-generator-category": "^2.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-tag": "^2.0.0", - "hexo-math": "^4.0.0", + "hexo-math": "^5.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-markdown-it": "^7.1.1", "hexo-renderer-stylus": "^2.1.0", @@ -914,32 +914,103 @@ } }, "node_modules/hexo-math": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/hexo-math/-/hexo-math-4.0.0.tgz", - "integrity": "sha512-oMVa9bVXljQ8F3y0euVwOhkkiTfH3vxEV+dWT7lWbxNjtxV9MvpTG4BkDNSgM1frv+sP549FuPx39KqqEHmAgA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/hexo-math/-/hexo-math-5.0.0.tgz", + "integrity": "sha512-Yz7sHMc5BQPWC7Y4NL+I+eWB39i3oPnZjpRFeql7Ok7g8tGEOSFZkK5ImqMPNvtGZxbwJt8ks8NqJwJMb0YnXg==", "dependencies": { - "hexo-util": "^2.2.0", - "katex": "^0.12.0", - "mathjax": "^3.0.5" + "hexo-util": "^3.3.0", + "katex": "^0.16.10", + "mathjax": "^3.2.2" }, "engines": { - "node": ">= 10.13.0" + "node": ">= 14" } }, - "node_modules/hexo-math/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "node_modules/hexo-math/node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } }, - "node_modules/hexo-math/node_modules/katex": { - "version": "0.12.0", - "resolved": "https://registry.npmmirror.com/katex/-/katex-0.12.0.tgz", - "integrity": "sha512-y+8btoc/CK70XqcHqjxiGWBOeIL8upbS0peTPXTvgrh21n1RiWWcIpSWM+4uXq+IAgNh9YYQWdc7LVDPDAEEAg==", + "node_modules/hexo-math/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dependencies": { - "commander": "^2.19.0" + "domelementtype": "^2.3.0" }, - "bin": { - "katex": "cli.js" + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/hexo-math/node_modules/domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/hexo-math/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/hexo-math/node_modules/hexo-util": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/hexo-util/-/hexo-util-3.3.0.tgz", + "integrity": "sha512-YvGngXijE2muEh5L/VI4Fmjqb+/yAkmY+VuyhWVoRwQu1X7bmWodsfYRXX7CUYhi5LqsvH8FAe/yBW1+f6ZX4Q==", + "hasInstallScript": true, + "dependencies": { + "camel-case": "^4.1.2", + "cross-spawn": "^7.0.3", + "deepmerge": "^4.2.2", + "highlight.js": "^11.6.0", + "htmlparser2": "^9.0.0", + "prismjs": "^1.29.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/hexo-math/node_modules/htmlparser2": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz", + "integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "entities": "^4.5.0" } }, "node_modules/hexo-pagination": { @@ -1309,11 +1380,15 @@ ] }, "node_modules/katex": { - "version": "0.16.4", - "resolved": "https://registry.npmmirror.com/katex/-/katex-0.16.4.tgz", - "integrity": "sha512-WudRKUj8yyBeVDI4aYMNxhx5Vhh2PjpzQw1GRu/LVGqL4m1AxwD1GcUp0IMbdJaf5zsjtj8ghP0DOQRYhroNkw==", + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], "dependencies": { - "commander": "^8.0.0" + "commander": "^8.3.0" }, "bin": { "katex": "cli.js" @@ -2845,26 +2920,71 @@ } }, "hexo-math": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/hexo-math/-/hexo-math-4.0.0.tgz", - "integrity": "sha512-oMVa9bVXljQ8F3y0euVwOhkkiTfH3vxEV+dWT7lWbxNjtxV9MvpTG4BkDNSgM1frv+sP549FuPx39KqqEHmAgA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/hexo-math/-/hexo-math-5.0.0.tgz", + "integrity": "sha512-Yz7sHMc5BQPWC7Y4NL+I+eWB39i3oPnZjpRFeql7Ok7g8tGEOSFZkK5ImqMPNvtGZxbwJt8ks8NqJwJMb0YnXg==", "requires": { - "hexo-util": "^2.2.0", - "katex": "^0.12.0", - "mathjax": "^3.0.5" + "hexo-util": "^3.3.0", + "katex": "^0.16.10", + "mathjax": "^3.2.2" }, "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "requires": { + "domelementtype": "^2.3.0" + } }, - "katex": { - "version": "0.12.0", - "resolved": "https://registry.npmmirror.com/katex/-/katex-0.12.0.tgz", - "integrity": "sha512-y+8btoc/CK70XqcHqjxiGWBOeIL8upbS0peTPXTvgrh21n1RiWWcIpSWM+4uXq+IAgNh9YYQWdc7LVDPDAEEAg==", + "domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", "requires": { - "commander": "^2.19.0" + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + } + }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" + }, + "hexo-util": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/hexo-util/-/hexo-util-3.3.0.tgz", + "integrity": "sha512-YvGngXijE2muEh5L/VI4Fmjqb+/yAkmY+VuyhWVoRwQu1X7bmWodsfYRXX7CUYhi5LqsvH8FAe/yBW1+f6ZX4Q==", + "requires": { + "camel-case": "^4.1.2", + "cross-spawn": "^7.0.3", + "deepmerge": "^4.2.2", + "highlight.js": "^11.6.0", + "htmlparser2": "^9.0.0", + "prismjs": "^1.29.0", + "strip-indent": "^3.0.0" + } + }, + "htmlparser2": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz", + "integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "entities": "^4.5.0" } } } @@ -3139,11 +3259,11 @@ "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==" }, "katex": { - "version": "0.16.4", - "resolved": "https://registry.npmmirror.com/katex/-/katex-0.16.4.tgz", - "integrity": "sha512-WudRKUj8yyBeVDI4aYMNxhx5Vhh2PjpzQw1GRu/LVGqL4m1AxwD1GcUp0IMbdJaf5zsjtj8ghP0DOQRYhroNkw==", + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", "requires": { - "commander": "^8.0.0" + "commander": "^8.3.0" }, "dependencies": { "commander": { diff --git a/package.json b/package.json index f2cae9e..bdddf61 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "hexo-generator-category": "^2.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-tag": "^2.0.0", - "hexo-math": "^4.0.0", + "hexo-math": "^5.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-markdown-it": "^7.1.1", "hexo-renderer-stylus": "^2.1.0", diff --git a/yarn.lock b/yarn.lock index 1ef900c..03379f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -141,15 +141,11 @@ command-exists@^1.2.8: version "1.2.9" resolved "https://registry.npmmirror.com/command-exists/-/command-exists-1.2.9.tgz" -commander@^2.19.0: - version "2.20.3" - resolved "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz" - commander@^5.1.0: version "5.1.0" resolved "https://registry.npmmirror.com/commander/-/commander-5.1.0.tgz" -commander@^8.0.0: +commander@^8.3.0: version "8.3.0" resolved "https://registry.npmmirror.com/commander/-/commander-8.3.0.tgz" @@ -262,7 +258,7 @@ domhandler@^4.2.0, domhandler@^4.2.2: dependencies: domelementtype "^2.2.0" -domhandler@^5.0.1, domhandler@^5.0.2: +domhandler@^5.0.2, domhandler@^5.0.3: version "5.0.3" resolved "https://registry.npmmirror.com/domhandler/-/domhandler-5.0.3.tgz" dependencies: @@ -276,13 +272,13 @@ domutils@^2.8.0: domelementtype "^2.2.0" domhandler "^4.2.0" -domutils@^3.0.1: - version "3.0.1" - resolved "https://registry.npmmirror.com/domutils/-/domutils-3.0.1.tgz" +domutils@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e" dependencies: dom-serializer "^2.0.0" domelementtype "^2.3.0" - domhandler "^5.0.1" + domhandler "^5.0.3" eastasianwidth@~0.2.0: version "0.2.0" @@ -310,10 +306,14 @@ entities@^3.0.1, entities@~3.0.1: version "3.0.1" resolved "https://registry.npmmirror.com/entities/-/entities-3.0.1.tgz" -entities@^4.2.0, entities@^4.3.0: +entities@^4.2.0: version "4.4.0" resolved "https://registry.npmmirror.com/entities/-/entities-4.4.0.tgz" +entities@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz" @@ -497,13 +497,13 @@ hexo-log@^3.0.0, hexo-log@^3.2.0: dependencies: picocolors "^1.0.0" -hexo-math@^4.0.0: - version "4.0.0" - resolved "https://registry.npmmirror.com/hexo-math/-/hexo-math-4.0.0.tgz" +hexo-math@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/hexo-math/-/hexo-math-5.0.0.tgz#ec2aef948eb0d403d2da42bdf40e1ba71cd8e70e" dependencies: - hexo-util "^2.2.0" - katex "^0.12.0" - mathjax "^3.0.5" + hexo-util "^3.3.0" + katex "^0.16.10" + mathjax "^3.2.2" hexo-pagination@3.0.0: version "3.0.0" @@ -557,7 +557,7 @@ hexo-theme-landscape@^0.0.3: version "0.0.3" resolved "https://registry.npmmirror.com/hexo-theme-landscape/-/hexo-theme-landscape-0.0.3.tgz" -hexo-util@^2.0.0, hexo-util@^2.2.0, hexo-util@^2.7.0: +hexo-util@^2.0.0, hexo-util@^2.7.0: version "2.7.0" resolved "https://registry.npmjs.org/hexo-util/-/hexo-util-2.7.0.tgz" dependencies: @@ -570,16 +570,15 @@ hexo-util@^2.0.0, hexo-util@^2.2.0, hexo-util@^2.7.0: prismjs "^1.17.1" strip-indent "^3.0.0" -hexo-util@^3.0.1: - version "3.0.1" - resolved "https://registry.npmmirror.com/hexo-util/-/hexo-util-3.0.1.tgz" +hexo-util@^3.0.1, hexo-util@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/hexo-util/-/hexo-util-3.3.0.tgz#448927fb22e167f2159306666cc2c7e82c777513" dependencies: - bluebird "^3.7.2" camel-case "^4.1.2" cross-spawn "^7.0.3" deepmerge "^4.2.2" highlight.js "^11.6.0" - htmlparser2 "^8.0.1" + htmlparser2 "^9.0.0" prismjs "^1.29.0" strip-indent "^3.0.0" @@ -625,14 +624,14 @@ htmlparser2@^7.0.0: domutils "^2.8.0" entities "^3.0.1" -htmlparser2@^8.0.1: - version "8.0.1" - resolved "https://registry.npmmirror.com/htmlparser2/-/htmlparser2-8.0.1.tgz" +htmlparser2@^9.0.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-9.1.0.tgz#cdb498d8a75a51f739b61d3f718136c369bc8c23" dependencies: domelementtype "^2.3.0" - domhandler "^5.0.2" - domutils "^3.0.1" - entities "^4.3.0" + domhandler "^5.0.3" + domutils "^3.1.0" + entities "^4.5.0" http-errors@2.0.0: version "2.0.0" @@ -724,17 +723,11 @@ jsonparse@^1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz" -katex@^0.12.0: - version "0.12.0" - resolved "https://registry.npmmirror.com/katex/-/katex-0.12.0.tgz" - dependencies: - commander "^2.19.0" - -katex@^0.16.4: - version "0.16.4" - resolved "https://registry.npmmirror.com/katex/-/katex-0.16.4.tgz" +katex@^0.16.10, katex@^0.16.4: + version "0.16.11" + resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.11.tgz#4bc84d5584f996abece5f01c6ad11304276a33f5" dependencies: - commander "^8.0.0" + commander "^8.3.0" linkify-it@^4.0.1: version "4.0.1" @@ -808,9 +801,9 @@ markdown-it@^13.0.1: mdurl "^1.0.1" uc.micro "^1.0.5" -mathjax@^3.0.5: +mathjax@^3.2.2: version "3.2.2" - resolved "https://registry.npmmirror.com/mathjax/-/mathjax-3.2.2.tgz" + resolved "https://registry.yarnpkg.com/mathjax/-/mathjax-3.2.2.tgz#c754d7b46a679d7f3fa03543d6b8bf124ddf9f6b" mdurl@^1.0.1: version "1.0.1"