Merge pull request #2465 from ZhenShuo2021/feat/timeline-md

 Feat(timeline): support markdown content
This commit is contained in:
Nuno C.
2025-09-15 23:08:24 +01:00
committed by GitHub
5 changed files with 17 additions and 8 deletions

View File

@@ -721,6 +721,7 @@ The `timeline` creates a visual timeline that can be used in different use-cases
<!-- prettier-ignore-start -->
| Parameter | Description |
| ----------- | -------------------------------------------- |
| `md` | render the content as Markdown (true/false) |
| `icon` | the icon to be used in the timeline visuals. |
| `header` | header for each entry |
| `badge` | text to place within the top right badge |

View File

@@ -718,6 +718,7 @@ B-->C[利益]
<!-- prettier-ignore-start -->
| パラメータ | 説明 |
| ----------- | -------------------------------------------- |
| `md` | コンテンツを Markdown としてレンダリングする (true/false) |
| `icon` | タイムラインのビジュアルで使用するアイコン |
| `header` | 各エントリのヘッダーー |
| `badge` | 右上のバッジ内に配置するテキスト |

View File

@@ -728,7 +728,8 @@ The `timeline` creates a visual timeline that can be used in different use-cases
<!-- prettier-ignore-start -->
| Parameter | Description |
| ----------- | -------------------------------------------- |
| `icon` | the icon to be used in the timeline visuals. |
| `md` | render the content as Markdown (true/false) |
| `icon` | the icon to be used in the timeline visuals |
| `header` | header for each entry |
| `badge` | text to place within the top right badge |
| `subheader` | entry's subheader |

View File

@@ -729,12 +729,13 @@ B-->C[Profit]
`timeline` 创建了一个可视化时间线,用于展示专业经验、项目成就等。 `timeline` 简码依赖于 `timelineItem` 子简码来定义主时间线中的每个项目。每个项目可以具有以下属性。
<!-- prettier-ignore-start -->
| 参数 | 功能 |
| ----------- | ------------------------ |
| `icon` | 要在时间线中使用的图标。 |
| `header` | 每个条目的标题 |
| `badge` | 放置在右上角徽章内的文本 |
| `subheader` | 每个条目的副标题 |
| 参数 | 功能 |
| ----------- | ----------------------------------- |
| `md` | 将内容渲染为 Markdown (true/false) |
| `icon` | 要在时间线中使用的图标 |
| `header` | 每个条目的标题 |
| `badge` | 放置在右上角徽章内的文本 |
| `subheader` | 每个条目的副标题 |
<!-- prettier-ignore-end -->