showdownjs/showdown

[GFM] Table delimiter row requires more than one `-` in each cell.

开放

#870 创建于 2021年10月17日

 (2 条评论) (1 个反应) (1 位负责人)JavaScript (1,640 个派生)batch import
bughelp wantedscope:makeHtml

仓库指标

星标
 (13,700 个星标)
PR 合并指标
 (平均合并 15小时 21分钟) (30 天内合并 3 个 PR)

描述

Does not support table

showdown.setOption('tables', true);
showdown.setOption('tablesHeaderId', true);

var converter = new showdown.Converter(),
text      = `|a|b|c|d|
|:-|:-:|:-:|-:|
|1|2|3|4|`,
						 html      = converter.makeHtml(text);
						$ ('[data]') .html (html)

贡献者指南