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

 关圣钊 发布于 2022-11-27 18:02

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
2 个回答
  • 可以用html标签

    2022-11-27 18:26 回答
  • markdown原生的没有换行,也许某种变种的有,但起码原生没有。

    你可以用html的换行br。

    2022-11-27 18:26 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有