Skip to content

Commit d980996

Browse files
committed
Update docs about new configuration item
1 parent b04430d commit d980996

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@ IS_INPUT_FILE = false
10251025
command. Multiple extensions needs a comma as splitter.
10261026
- RENDER\_COMMAND: External command to render all matching extensions.
10271027
- IS\_INPUT\_FILE: **false** Input is not a standard input but a file param followed `RENDER_COMMAND`.
1028-
- DISABLE_SANITIZER: **false** Don't filter html tags and attributes if true. Don't change this to true except you know what that means.
1028+
- DISABLE_SANITIZER: **false** Don't filter html tags and attributes if true. This is insecure. Don't change this to true except you know what that means.
1029+
- USE_IFRAME: **false** Display the HTML with an embed iframe but not directly renderer.
10291030

10301031
Two special environment variables are passed to the render command:
10311032
- `GITEA_PREFIX_SRC`, which contains the current URL prefix in the `src` path tree. To be used as prefix for links.

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ IS_INPUT_FILE = false
318318
- FILE_EXTENSIONS: 关联的文档的扩展名,多个扩展名用都好分隔。
319319
- RENDER_COMMAND: 工具的命令行命令及参数。
320320
- IS_INPUT_FILE: 输入方式是最后一个参数为文件路径还是从标准输入读取。
321-
- DISABLE_SANITIZER: **false** 如果为 true 则不过滤 HTML 标签和属性。除非你知道这意味着什么,否则不要设置为 true。
321+
- DISABLE_SANITIZER: **false** 如果为 true 则不过滤 HTML 标签和属性。本功能可能引起 XSS 安全问题。除非你知道这意味着什么,否则不要设置为 true。
322+
- USE_IFRAME: **false** 采用iframe来渲染生成的HTML,还是直接在本页面渲染。
322323

323324
以下两个环境变量将会被传递给渲染命令:
324325

0 commit comments

Comments
 (0)