johnxnguyen / Down

Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark.
Other
2.24k stars 319 forks source link

Table can not rendering #299

Open Tiaotiaotiao opened 7 months ago

Tiaotiaotiao commented 7 months ago

I am use in iOS I downloaded the code and it started running

I use the following example to test:

要创建一个表格,我们可以使用不同的方式,例如文字描述、ASCII艺术、Markdown、HTML等。以下是几个不同格式的例子。\n\n### 文字描述的表格\n设想我们需要表格来记录一个公司的员工信息。表格将包含姓名、部门和电子邮件地址三列。\n\n姓名 | 部门 | 电子邮件\n------|----------|------------------\nJohn Doe | 营销 | johndoe@example.com\nJane Smith | 技术 | janesmith@example.com\nAlex Johnson | 人力资源 | alexjohnson@example.com\n\n### ASCII艺术表格\n\n```\n+----------------+----------+------------------------+\n| 姓名 | 部门 | 电子邮件 |\n+----------------+----------+------------------------+\n| John Doe | 营销 | johndoe@example.com |\n+----------------+----------+------------------------+\n| Jane Smith | 技术 | janesmith@example.com |\n+----------------+----------+------------------------+\n| Alex Johnson | 人力资源 | alexjohnson@example.com |\n+----------------+----------+------------------------+\n```\n\n### Markdown格式表格\n\n```markdown\n| 姓名 | 部门 | 电子邮件 |\n| ----------- | ------ | ----------------------- |\n| John Doe | 营销 | johndoe@example.com |\n| Jane Smith | 技术 | janesmith@example.com |\n| Alex Johnson| 人力资源| alexjohnson@example.com |\n```\n\n### HTML格式表格\n\n```html\n<table>\n <tr>\n <th>姓名</th>\n <th>部门</th>\n <th>电子邮件</th>\n </tr>\n <tr>\n <td>John Doe</td>\n <td>营销</td>\n <td>johndoe@example.com</td>\n </tr>\n <tr>\n <td>Jane Smith</td>\n <td>技术</td>\n <td>janesmith@example.com</td>\n </tr>\n <tr>\n <td>Alex Johnson</td>\n <td>人力资源</td>\n <td>alexjohnson@example.com</td>\n </tr>\n</table>\n```\n\n您可以根据您的需要和情况,选择最适合您的表格类型并进行调整。如果您需要在特定软件中创建表格(如Microsoft Word、Excel、Google Sheets或其他),则操作步骤会有所不同。

Display as follows

截屏 2024-01-18 10 03 02

Elamuruga commented 5 months ago

@johnxnguyen Could please help regarding this issue? Thanks in advance

johnxnguyen commented 3 months ago

Hi, apologies for the long delay. Down uses the the Commonmark spec, which doesn't support tables, unfortunately.