Hugo-Shortcodes icon indicating copy to clipboard operation
Hugo-Shortcodes copied to clipboard

Shortcodes support tablecaption

Open caijun opened this issue 8 years ago • 3 comments

Now Shortcodes support codecaption and imagecaption, how about tablecaption?

caijun avatar Jan 05 '17 13:01 caijun

Hi Can you elaborate a bit more? Like a caption for tables?

It's going to be more complex as most likely data in the cells need to be read from a data file.

parsiya avatar Jan 12 '17 21:01 parsiya

Yes, a caption for tables. You think further than me. I just think as the markdown supports how to create table quickly, we can go a bit further by adding a caption for the table and the caption and cells are rendering together.

caijun avatar Jan 13 '17 03:01 caijun

Yes you are right. We probably do not even need the data files. We can just put the table inside the tag and wrap it around with a caption. I have to go and see how the final structure of a table after Hugo's processing looks and how it can be wrapped in a caption. Seems like HTML supports a "Caption" element for tables, so it should be theoretically simple.

parsiya avatar Jan 16 '17 17:01 parsiya