Vanessa 2025-12-01 10:24:55 +08:00
parent fa534d3e8b
commit 82db998268
6 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,8 @@
document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsAnt" style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"> document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsAnt" style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
<defs> <defs>
<symbol id="iconCallout" viewBox="0 0 32 32">
<path d="M20.018 28.589h-8.036c-0.147 0-0.268 0.12-0.268 0.268v1.071c0 0.593 0.479 1.071 1.071 1.071h6.429c0.593 0 1.071-0.479 1.071-1.071v-1.071c0-0.147-0.12-0.268-0.268-0.268zM16 1c-6.064 0-10.982 4.919-10.982 10.982 0 4.065 2.21 7.614 5.491 9.512v3.881c0 0.593 0.479 1.071 1.071 1.071h8.839c0.593 0 1.071-0.479 1.071-1.071v-3.881c3.281-1.898 5.491-5.448 5.491-9.512 0-6.064-4.919-10.982-10.982-10.982zM20.282 19.409l-1.202 0.696v3.931h-6.161v-3.931l-1.202-0.696c-2.635-1.523-4.289-4.329-4.289-7.426 0-4.734 3.837-8.571 8.571-8.571s8.571 3.837 8.571 8.571c0 3.097-1.654 5.903-4.289 7.426z"></path>
</symbol>
<symbol id="iconInclude" viewBox="0 0 32 32"> <symbol id="iconInclude" viewBox="0 0 32 32">
<path d="M22.091 2.435v7.747h7.582v13.65h-2.637v-11.013h-4.945v9.156h-9.436v5.11h11.036v2.637h-13.674v-7.747h-7.582v-13.65h2.637v11.013h4.945v-9.156h9.436l0-5.11h-11.036v-2.637h13.674zM19.454 12.82h-6.799v6.518l6.799 0v-6.518z"></path> <path d="M22.091 2.435v7.747h7.582v13.65h-2.637v-11.013h-4.945v9.156h-9.436v5.11h11.036v2.637h-13.674v-7.747h-7.582v-13.65h2.637v11.013h4.945v-9.156h9.436l0-5.11h-11.036v-2.637h13.674zM19.454 12.82h-6.799v6.518l6.799 0v-6.518z"></path>
<path d="M1 1h5.604v5.604h-5.604zM25.396 1h5.604v5.604h-5.604zM25.396 25.396h5.604v5.604h-5.604zM1 25.396h5.604v5.604h-5.604z"></path> <path d="M1 1h5.604v5.604h-5.604zM25.396 1h5.604v5.604h-5.604zM25.396 25.396h5.604v5.604h-5.604zM1 25.396h5.604v5.604h-5.604z"></path>

View file

@ -2,5 +2,5 @@
"name": "ant", "name": "ant",
"author": "Vanessa", "author": "Vanessa",
"url": "https://github.com/Vanessa219", "url": "https://github.com/Vanessa219",
"version": "1.35.0" "version": "1.36.0"
} }

View file

@ -28,11 +28,17 @@
<body> <body>
<h2>SiYuan</h2> <h2>SiYuan</h2>
<div class="fn__clear"> <div class="fn__clear">
<div>
<svg>
<use xlink:href="#iconCallout"></use>
</svg>
iconCallout
</div>
<div> <div>
<svg> <svg>
<use xlink:href="#iconInclude"></use> <use xlink:href="#iconInclude"></use>
</svg> </svg>
iconGroups iconInclude
</div> </div>
<div> <div>
<svg> <svg>

View file

@ -1,5 +1,8 @@
document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"> document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
<defs> <defs>
<symbol id="iconCallout" viewBox="0 0 32 32">
<path d="M8.345 27.982h5.325c0 1.464-1.198 2.663-2.663 2.663s-2.663-1.198-2.663-2.663zM5.682 26.651h10.651v-2.663h-10.651v2.663zM20.992 14.003c0 5.086-3.541 7.801-5.019 8.654h-9.932c-1.478-0.852-5.019-3.568-5.019-8.654 0-5.512 4.473-9.985 9.985-9.985s9.985 4.473 9.985 9.985zM18.33 14.003c0-4.034-3.288-7.322-7.322-7.322s-7.322 3.288-7.322 7.322c0 3.288 1.984 5.179 3.129 5.991h8.387c1.145-0.812 3.129-2.703 3.129-5.991zM27.476 11.167l-1.824 0.839 1.824 0.839 0.839 1.824 0.839-1.824 1.824-0.839-1.824-0.839-0.839-1.824-0.839 1.824zM24.321 9.343l1.251-2.743 2.743-1.251-2.743-1.251-1.251-2.743-1.251 2.743-2.743 1.251 2.743 1.251 1.251 2.743z"></path>
</symbol>
<symbol id="iconInclude" viewBox="0 0 32 32"> <symbol id="iconInclude" viewBox="0 0 32 32">
<path d="M22.091 2.435v7.747h7.582v13.65h-2.637v-11.013h-4.945v9.156h-9.436v5.11h11.036v2.637h-13.674v-7.747h-7.582v-13.65h2.637v11.013h4.945v-9.156h9.436l0-5.11h-11.036v-2.637h13.674zM19.454 12.82h-6.799v6.518l6.799 0v-6.518z"></path> <path d="M22.091 2.435v7.747h7.582v13.65h-2.637v-11.013h-4.945v9.156h-9.436v5.11h11.036v2.637h-13.674v-7.747h-7.582v-13.65h2.637v11.013h4.945v-9.156h9.436l0-5.11h-11.036v-2.637h13.674zM19.454 12.82h-6.799v6.518l6.799 0v-6.518z"></path>
<path d="M1 1h5.604v5.604h-5.604zM25.396 1h5.604v5.604h-5.604zM25.396 25.396h5.604v5.604h-5.604zM1 25.396h5.604v5.604h-5.604z"></path> <path d="M1 1h5.604v5.604h-5.604zM25.396 1h5.604v5.604h-5.604zM25.396 25.396h5.604v5.604h-5.604zM1 25.396h5.604v5.604h-5.604z"></path>

View file

@ -2,5 +2,5 @@
"name": "material", "name": "material",
"author": "Vanessa", "author": "Vanessa",
"url": "https://github.com/Vanessa219", "url": "https://github.com/Vanessa219",
"version": "1.35.0" "version": "1.36.0"
} }

View file

@ -130,6 +130,12 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
id: "quote", id: "quote",
value: "> " + Lute.Caret, value: "> " + Lute.Caret,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconQuote"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.quote}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.quote.custom, ">")}</div>`, html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconQuote"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.quote}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.quote.custom, ">")}</div>`,
},{
filter: [window.siyuan.languages.callout, "callout", "ts", "提示", "tishi"],
id: "callout",
value: `> [!NOTE]
> ${Lute.Caret}`,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconCallout"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.callout}</span></div>`,
}, { }, {
filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"], filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"],
id: "code", id: "code",