# 标题

字号20px并加粗的文本节点

![image.png](https://api.apifox.com/api/v1/projects/5440720/resources/476524/image-preview)
文字的类型能选择`text`或者`markdown`，同文本节点一样，如果是`markdown`类型的话，也支持插入HTML节点。

## 数据结构

```typescript
interface TextNode {
  type: 'plain-text' | 'markdown';
  text: string;
}

interface MdHeader {
  type: 'header';
  content: TextNode
}
```

```js
{
  "type": "header",
  "content": {
    "text": "标题文本内容",
    "type": "plain-text"
  }
}
```
