markdown的表格中,如果某个cell内容过多,怎么折行

markdown的表格中,如果某个cell内容过多,怎么折行?

| Left Aligned  | Center Aligned  | Right Aligned |
|:------------- |:---------------:| -------------:|| col 3 is      | some wordy text |         $1600 |
| col 2 is      | centered        |           $12 |
| zebra stripes | are neat        |            $1 |
Left AlignedCenter AlignedRight Aligned
col 3 issome wordy text$1600
col 2 iscentered$12
zebra stripesare neat$1

如果我某个cell中的内容过长呢。怎么处理呢。麻烦大神现身,google了好久『markdown中表格内容折行』没有找到解决办法。

我自己试验的是(错误的):

| Left Aligned  | Center Aligned  | Right Aligned |
|:------------- |:---------------:| -------------:|| col 3 is      | some wordy text |         $1600 |
| col 2 is xxxx | centered        |           $12 |
| xxxxxxxx      |                 |               |
| zebra stripes | are neat        |            $1 |

得到的是:

Left AlignedCenter AlignedRight Aligned
col 3 issome wordy text$1600
col 2 is xxxxcentered$12
xxxxxxxx

zebra stripesare neat$1


临摹微笑
浏览 1374回答 1
1回答

繁花如伊

markdown原生的没有换行,也许某种变种的有,但起码原生没有。你可以用html的换行br。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript