Skip to content

Commit

Permalink
修复新建表达式失败
Browse files Browse the repository at this point in the history
  • Loading branch information
2234839 committed Jun 11, 2024
1 parent 2b8bd4c commit eb2c7bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expr",
"version": "0.0.6",
"version": "0.0.7",
"type": "module",
"description": "",
"repository": "https://github.com/2234839/siyuan_expr",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "expr",
"author": "崮生_子虚",
"url": "https://github.com/2234839/siyuan_expr",
"version": "0.0.4",
"version": "0.0.6",
"minAppVersion": "2.10.3",
"backends": [
"all"
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ export default class Expr extends Plugin {
} else {
newKramdownAttr = newKramdownAttr.replace(
/}$/,
` custom-expr-value="${encodeHTML(String(evalValue))}"`,
` custom-expr-value="${encodeHTML(String(evalValue))}"` + "}",
);
}
// custom-expr-value="-0.56273369360008952"
/** 将求值结果更新到块文本 */
await updateBlock("markdown", String(evalValue + "\n" + newKramdownAttr), block.id);
dev(block.id,block.a_value, evalValue);
dev(block.id, block.a_value, evalValue);
}
}

Expand Down

0 comments on commit eb2c7bd

Please sign in to comment.