summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index a448924..52f3a1b 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,4 +1,4 @@
-import { EvalActions, evalExpr } from './eval'
+import { EvalActions, evalExpr, evalExprAsString } from './eval'
import {
extractDeclaration,
DeclarationEval,
@@ -274,7 +274,7 @@ export const manageElement = async (
try {
const exprs = parse(text)
$element.textContent =
- (exprs[0] ? await evalExpr(exprs[0], actions) : text) ?? text
+ (exprs[0] ? await evalExprAsString(exprs[0], actions) : text) ?? text
} catch (e) {
$element.textContent = text
}