From 2799e880168bcf26d82d70a3354b5d1382e7cb08 Mon Sep 17 00:00:00 2001 From: Chiyu Liang <532117255@qq.com> Date: Mon, 25 Dec 2023 17:11:15 +0800 Subject: [PATCH] Update warning block in readme (#51) * Update README-ZH.md * Update README-ZH.md * Update README.md * Update README-ZH.md --- README-ZH.md | 8 +++++--- README.md | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README-ZH.md b/README-ZH.md index 62b2490..f215e6a 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -34,10 +34,12 @@ ![在 SMILES 代码块中编写内联 Dataview](https://github-production-user-asset-6210df.s3.amazonaws.com/73122375/292734194-d227fdb8-9c8f-4c87-965a-73c0f2445993.png) -> [!Note] +> [!Warning] > 本功能依赖 Dataview 插件本体,若要使用本功能,请确保您已安装并启用 Dataview 插件 -> 运行 DataviewJS 语句的功能调用了 `eval()` 函数,具有一定的风险。请确保您输入/粘贴的代码是受信任的,防止意外执行恶意代码 -> 若您希望在启用 Dataview 查询式 (Queries) 时禁用 DataviewJS,请在 Dataview 插件设置中禁用 `Enable JavaScript Queries` 或 `Enable Inline JavaScript Queries` +> +> 运行 DataviewJS 需要调用 `eval()` 函数,具有一定的风险。请确保您输入/粘贴的代码是受信任的 +> +> 若您希望在启用 Dataview 查询式 (Queries) 时禁用 DataviewJS,请在 Dataview 插件设置中禁用 `Enable JavaScript Queries` 或 `Enable Inline JavaScript Queries` 选项 ## SMILES 介绍 diff --git a/README.md b/README.md index 6717c99..35f4c78 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,12 @@ Inline Dataview queries and DataviewJS rendering can be enabled in the settings ![Dataview lines in smiles block](https://github-production-user-asset-6210df.s3.amazonaws.com/73122375/292734194-d227fdb8-9c8f-4c87-965a-73c0f2445993.png) -> [!Note] +> [!Warning] > This feature is dependent on the Dataview plugin. Please ensure that you have installed and enabled it. -> The execution of DataviewJS is implemented by calling `eval()` at the bottom,which is known to have safety issues.To avoid unintended execution, only trusted code lines should be passed. -> If you wish to disable DataviewJS rendering, you can toggle off the `Enable JavaScript Queries` or `Enable Inline JavaScript Queries` options through the settings tab of the Dataview plugin. +> +> The execution of DataviewJS is implemented by calling `eval()` at the bottom, which is known to have safety issues.To avoid unintended execution, only trusted code lines should be passed. +> +> If you wish to disable DataviewJS rendering, you can toggle off the `Enable JavaScript Queries` or `Enable Inline JavaScript Queries` options through the Dataview plugin settings. ## Introduction on SMILES