|
Salman, see the COMCODE_FAKE_TABLE_* templates. These are generated by Comcode table syntax (which is based on wiki code), but there's a special way of doing it so that you're doing a 'layout table', which actually uses floats.
We can probably just completely replace the float implementation with a flexbox version, no need to add it in addition to the current floats version.
Use your discretion and discuss with me if you consider appropriate. You're in charge of our markup and layout. I just think floats are a very dated way to do this kind of thing now. |
|
This has now been implemented, took more like a day because I decided to completely reimplement the Comcode tabular support. The webmaster can now choose between tables, CSS table model ("fake tables"), floats, inline-blocks, and flexbox. The latter two don't actually have rows in a grid sense but are still very nice to be able to do in Comcode using a nice clear syntax. The fake table support has been made to support all the CSS table views we define, like columned and responsive tables. The previous code used start/end templates, and a lot of them - the new code uses wrapper templates, one per display type. And the code is moved out of the main Comcode parser which has been getting ridiculously large. All in all, a big improvement. |