Sort tables
-
Hi,
We use in our posts a lot of tables and one of the requirements are to make this tables sortable. Markdown generates only <table></table> output. Is there a way to add a class to the html table output?
http://www.kryogenix.org/code/browser/sorttable/
http://fooplugins.com/footable/demos/sorting.htm -
html in the forums is generated by markdown-it the line responsible for creating the <table> is here, in theory you should be able to give it an attribute with smth. like this
token = state.push('table_open', 'table', 1); token.map = tableLines = [ startLine, 0 ]; token.attrs = [ "class", "sortable" ];
Copyright © 2024 NodeBB | Contributors