markdown使用技巧 - 处理表格

怎样制作方便的合并表格?

1.Google sheet中制作表格

合并的单元格在Excel/WPS直接复制过去即可,或者手动选择多个单元格后按这个按钮。

  1. 文件 - 导出为 html

3.Emeditor正则处理

/*
	用于 谷歌表格合并单元格后 导出 到vscode md 预览用
	html 只保留 rowspan colspan 其他额外属性删除
*/
document.selection.Replace("<thead>.*</thead>","",eeReplaceAll | eeFindReplaceRegExp,0);
document.selection.Replace("<((?!td|\/).*?) .*?>","<\\1>",eeReplaceAll | eeFindReplaceRegExp,0);
document.selection.Replace("<td.*?( rowspan=.*?| colspan=.*?)?>","<td\\1>",eeReplaceAll | eeFindReplaceRegExp,0);
document.selection.Replace("<table>","<table border='1'>",eeReplaceAll | eeFindReplaceRegExp,0);
document.selection.Replace("<th><div>\\d+</div></th>","",eeReplaceAll | eeFindReplaceRegExp,0);
document.selection.Replace(".*?(<table\\>.*/table>).*","\\1",eeReplaceAll | eeFindReplaceRegExp | eeFindMatchDotNL,0);

怎样转义 `

if  `whoami` endif   中如何进行转义
``if  `whoami` endif``   双写即可
posted @ 2023-06-03 22:27  wgf4242  阅读(86)  评论(0编辑  收藏  举报