gollum: Tables are not being rendered properly
I just updated to 3.1 to see if that corrects the issue. It does not.
Given the following sample table
| P | Q | P * Q |
| - | - | - |
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
Gollum renders it as one line, not as a table:

atom renders it like a table:

According to the GFM wiki, tables are supported.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 27 (13 by maintainers)
Commits related to this issue
- added github-markdown gem to fix table rendering For more informations have a look at https://github.com/gollum/gollum/issues/907 — committed to cloudogu/smeagol by sdorra 7 years ago
- Install proper markdown support e.g. for tables, see https://github.com/gollum/gollum/issues/907 — committed to schnatterer/gollum-galore by schnatterer 5 years ago
- Revert "Pricing: wording/formatting (#95)" This reverts commit 6c1e19de9d6dc2a78048a80d040cde87d2d1aad4. — committed to thezenarcher/nycmesh.net by thezenarcher 4 years ago
- Add github-markdown as dependency for gollum This fixes table rendering issue, see https://github.com/gollum/gollum/issues/907 — committed to deadloko/nixpkgs by deadloko 4 years ago
- Add github-markdown as dependency for gollum This fixes table rendering issue, see https://github.com/gollum/gollum/issues/907 — committed to deadloko/nixpkgs by deadloko 4 years ago
same issue here, fine in preview
Tables render in quite a narrow box leading to scrolling, however. is there a way to adjust the table width in the CSS?
gem install gollumshould automatically install kramdown as markdown renderer. You could try doinggem install github-markdownand see if it renders correctly with that (@bartkamphorst, is it possible that you were accidentally using github-markdown in your test?).It would appear that GFM requires a minimum of three hyphens before it’s interpreted as a table. Arbitrarily adding/removing spaces in the header/body makes no difference so long as three hyphens are present per column.
For what it’s worth, Atom uses a different library for its Markdown previewer
Hello, I had the same problem with a table containing two hyphens | --|–|; after adding a hyphen |—|—|, the table rendered correctly.
I have the following versions:
ruby2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]gem2.7.6gollum(4.1.4)github-markdown(0.6.9)kramdown(1.9.0)I can echo this problem still exists. I also installed
github-markdownand it did not fix the problem.And yet, when I load a
*.mdfile with tables, the table is not rendered.👍 Maybe open an improvement issue for that?
@lopopolo reports that the following snippet in
config.rbcan be used to activate tables even when usingkramdown(so withoutgithub-markdown):