mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
This commit is contained in:
parent
c3f651b6c9
commit
dd86b42b7d
@ -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…
Reference in New Issue
Block a user