Looks like your theme is out of date? What's your theme version and core git hash?
Sorry, but how do I check my theme version...? And it's an honor talking to a NodeBB Admin.
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?
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" ];
Thank you for your reply. I'll take a look and will report.
Unfortunately it doesn't work. The html code is displayed without the class.
My mistake. I found a typo. The table html code looks like this now:
<table c="l" s="o">
This is how it works:
token = state.push('table_open', 'table class="sortable"', 1); token.map = tableLines = [ startLine, 0 ];
@mechanix glad you figured it out
Finally it looks like this :