08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

30
node_modules/gitbook-plugin-mermaid-gb3/index.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
var mermaidRegex = /^```mermaid((.*[\r\n]+)+?)?```$/im;
function processMermaidBlockList(page) {
var match;
while ((match = mermaidRegex.exec(page.content))) {
var rawBlock = match[0];
var mermaidContent = match[1];
page.content = page.content.replace(rawBlock, '<div class="mermaid">' +
mermaidContent + '</div>');
}
return page;
}
module.exports = {
website: {
assets: './dist',
css: [
'mermaid/mermaid.css'
],
js: [
'book/plugin.js'
]
},
hooks: {
'page:before': processMermaidBlockList
}
};