上传文件至 static

This commit is contained in:
2025-06-06 16:46:40 +08:00
parent ca7f04be2c
commit b6bc18a2c3
5 changed files with 1400 additions and 0 deletions

16
static/marked.min.js vendored Normal file
View File

@ -0,0 +1,16 @@
// Simplified marked.min.js for local testing
var marked = {
parse: function (markdownString) {
// Basic markdown to HTML conversion for testing
return markdownString
.replace(/^# (.*$)/gim, '<h1>$1</h1>')
.replace(/^## (.*$)/gim, '<h2>$1</h2>')
.replace(/^### (.*$)/gim, '<h3>$1</h3>')
.replace(/\*\*(.*?)\*\*/gim, '<strong>$1</strong>')
.replace(/\*(.*?)\*/gim, '<em>$1</em>')
.replace(/\[(.*?)\]\((.*?)\)/gim, '<a href="$2">$1</a>')
.replace(/`([^`]+)`/g, '<code>$1</code>')
.replace(/```([\s\S]*?)```/g, '<pre><code>$1</code></pre>')
.replace(/\n/g, '<br>');
}
};