Hi,
I want to sort the list of users on chat box by alphabetical order with JS or CSS at these 2 places:
f9d4359b-0300-4a29-9552-2c0d64ce7b6a-image.png
Can you help me for this ?
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?
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 ];
Thank you!
@mechanix glad you figured it out
Finally it looks like this :