Wikitten
Wikitten copied to clipboard
[css] Tables render without padding/margin
As in this screenshot from a wiki running the master.zip from 8f32c0b5bedb1e6aeb93cbc2226d8781d3f3ab5d the table css leads to bad/unreadable rendering of table cells.
What would be the effort to change this to something like in mdwiki?
I assume what's missing is class="table"
on the <table>
element.
I am not sure if we can make Markdown to add extra classes, but we can redefine table {}
in CSS right. :)
If we control the Markdown to HTML conversion pipeline or can extend it somehow, we can add class="table"
to all <table>
elements, no? That's what would be required to have the Bootstrap style added to it.
Won't that be against the implementation of original markdown parser? Also also I believe you can add extra features with GFM. I am gonna implement that soon.
FYI: I'm not evaluating wikitten anymore but switched to a dokuwiki based solution. It has pretty nice markdown support and also one fairly good bootstrap theme.
@praveenscience The parser shouldn't be involved in this at all. Adding class="table"
would be done in the rendering of whatever the parser creates (an AST, I assume) from the Markdown markup. If it's possible to add a plugin to the rendering pipeline, that would be an elegant and simple solution.
@asbjornu Agreed. There's a plan of using Parsedown instead of the original markdown, so this opens up to so many possibilities. I will try to check with the PD guys, if there's a possibility of adding extra class. :smile: