mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
c3f651b6c9
commit
dd86b42b7d
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
|
||||||
const attrsResult: IObject = {};
|
const attrsResult: IObject = {};
|
||||||
Object.keys(data.new).forEach(key => {
|
Object.keys(data.new).forEach(key => {
|
||||||
attrsResult[key] = data.new[key];
|
attrsResult[key] = data.new[key];
|
||||||
const escapeHTML = data.new[key];
|
const escapeHTML = Lute.EscapeHTMLStr(data.new[key]);
|
||||||
if (key === "bookmark") {
|
if (key === "bookmark") {
|
||||||
nodeAttrHTML += `<div class="protyle-attr--bookmark">${escapeHTML}</div>`;
|
nodeAttrHTML += `<div class="protyle-attr--bookmark">${escapeHTML}</div>`;
|
||||||
} else if (key === "name") {
|
} else if (key === "name") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue