Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
1152958806@qq.com 2023-08-29 16:14:47 +08:00
commit efba4f0d86
2 changed files with 3 additions and 2 deletions

View File

@ -100,6 +100,7 @@
- 图片懒加载 [plugin-lazyload](https://github.com/liuzhihang/plugin-lazyload)
- 追番插件 [plugin-bilibili-bangumi](https://github.com/Roozenlz/plugin-bilibili-bangumi)
- 图库插件 [plugin-photos](https://github.com/halo-sigs/plugin-photos)
- Tool-Bench [Tool-Bench](https://github.com/DioxideCN/Tool-Bench)
> 更多插件请参见https://github.com/halo-sigs/awesome-halo

View File

@ -142,7 +142,7 @@ document.addEventListener("DOMContentLoaded", () => {
style: this.getAttribute("style") || ''
};
let htmlStr = `
<div class="note ${this.options.class} ${this.options.noIcon} ${this.options.style}">${this.innerHTML}</div>
<div class="note ${this.options.class} ${this.options.noIcon} ${this.options.style}">${this.innerHTML.trim().replace(/^(<br>)|(<br>)$/g, "")}</div>
`;
this.innerHTML = htmlStr;
}
@ -161,7 +161,7 @@ document.addEventListener("DOMContentLoaded", () => {
noIcon: this.getAttribute("noIcon") || ''
};
let htmlStr = `
<div class="tip ${this.options.class} ${this.options.noIcon}">${this.innerHTML}</div>
<div class="tip ${this.options.class} ${this.options.noIcon}">${this.innerHTML.trim().replace(/^(<br>)|(<br>)$/g, "")}</div>
`;
this.innerHTML = htmlStr;
}