showdownjs/showdown

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

Open

#870 创建于 2021年10月17日

在 GitHub 查看
 (2 评论) (1 反应) (1 负责人)JavaScript (13,700 star) (1,640 fork)batch import
bughelp wantedscope:makeHtml

描述

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)

贡献者指南