gpt4 book ai didi

markdown - 如何在 gitlab wiki markdown 表格单元格中插入新行

转载 作者:行者123 更新时间:2023-12-02 19:40:26 24 4
gpt4 key购买 nike

我正在尝试在 gitlab wiki 页面中插入一个表格。有没有办法在表格单元格中插入新行?

我尝试了以下方法,但没有成功。

| Tables        | Are                     | Cool  |
| ------------- |:-----------------------:| -----:|
| col 3 is | right-aligned <br> test | $1600 |

最佳答案

2021 年 9 月更新:

参见GitLab 14.3 (2021 年 9 月)

Edit a table’s structure visually in the new wiki editor

Edit a table’s structure visually in the new wiki editor

Editing a Markdown table that has 9 columns and 25 rows is one thing. But adding a tenth column to that table in Markdown? That involves very repetitive and error-prone edits to every row. One mistake or misplaced | and the table fails to render.

The new WYSIWYG Markdown editor in the wiki lets you quickly and easily insert a table using the button in the toolbar. After selecting the initial number of rows and columns, however, dealing with the structure of the table can be more difficult. In GitLab 14.3, you can now click on the caret icon in the top right corner of any selected cell to add or remove columns and rows, either before or after the selected cell. Now, as your content scales, the complexity doesn’t follow suit.

https://about.gitlab.com/images/14_3/wiki-editor-edit-table-structure.png -- Edit a table's structure visually in the new wiki editor

See Documentation and Issue.

<小时/>

2014 年原始答案:GitLab 中已引入表 Markdown commit 0093554a ,其中包括:

Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them.

GFM(GitHub Flavored Markdown)不直接支持 GFM Tables 单元格中的换行符.
您可以尝试将html代码设置为 in this question ,但这就是你的问题所说明的(尽管我会尝试其他格式良好的html元素,例如 <br /> ,如“Are self-closing tags valid in HTML5?e ”)。

关于markdown - 如何在 gitlab wiki markdown 表格单元格中插入新行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21678496/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com