showdownjs/showdown

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

Open

#870 aperta il 17 ott 2021

Vedi su GitHub
 (2 commenti) (1 reazione) (1 assegnatario)JavaScript (1640 fork)batch import
bughelp wantedscope:makeHtml

Metriche repository

Star
 (13.700 star)
Metriche merge PR
 (Merge medio 15h 21m) (3 PR mergiate in 30 g)

Descrizione

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)

Guida contributor