Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 17, 2021 · 1 comment
Open

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

ghost opened this issue Oct 17, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 17, 2021

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)
@SyntaxRules
Copy link
Member

More than one dash is required in the line between table headers and table body. The following works:

| a  | b   | c   | d  |
| :-- | :--: | :--: | --: |
| 1  | 2   | 3   | 4  |

Preview:

a b c d
1 2 3 4

According to GFM, one dash tables should be allowed: https://github.github.com/gfm/#tables-extension-

@SyntaxRules SyntaxRules changed the title Does not support table [GFM] Table delimiter row requires more than one - in each cell. Nov 29, 2021
@tivie tivie self-assigned this Feb 21, 2022
@tivie tivie pinned this issue Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants