Browse Source

fix(doc): escape for {{}}

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 2 years ago
parent
commit
1366af9b16

+ 2 - 0
docs/en_US/rules/sinks/builtin/edgex.md

@@ -39,7 +39,9 @@ Below optional configurations are supported, please check MQTT specification for
   - KeyPEMBlock
   - SkipCertVerify
 
+::: v-pre
 Notice that, the edgex action can support data templates to vary the result format, but the result of the data template must be in the object form of a JSON string, e.g. `"{\"key\":\"{{.key}}\"}"`. JSON strings in the form of arrays or non-JSON strings are not supported.
+:::
 
 ## Send to various targets
 

File diff suppressed because it is too large
+ 3 - 1
docs/en_US/rules/sinks/builtin/memory.md


+ 2 - 0
docs/zh_CN/rules/sinks/builtin/edgex.md

@@ -39,7 +39,9 @@
   - KeyPEMBlock
   - SkipCertVerify
 
+::: v-pre
 EdgeX 动作可支持数据模板对结果格式进行变化,但是数据模板的结果必须为 JSON 字符串的 object 形式,例如 `"{\"key\":\"{{.key}}\"}"`。数组形式的 JSON 字符串或者非 JSON 字符串都不支持。
+:::
 
 ## 发送到各种目标
 

+ 3 - 1
docs/zh_CN/rules/sinks/builtin/memory.md

@@ -28,4 +28,6 @@
 
 ## 数据模板
 
-内存动作和内存源之间的数据传输采用内部格式,不经过编解码以提高效率。因此,内存动作的格式相关配置项,除了数据模板之外都会被忽略。内存动作可支持数据模板对结果格式进行变化,但是数据模板的结果必须为 JSON 字符串的 object 形式,例如 `"{\"key\":\"{{.key}}\"}"`。数组形式的 JSON 字符串或者非 JSON 字符串都不支持。
+::: v-pre
+内存动作和内存源之间的数据传输采用内部格式,不经过编解码以提高效率。因此,内存动作的格式相关配置项,除了数据模板之外都会被忽略。内存动作可支持数据模板对结果格式进行变化,但是数据模板的结果必须为 JSON 字符串的 object 形式,例如 `"{\"key\":\"{{.key}}\"}"`。数组形式的 JSON 字符串或者非 JSON 字符串都不支持。
+:::