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 Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are 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 Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is xxxx centered $12
xxxxxxxx
zebra stripes are neat $1
阅读 4.7k
2 个回答

markdown原生的没有换行,也许某种变种的有,但起码原生没有。

你可以用html的换行br。

新手上路,请多包涵

可以用html标签

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题