⬆️ mermaid
This commit is contained in:
parent
7fb62cea90
commit
88ea0c9222
5 changed files with 11 additions and 24 deletions
|
@ -6,7 +6,7 @@
|
|||
"title": "Formatting elements",
|
||||
"title-img": "background-color:#269;background-image: linear-gradient(white 2px, transparent 2px),linear-gradient(90deg, white 2px, transparent 2px),linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;",
|
||||
"type": "doc",
|
||||
"updated": "20220521234603"
|
||||
"updated": "20220602101151"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3464,7 +3464,7 @@
|
|||
"IsFencedCodeBlock": true,
|
||||
"Properties": {
|
||||
"id": "20211221131201-600dcnw",
|
||||
"updated": "20211221130624"
|
||||
"updated": "20220602101151"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3476,12 +3476,8 @@
|
|||
"CodeBlockInfo": "bWVybWFpZA=="
|
||||
},
|
||||
{
|
||||
"ID": "20220307092214-ajekwh5",
|
||||
"Type": "NodeCodeBlockCode",
|
||||
"Data": "gitGraph:\noptions\n{\n \u0026quot;nodeSpacing\u0026quot;: 150,\n \u0026quot;nodeRadius\u0026quot;: 10\n}\nend\ncommit\nbranch newbranch\ncheckout newbranch\ncommit\ncommit\ncheckout master\ncommit\ncommit\nmerge newbranch",
|
||||
"Properties": {
|
||||
"id": "20220307092214-ajekwh5"
|
||||
}
|
||||
"Data": " gitGraph\n commit\n commit\n branch develop\n commit\n commit\n commit\n checkout main\n commit\n commit"
|
||||
},
|
||||
{
|
||||
"Type": "NodeCodeBlockFenceCloseMarker",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"title": "排版元素",
|
||||
"title-img": "background-color: hsl(2, 57%, 40%);background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(270deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(125deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);",
|
||||
"type": "doc",
|
||||
"updated": "20220521234027"
|
||||
"updated": "20220602100957"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3438,7 +3438,7 @@
|
|||
"IsFencedCodeBlock": true,
|
||||
"Properties": {
|
||||
"id": "20211221130609-z04k7rn",
|
||||
"updated": "20211221130624"
|
||||
"updated": "20220602100957"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3450,12 +3450,8 @@
|
|||
"CodeBlockInfo": "bWVybWFpZA=="
|
||||
},
|
||||
{
|
||||
"ID": "20220307091943-5q3bn4j",
|
||||
"Type": "NodeCodeBlockCode",
|
||||
"Data": "gitGraph:\noptions\n{\n \u0026quot;nodeSpacing\u0026quot;: 150,\n \u0026quot;nodeRadius\u0026quot;: 10\n}\nend\ncommit\nbranch newbranch\ncheckout newbranch\ncommit\ncommit\ncheckout master\ncommit\ncommit\nmerge newbranch",
|
||||
"Properties": {
|
||||
"id": "20220307091943-5q3bn4j"
|
||||
}
|
||||
"Data": " gitGraph\n commit\n commit\n branch develop\n commit\n commit\n commit\n checkout main\n commit\n commit"
|
||||
},
|
||||
{
|
||||
"Type": "NodeCodeBlockFenceCloseMarker",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"id": "20211226121319-emrk2yy",
|
||||
"title": "排版元素",
|
||||
"title-img": "background-color: hsl(2, 57%, 40%);background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(270deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(125deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);",
|
||||
"updated": "20220521234434"
|
||||
"updated": "20220602101300"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3419,7 +3419,7 @@
|
|||
"IsFencedCodeBlock": true,
|
||||
"Properties": {
|
||||
"id": "20211226122008-4u0uxuf",
|
||||
"updated": "20211221130624"
|
||||
"updated": "20220602101300"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -3431,12 +3431,8 @@
|
|||
"CodeBlockInfo": "bWVybWFpZA=="
|
||||
},
|
||||
{
|
||||
"ID": "20220307092237-7c49s02",
|
||||
"Type": "NodeCodeBlockCode",
|
||||
"Data": "gitGraph:\noptions\n{\n \u0026quot;nodeSpacing\u0026quot;: 150,\n \u0026quot;nodeRadius\u0026quot;: 10\n}\nend\ncommit\nbranch newbranch\ncheckout newbranch\ncommit\ncommit\ncheckout master\ncommit\ncommit\nmerge newbranch",
|
||||
"Properties": {
|
||||
"id": "20220307092237-7c49s02"
|
||||
}
|
||||
"Data": "gitGraph\n commit\n commit\n branch develop\n commit\n commit\n commit\n checkout main\n commit\n commit"
|
||||
},
|
||||
{
|
||||
"Type": "NodeCodeBlockFenceCloseMarker",
|
||||
|
|
|
@ -18,7 +18,7 @@ export const mermaidRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
|
|||
if (mermaidElements.length === 0) {
|
||||
return;
|
||||
}
|
||||
addScript(`${cdn}/js/mermaid/mermaid.min.js?v=0.0.0`, "protyleMermaidScript").then(() => {
|
||||
addScript(`${cdn}/js/mermaid/mermaid.min.js?v=9.1.1`, "protyleMermaidScript").then(() => {
|
||||
const config: any = {
|
||||
securityLevel: "loose", // 升级后无 https://github.com/siyuan-note/siyuan/issues/3587,可使用该选项
|
||||
altFontFamily: "sans-serif",
|
||||
|
|
3
app/stage/protyle/js/mermaid/mermaid.min.js
vendored
3
app/stage/protyle/js/mermaid/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue