我有以下细胞在markdown表:
something | something that's rather long and goes on for a very long time | something else |
---|
我希望能够在中间行插入一个断点,这样中间的列就不会那么宽。我在Markdown怎么做呢?我需要使用HTML表格代替吗?
我有以下细胞在markdown表:
something | something that's rather long and goes on for a very long time | something else |
---|
我希望能够在中间行插入一个断点,这样中间的列就不会那么宽。我在Markdown怎么做呢?我需要使用HTML表格代替吗?
当前回答
使用<br/>。例如:
Change log, upgrade version
Dependency | Old version | New version |
---------- | ----------- | -----------
Spring Boot | `1.3.5.RELEASE` | `1.4.3.RELEASE`
Gradle | `2.13` | `3.2.1`
Gradle plugin <br/>`com.gorylenko.gradle-git-properties` | `1.4.16` | `1.4.17`
`org.webjars:requirejs` | `2.2.0` | `2.3.2`
`org.webjars.npm:stompjs` | `2.3.3` | `2.3.3`
`org.webjars.bower:sockjs-client` | `1.1.0` | `1.1.1`
URL: https://github.com/donhuvy/lsb/wiki
其他回答
只为那些想在吉拉身上这么做的人。只需在每一行的末尾添加\\,就会创建一个新的行:
|Something|Something else \\ that's rather long|Something else|
将渲染这个:
来源:Jira的短信中断
使用<br/>。例如:
Change log, upgrade version
Dependency | Old version | New version |
---------- | ----------- | -----------
Spring Boot | `1.3.5.RELEASE` | `1.4.3.RELEASE`
Gradle | `2.13` | `3.2.1`
Gradle plugin <br/>`com.gorylenko.gradle-git-properties` | `1.4.16` | `1.4.17`
`org.webjars:requirejs` | `2.2.0` | `2.3.2`
`org.webjars.npm:stompjs` | `2.3.3` | `2.3.3`
`org.webjars.bower:sockjs-client` | `1.1.0` | `1.1.1`
URL: https://github.com/donhuvy/lsb/wiki
使用HTML换行符(<br />)强制在表格单元格中换行:
| something | something that's rather long and <br />goes on for a very long time | something else |
|-----------|---------------------------------------------------------------|----------------|
呈现:
something | something that's rather long and goes on for a very long time |
something else |
---|
当导出到HTML时,使用<br>可以工作。然而,如果你使用pandoc导出到LaTeX/PDF,你应该使用网格表:
+---------------+---------------+--------------------+
| Fruit | Price | Advantages |
+===============+===============+====================+
| Bananas | first line\ | first line\ |
| | next line | next line |
+---------------+---------------+--------------------+
| Bananas | first line\ | first line\ |
| | next line | next line |
+---------------+---------------+--------------------+