showdownjs/showdown

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

Open

#870 opened on Oct 17, 2021

View on GitHub
 (2 comments) (1 reaction) (1 assignee)JavaScript (13,700 stars) (1,640 forks)batch import
bughelp wantedscope:makeHtml

Description

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)

Contributor guide

[GFM] Table delimiter row requires more than one `-` in each cell. · showdownjs/showdown#870 | Good First Issue