Markdown 快速生成表格
一、md原生
这种写法出来效果就是如下:
| 水果 | 价格 | 数量 |
|---|---|---|
| 香蕉 | 1 | 5 |
| 苹果 | 1 | 6 |
| 草莓 | 1 | 7 |
二、html表格
<table>
<tr>
<th>设备</th>
<th>设备文件名</th>
<th>文件描述符</th>
<th>类型</th>
</tr>
<tr>
<th>键盘</th>
<th>/dev/stdin</th>
<th>0</th>
<th>标准输入</th>
</tr>
<tr>
<th>显示器</th>
<th>/dev/stdout</th>
<th>1</th>
<th>标准输出</th>
</tr>
<tr>
<th>显示器</th>
<th>/dev/stderr</th>
<th>2</th>
<th>标准错误输出</th>
</tr>
</table>
这种写法出来效果就是如下:

md表格
三、excel表格
这个可以说是大杀器了,我们只需要下载一个东西就行了,这个是知乎用户幻灰龙写的东西,亲测有效
下载链接
解压下来就能把excel变成md表格了
在解压目录下,使用以下命令行,把xx的部分换成表格名称就行了(注意路径问题),windows就行了,不需要linux
exceltk用例 整个表格: exceltk.exe -t md -xls xxx.xls exceltk.exe -t md -xls xxx.xlsx 指定sheet: exceltk.exe -t md -xls xx.xls -sheet sheetname exceltk.exe -t md -xls xx.xlsx -sheet sheetnameexceltk 特性: 转换Excel表格到MarkDown表格 支持Excel单元格带超链接 如果Excel里有合并的跨行单元格,在转换后的MarkDown里是分开的单元格,这是因为MarkDown本身不支持跨行单元格 如果Excel表格右侧有大量的空列,则会被自动裁剪,算法是根据前100行来检测并计算
这个方法真心方便了好多

浙公网安备 33010602011771号