Respect ATTR_HTML above tables
kaushalmodi opened this issue · comments
First of all, as we are exporting the tables as Markdown tables, it's not natively supported by Hugo/Blackfriday.
The limitation is that we cannot wrap Markdown text with HTML tags (blackfriday#404) .. but below workaround seems to work with Blackfriday!
<div class="foo">
<div></div>
| a | b |
|---|---|
| c | d |
</div>
That will enable customizing width
, border
, and other CSS table attributes using #+ATTR_HTML
!
Reference - For the workaround
Related: gohugoio/hugo#1585 (comment)
Propose a table
shortcode addition to Hugo core to make this easy: https://discourse.gohugo.io/t/proposal-to-add-a-new-shortcode-table-to-hugo/9071
Holy grail of HTML5 tables: https://css-tricks.com/complete-guide-table-element/
- Add tests to match the examples on that page.