Skip to content

Commit

Permalink
Update warning block in readme (#51)
Browse files Browse the repository at this point in the history
* Update README-ZH.md

* Update README-ZH.md

* Update README.md

* Update README-ZH.md
  • Loading branch information
Acylation authored Dec 25, 2023
1 parent f669938 commit 2799e88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 介绍

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2799e88

Please sign in to comment.