Skip to content

Commit

Permalink
🔖 v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Nov 20, 2024
1 parent 46465c9 commit 816a085
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TODO

${content}
}}}
{: style="border: 2px dashed var(--b3-theme-on-background);"}
{: style="border: 2px dashed var(--b3-border-color);"}
```
- ✨脚注块引默认模板完善,从“注”改为“[注]”
- 📝完善文档
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Implement footnotes and remarks function using SiYuan's blockref.

${content}
}}}
{: style="border: 2px dashed var(--b3-theme-on-background);"}
{: style="border: 2px dashed var(--b3-border-color);"}
```


Expand Down
2 changes: 1 addition & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

${content}
}}}
{: style="border: 2px dashed var(--b3-theme-on-background);"}
{: style="border: 2px dashed var(--b3-border-color);"}
```

![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/PixPin_2024-11-18_16-46-42-2024-11-18.png)
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class PluginFootnote extends Plugin {
\${content}
}}}
{: style="border: 2px dashed var(--b3-theme-on-background);"}}`,
{: style="border: 2px dashed var(--b3-border-color);"}}`,
type: "textarea",
title: this.i18n.settings.template.title,
description: this.i18n.settings.template.description,
Expand Down Expand Up @@ -291,14 +291,14 @@ export default class PluginFootnote extends Plugin {
templates = templates.replace(/\$\{content\}/g, zeroWhite);

// 插入脚注
let children = await getChildBlocks(headingID);
let back;
switch (this.settingUtils.get("order")) {
case '2':
// 倒序
back = await appendBlock("markdown", templates, headingID);
break;
default:
let children = await getChildBlocks(headingID);
// 默认顺序插入
if (children.length > 0) {
// 在最后一个子块后面添加(使用 insertBlock 并指定 previousID)
Expand Down Expand Up @@ -340,10 +340,10 @@ export default class PluginFootnote extends Plugin {

// 保存脚注块引添加的自定义属性值
saveViaTransaction(memoELement)

// 关闭工具栏
protyle.toolbar.element.classList.add("fn__none")

// 显示块引浮窗,来填写内容
this.addFloatLayer({
ids: [newBlockId],
Expand Down

0 comments on commit 816a085

Please sign in to comment.