Merge pull request #10 from JayFans2000/main

优化:调整MD样式,替换高亮插件提高兼容性
This commit is contained in:
Liu 宇阳
2024-12-30 20:38:27 +08:00
committed by GitHub
8 changed files with 82 additions and 397 deletions

284
package-lock.json generated
View File

@@ -18,6 +18,7 @@
"axios": "^1.7.2", "axios": "^1.7.2",
"compressorjs": "^1.2.1", "compressorjs": "^1.2.1",
"dicebear": "^9.2.1", "dicebear": "^9.2.1",
"exiftool-vendored": "^29.0.0",
"flatpickr": "^4.6.13", "flatpickr": "^4.6.13",
"headlessui": "^0.0.0", "headlessui": "^0.0.0",
"match-sorter": "^6.3.1", "match-sorter": "^6.3.1",
@@ -30,7 +31,7 @@
"react-router-dom": "^6.14.2", "react-router-dom": "^6.14.2",
"react-toastify": "^9.1.3", "react-toastify": "^9.1.3",
"rehype-callouts": "^1.4.1", "rehype-callouts": "^1.4.1",
"remark-flexible-markers": "^1.2.1", "remark-mark-highlight": "^0.1.1",
"sass": "^1.77.8", "sass": "^1.77.8",
"sort-by": "^0.0.2", "sort-by": "^0.0.2",
"vite-plugin-sass-dts": "^1.3.25", "vite-plugin-sass-dts": "^1.3.25",
@@ -717,6 +718,46 @@
"node": ">=18.0.0" "node": ">=18.0.0"
} }
}, },
"node_modules/@dicebear/converter/node_modules/@photostructure/tz-lookup": {
"version": "10.0.0",
"resolved": "https://registry.npmmirror.com/@photostructure/tz-lookup/-/tz-lookup-10.0.0.tgz",
"integrity": "sha512-8ZAjoj/irCuvUlyEinQ/HB6A8hP3bD1dgTOZvfl1b9nAwqniutFDHOQRcGM6Crea68bOwPj010f0Z4KkmuLHEA=="
},
"node_modules/@dicebear/converter/node_modules/exiftool-vendored": {
"version": "27.0.0",
"resolved": "https://registry.npmmirror.com/exiftool-vendored/-/exiftool-vendored-27.0.0.tgz",
"integrity": "sha512-/jHX8Jjadj0YJzpqnuBo1Yy2ln2hnRbBIc+3jcVOLQ6qhHEKsLRlfJ145Ghn7k/EcnfpDzVX3V8AUCTC8juTow==",
"deprecated": "only the latest version is supported",
"dependencies": {
"@photostructure/tz-lookup": "^10.0.0",
"@types/luxon": "^3.4.2",
"batch-cluster": "^13.0.0",
"he": "^1.2.0",
"luxon": "^3.4.4"
},
"optionalDependencies": {
"exiftool-vendored.exe": "12.85.0",
"exiftool-vendored.pl": "12.85.0"
}
},
"node_modules/@dicebear/converter/node_modules/exiftool-vendored.exe": {
"version": "12.85.0",
"resolved": "https://registry.npmmirror.com/exiftool-vendored.exe/-/exiftool-vendored.exe-12.85.0.tgz",
"integrity": "sha512-rWsKVp9oXsS79S3bfCNXKeEo4av0xcd7slk/TfPpCa5pojg8ZVXSVfPZMAAlhOuK63YXrKN/e3jRNReeGP+2Gw==",
"optional": true,
"os": [
"win32"
]
},
"node_modules/@dicebear/converter/node_modules/exiftool-vendored.pl": {
"version": "12.85.0",
"resolved": "https://registry.npmmirror.com/exiftool-vendored.pl/-/exiftool-vendored.pl-12.85.0.tgz",
"integrity": "sha512-AelZQCCfl0a0g7PYx90TqbNGlSu2zDbRfCTjGw6bBBYnJF0NUfUWVhTpa8XGe2lHx1KYikH8AkJaey3esAxMAg==",
"optional": true,
"os": [
"!win32"
]
},
"node_modules/@dicebear/core": { "node_modules/@dicebear/core": {
"version": "9.2.1", "version": "9.2.1",
"resolved": "https://registry.npmmirror.com/@dicebear/core/-/core-9.2.1.tgz", "resolved": "https://registry.npmmirror.com/@dicebear/core/-/core-9.2.1.tgz",
@@ -1881,10 +1922,9 @@
} }
}, },
"node_modules/@photostructure/tz-lookup": { "node_modules/@photostructure/tz-lookup": {
"version": "10.0.0", "version": "11.0.0",
"resolved": "https://registry.npmmirror.com/@photostructure/tz-lookup/-/tz-lookup-10.0.0.tgz", "resolved": "https://registry.npmmirror.com/@photostructure/tz-lookup/-/tz-lookup-11.0.0.tgz",
"integrity": "sha512-8ZAjoj/irCuvUlyEinQ/HB6A8hP3bD1dgTOZvfl1b9nAwqniutFDHOQRcGM6Crea68bOwPj010f0Z4KkmuLHEA==", "integrity": "sha512-QMV5/dWtY/MdVPXZs/EApqzyhnqDq1keYEqpS+Xj2uidyaqw2Nk/fWcsszdruIXjdqp1VoWNzsgrO6bUHU1mFw=="
"license": "CC0-1.0"
}, },
"node_modules/@pnpm/config.env-replace": { "node_modules/@pnpm/config.env-replace": {
"version": "1.1.0", "version": "1.1.0",
@@ -4065,38 +4105,34 @@
} }
}, },
"node_modules/exiftool-vendored": { "node_modules/exiftool-vendored": {
"version": "27.0.0", "version": "29.0.0",
"resolved": "https://registry.npmmirror.com/exiftool-vendored/-/exiftool-vendored-27.0.0.tgz", "resolved": "https://registry.npmmirror.com/exiftool-vendored/-/exiftool-vendored-29.0.0.tgz",
"integrity": "sha512-/jHX8Jjadj0YJzpqnuBo1Yy2ln2hnRbBIc+3jcVOLQ6qhHEKsLRlfJ145Ghn7k/EcnfpDzVX3V8AUCTC8juTow==", "integrity": "sha512-BW2Fr7okYP1tN7KIIREy8gOx9WggpPsbKc3BTAS4dLgSup50LjdQttxF9kyDP+27ZayllK+d0rfMYPAixPBtQw==",
"deprecated": "only the latest version is supported",
"license": "MIT",
"dependencies": { "dependencies": {
"@photostructure/tz-lookup": "^10.0.0", "@photostructure/tz-lookup": "^11.0.0",
"@types/luxon": "^3.4.2", "@types/luxon": "^3.4.2",
"batch-cluster": "^13.0.0", "batch-cluster": "^13.0.0",
"he": "^1.2.0", "he": "^1.2.0",
"luxon": "^3.4.4" "luxon": "^3.5.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"exiftool-vendored.exe": "12.85.0", "exiftool-vendored.exe": "13.0.0",
"exiftool-vendored.pl": "12.85.0" "exiftool-vendored.pl": "13.0.1"
} }
}, },
"node_modules/exiftool-vendored.exe": { "node_modules/exiftool-vendored.exe": {
"version": "12.85.0", "version": "13.0.0",
"resolved": "https://registry.npmmirror.com/exiftool-vendored.exe/-/exiftool-vendored.exe-12.85.0.tgz", "resolved": "https://registry.npmmirror.com/exiftool-vendored.exe/-/exiftool-vendored.exe-13.0.0.tgz",
"integrity": "sha512-rWsKVp9oXsS79S3bfCNXKeEo4av0xcd7slk/TfPpCa5pojg8ZVXSVfPZMAAlhOuK63YXrKN/e3jRNReeGP+2Gw==", "integrity": "sha512-4zAMuFGgxZkOoyQIzZMHv1HlvgyJK3AkNqjAgm8A8V0UmOZO7yv3pH49cDV1OduzFJqgs6yQ6eG4OGydhKtxlg==",
"license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
"win32" "win32"
] ]
}, },
"node_modules/exiftool-vendored.pl": { "node_modules/exiftool-vendored.pl": {
"version": "12.85.0", "version": "13.0.1",
"resolved": "https://registry.npmmirror.com/exiftool-vendored.pl/-/exiftool-vendored.pl-12.85.0.tgz", "resolved": "https://registry.npmmirror.com/exiftool-vendored.pl/-/exiftool-vendored.pl-13.0.1.tgz",
"integrity": "sha512-AelZQCCfl0a0g7PYx90TqbNGlSu2zDbRfCTjGw6bBBYnJF0NUfUWVhTpa8XGe2lHx1KYikH8AkJaey3esAxMAg==", "integrity": "sha512-+BRRzjselpWudKR0ltAW5SUt9T82D+gzQN8DdOQUgnSVWWp7oLCeTGBRptbQz+436Ihn/mPzmo/xnf0cv/Qw1A==",
"license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
"!win32" "!win32"
@@ -7753,72 +7789,6 @@
"url": "https://opencollective.com/unified" "url": "https://opencollective.com/unified"
} }
}, },
"node_modules/remark-flexible-markers": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/remark-flexible-markers/-/remark-flexible-markers-1.2.1.tgz",
"integrity": "sha512-yAqJ2bRDWfBC7G0A6lHsifMQpzeID10RQc5Pgm29jyAzdJQ7pJozDROeMEk7GW1KznSxIjO5be+fn7Dh+Fbo4A==",
"dependencies": {
"@types/mdast": "^4.0.3",
"unist-builder": "^4.0.0",
"unist-util-find-after": "^5.0.0",
"unist-util-find-all-after": "^5.0.0",
"unist-util-find-all-before": "^5.0.0",
"unist-util-find-between-all": "^1.0.5",
"unist-util-visit": "^5.0.0"
}
},
"node_modules/remark-flexible-markers/node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmmirror.com/@types/mdast/-/mdast-4.0.4.tgz",
"integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/remark-flexible-markers/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/remark-flexible-markers/node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/remark-flexible-markers/node_modules/unist-util-visit": {
"version": "5.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
"integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0",
"unist-util-visit-parents": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/remark-flexible-markers/node_modules/unist-util-visit-parents": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz",
"integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/remark-gemoji": { "node_modules/remark-gemoji": {
"version": "7.0.1", "version": "7.0.1",
"resolved": "https://registry.npmmirror.com/remark-gemoji/-/remark-gemoji-7.0.1.tgz", "resolved": "https://registry.npmmirror.com/remark-gemoji/-/remark-gemoji-7.0.1.tgz",
@@ -7851,6 +7821,11 @@
"url": "https://opencollective.com/unified" "url": "https://opencollective.com/unified"
} }
}, },
"node_modules/remark-mark-highlight": {
"version": "0.1.1",
"resolved": "https://registry.npmmirror.com/remark-mark-highlight/-/remark-mark-highlight-0.1.1.tgz",
"integrity": "sha512-ot2AE37OKO2YQTcqyZ8VatEGJV/7CXk/RPJHk2TEVm04pT+JLCnoQb4Yj1vdOv2y4ZK45cDylj19gYVHqHz7Tw=="
},
"node_modules/remark-math": { "node_modules/remark-math": {
"version": "5.1.1", "version": "5.1.1",
"resolved": "https://registry.npmmirror.com/remark-math/-/remark-math-5.1.1.tgz", "resolved": "https://registry.npmmirror.com/remark-math/-/remark-math-5.1.1.tgz",
@@ -8714,139 +8689,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/unist-builder": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/unist-builder/-/unist-builder-4.0.0.tgz",
"integrity": "sha512-wmRFnH+BLpZnTKpc5L7O67Kac89s9HMrtELpnNaE6TAobq5DTZZs5YaTQfAZBA9bFPECx2uVAPO31c+GVug8mg==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-builder/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/unist-util-find-after": {
"version": "5.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz",
"integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-after/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/unist-util-find-after/node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-all-after": {
"version": "5.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-find-all-after/-/unist-util-find-all-after-5.0.0.tgz",
"integrity": "sha512-nGmOYvTSdGcI4RvrUNfe0mOsqqbbJOtqCQsppsY9KZjmv3nwM3YRgNBwFPdZ8Y+iv9Z/2PDjR9u6u+uK62XTTg==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-all-after/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/unist-util-find-all-after/node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-all-before": {
"version": "5.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-find-all-before/-/unist-util-find-all-before-5.0.0.tgz",
"integrity": "sha512-zir6a7GsXfdn4YAWR4F3hLNKZjTjLBJurdyquysvmX38xbftS1+qwvEhutxxHLq0Pp1tW5V1TDiuj+qluuOnKw==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-all-before/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/unist-util-find-all-before/node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-find-between-all": {
"version": "1.0.5",
"resolved": "https://registry.npmmirror.com/unist-util-find-between-all/-/unist-util-find-between-all-1.0.5.tgz",
"integrity": "sha512-zqpIPPzhbG6fI5lqYZhS1UPsMvxV9IY6dwbizLHLPAGNb3pQT3mTvmzXpP1K2lmUh4bhUwAN4gkQcxhR/OLS4g==",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
}
},
"node_modules/unist-util-find-between-all/node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
},
"node_modules/unist-util-find-between-all/node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-generated": { "node_modules/unist-util-generated": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmmirror.com/unist-util-generated/-/unist-util-generated-2.0.1.tgz", "resolved": "https://registry.npmmirror.com/unist-util-generated/-/unist-util-generated-2.0.1.tgz",

View File

@@ -24,6 +24,7 @@
"axios": "^1.7.2", "axios": "^1.7.2",
"compressorjs": "^1.2.1", "compressorjs": "^1.2.1",
"dicebear": "^9.2.1", "dicebear": "^9.2.1",
"exiftool-vendored": "^29.0.0",
"flatpickr": "^4.6.13", "flatpickr": "^4.6.13",
"headlessui": "^0.0.0", "headlessui": "^0.0.0",
"match-sorter": "^6.3.1", "match-sorter": "^6.3.1",
@@ -36,7 +37,7 @@
"react-router-dom": "^6.14.2", "react-router-dom": "^6.14.2",
"react-toastify": "^9.1.3", "react-toastify": "^9.1.3",
"rehype-callouts": "^1.4.1", "rehype-callouts": "^1.4.1",
"remark-flexible-markers": "^1.2.1", "remark-mark-highlight": "^0.1.1",
"sass": "^1.77.8", "sass": "^1.77.8",
"sort-by": "^0.0.2", "sort-by": "^0.0.2",
"vite-plugin-sass-dts": "^1.3.25", "vite-plugin-sass-dts": "^1.3.25",

View File

@@ -1 +1 @@
<svg t="1735389452343" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31597" width="200" height="200"><path d="M746.666667 64a170.666667 170.666667 0 0 1 170.666666 170.666667v554.666666a170.666667 170.666667 0 0 1-170.666666 170.666667H298.666667a170.666667 170.666667 0 0 1-170.666667-170.666667V234.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h448z m0 74.666667H298.666667a96 96 0 0 0-95.893334 91.477333L202.666667 234.666667v554.666666a96 96 0 0 0 91.477333 95.893334L298.666667 885.333333h448a96 96 0 0 0 95.893333-91.477333L842.666667 789.333333V234.666667a96 96 0 0 0-91.477334-95.893334L746.666667 138.666667z" fill="#000000" p-id="31598"></path><path d="M224 325.333333a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 325.333333h117.333333zM224 624a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 624h117.333333zM693.333333 346.666667a37.333333 37.333333 0 0 1 37.205334 34.261333l0.128 3.072v256a37.333333 37.333333 0 0 1-74.538667 3.072L656 640V384c0-20.608 16.725333-37.333333 37.333333-37.333333z" fill="#000000" p-id="31599"></path></svg> <svg t="1735389452343" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31597" width="200" height="200"><path d="M746.666667 64a170.666667 170.666667 0 0 1 170.666666 170.666667v554.666666a170.666667 170.666667 0 0 1-170.666666 170.666667H298.666667a170.666667 170.666667 0 0 1-170.666667-170.666667V234.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h448z m0 74.666667H298.666667a96 96 0 0 0-95.893334 91.477333L202.666667 234.666667v554.666666a96 96 0 0 0 91.477333 95.893334L298.666667 885.333333h448a96 96 0 0 0 95.893333-91.477333L842.666667 789.333333V234.666667a96 96 0 0 0-91.477334-95.893334L746.666667 138.666667z" p-id="31598"></path><path d="M224 325.333333a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 325.333333h117.333333zM224 624a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 624h117.333333zM693.333333 346.666667a37.333333 37.333333 0 0 1 37.205334 34.261333l0.128 3.072v256a37.333333 37.333333 0 0 1-74.538667 3.072L656 640V384c0-20.608 16.725333-37.333333 37.333333-37.333333z" p-id="31599"></path></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -1 +0,0 @@
<svg t="1735390322315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="42453" width="200" height="200"><path d="M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z" fill="#272636" p-id="42454"></path></svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1 +1 @@
<svg t="1735389499433" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32675" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 160l-32 0L736 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L544 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L352 128c0-19.2-12.8-32-32-32S288 108.8 288 128l0 32L256 160C220.8 160 192 188.8 192 224l0 640c0 35.2 28.8 64 64 64l512 0c35.2 0 64-28.8 64-64L832 224C832 188.8 803.2 160 768 160zM768 864 256 864 256 224l512 0L768 864z" p-id="32676"></path><path d="M672 352 352 352c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 352 672 352z" p-id="32677"></path><path d="M672 512 352 512c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 512 672 512z" p-id="32678"></path><path d="M672 672 352 672c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 672 672 672z" p-id="32679"></path></svg> <svg t="1735389499433" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32675" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 160l-32 0L736 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L544 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L352 128c0-19.2-12.8-32-32-32S288 108.8 288 128l0 32L256 160C220.8 160 192 188.8 192 224l0 640c0 35.2 28.8 64 64 64l512 0c35.2 0 64-28.8 64-64L832 224C832 188.8 803.2 160 768 160zM768 864 256 864 256 224l512 0L768 864z" fill="#000000" p-id="32676"></path><path d="M672 352 352 352c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 352 672 352z" fill="#000000" p-id="32677"></path><path d="M672 512 352 512c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 512 672 512z" fill="#000000" p-id="32678"></path><path d="M672 672 352 672c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 672 672 672z" fill="#000000" p-id="32679"></path></svg>

Before

Width:  |  Height:  |  Size: 956 B

After

Width:  |  Height:  |  Size: 1016 B

View File

@@ -22,4 +22,8 @@
.CodeMirror { .CodeMirror {
@apply dark:text-white bg-white dark:bg-boxdark; @apply dark:text-white bg-white dark:bg-boxdark;
} }
.icon {
@apply dark:fill-white;
}
} }

View File

@@ -62,7 +62,7 @@
// 任务列表 // 任务列表
li.task-list-item { li.task-list-item {
@apply my-2.5; @apply my-2.5;
}; }
li:not(.task-list-item) { li:not(.task-list-item) {
@apply my-2.5; @apply my-2.5;
@@ -78,7 +78,7 @@
counter-reset: counter; counter-reset: counter;
} }
ol > li:not([id^="user-content-"]) { ol>li:not([id^="user-content-"]) {
&::before { &::before {
@apply inline-block w-4 h-4 mt-1 mr-1 leading-none rounded-full text-center text-sm border border-[#11181C] dark:border-gray; @apply inline-block w-4 h-4 mt-1 mr-1 leading-none rounded-full text-center text-sm border border-[#11181C] dark:border-gray;
@@ -87,7 +87,7 @@
content: counter(counter); content: counter(counter);
} }
& ol > li::before { & ol>li::before {
@apply inline-block ml-5 border-0 text-base mt-0 leading-normal; @apply inline-block ml-5 border-0 text-base mt-0 leading-normal;
content: counter(counter) "."; content: counter(counter) ".";
@@ -108,10 +108,15 @@
} }
} }
ol > li[id^="user-content-"] { ol>li[id^="user-content-"] {
@apply list-decimal ml-3; @apply list-decimal ml-3;
} }
// 高亮标记
mark {
@apply bg-[#dbfdad] dark:bg-[#9db47e];
}
// 提示块 // 提示块
.callout-content { .callout-content {
@apply pt-1; @apply pt-1;
@@ -156,172 +161,6 @@
} }
} }
input[type="checkbox"] {
width: 16px;
height: 16px;
border-radius: 4px;
position: relative;
cursor: not-allowed;
}
}.markdown-body {
pre {
margin: 15px 0;
code.hljs {
border-radius: 10px;
font-weight: 400;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply text-black dark:text-gray transition-colors;
}
h1 {
@apply text-2xl my-6 pb-3 border-b border-[#eee];
// &::before {
// content: "✨️";
// @apply pr-3;
// }
}
h2 {
@apply relative text-lg my-6;
// &::before {
// content: "";
// @apply absolute left-0 top-[50%] -translate-y-1/2 w-2 h-full bg-primary;
// }
}
h3 {
@apply relative text-lg my-5;
// &::before {
// content: "#";
// @apply absolute left-0 top-[50%] -translate-y-1/2 text-primary;
// }
}
h4,
h5,
h6 {
@apply relative text-lg my-3;
}
hr {
@apply my-5 border-[#eee] transition-colors;
}
p code,
ul code {
@apply bg-[rgba(13,110,253,0.1)] dark:bg-[#334052] text-[#0d6efd] rounded-md py-1 px-2 text-sm transition-colors;
}
// 任务列表
li.task-list-item {
@apply my-2.5;
};
li:not(.task-list-item) {
@apply my-2.5;
}
// 无序列表
ul:not(.contains-task-list) {
@apply list-disc ml-6;
}
// 有序列表
ol:not([start]) {
counter-reset: counter;
}
ol > li:not([id^="user-content-"]) {
&::before {
@apply inline-block w-4 h-4 mt-1 mr-1 leading-none rounded-full text-center text-sm border border-[#11181C] dark:border-gray;
counter-increment: counter;
content: counter(counter);
}
& ol > li::before {
@apply inline-block ml-5 border-0 text-base mt-0 leading-normal;
content: counter(counter) ".";
}
}
// 引用
blockquote {
@apply my-5 pl-4 bg-[rgba(246,248,250)] border-l-[4px] border-[#11181C] dark:bg-[rgba(246,248,250,0.1)];
}
// 脚注
.sr-only {
@apply text-[#EAB308] w-full overflow-visible my-10 before:content-[''];
&::before {
@apply block w-full h-[1px] bg-gray mb-2;
}
}
ol > li[id^="user-content-"] {
@apply list-decimal ml-3;
}
// 提示块
.callout-content {
@apply pt-1;
& > p {
@apply mb-0;
}
}
// 数学公式
.katex {
@apply text-base;
// font-family: ;
}
a {
@apply text-primary
}
p {
@apply leading-9 mb-2;
}
img {
@apply rounded-xl cursor-pointer transition-all mt-2;
}
strong {
@apply text-base;
}
table {
@apply w-full;
th {
@apply bg-[#f1f7fd] dark:bg-[#334052];
}
tr,
th,
td {
@apply border p-[10px_20px];
}
}
input[type="checkbox"] { input[type="checkbox"] {
width: 16px; width: 16px;
height: 16px; height: 16px;

View File

@@ -15,11 +15,11 @@ import 'highlight.js/styles/vs2015.css';
import 'katex/dist/katex.css'; import 'katex/dist/katex.css';
import rehypeCallouts from 'rehype-callouts'; import rehypeCallouts from 'rehype-callouts';
import 'rehype-callouts/theme/obsidian'; import 'rehype-callouts/theme/obsidian';
import remarkFlexibleMarkers from "remark-flexible-markers"; import { remarkMark } from 'remark-mark-highlight';
const markers = (): BytemdPlugin => { const markers = (): BytemdPlugin => {
return { return {
remark: (processor) => processor.use(remarkFlexibleMarkers), remark: (processor) => processor.use(remarkMark),
actions: [ actions: [
{ {
title: '标记', title: '标记',