# text
对象介绍:
作为text对象被使用,支持plain_text
和hi_md
- "plain_text"模式:支持普通文本内容
- "hi_md"模式:支持富文本,markdown内容,详情参考Markdown模块
字段定义:
字段 | 必须 | 类型 | 取值 | 说明 |
---|---|---|---|---|
tag | 是 | String | "plain_text", "hi_md" | 元素标签 |
content | 是 | String | 文本内容 |
注意事项:"plain_text"全部支持,"hi_md"部分支持,具体如下表:
使用text对象的位置 | 字段 | 支持的类型 | 是否支持搜索 |
---|---|---|---|
button元素 | text | plain_text | 否 |
confirm对象 | title | plain_text | 否 |
confirm对象 | text | plain_text | 否 |
img对象 | alt | plain_text | 否 |
下拉选择 | placeholder | plain_text | 否 |
下拉选择 | options | plain_text | 否 |
内容模块 | text | plain_text、hi_md | 是 |
内容模块 | fields | plain_text、hi_md | 是 |
卡片标题 | title | plain_text | 是 |
图片模块 | alt | plain_text | 否 |
图片模块 | title | plain_text、hi_md | 是 |
备注模块 | text | plain_text、hi_md | 是 |
# 样式示例
- 普通文本
- 富文本
# json示例
{
...
"text": {
"tag":"plain_text",
"content":"普通文本"
},
...
"text": {
"content": "普通文本\n标准emoji 😁😢🌞💼🏆❌✅\n*斜体*\n**粗体**\n~~删除线~~\n[文字链接](https://www.feishu.cn)",
"tag": "hi_md"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12