redbug312 / markdown-it-multimd-table

Multimarkdown table syntax plugin for markdown-it markdown parser
MIT License
146 stars 37 forks source link

Feature request: Support header below table or even (multiple) headers at arbitrairy positions #26

Closed Meteor0id closed 4 years ago

Meteor0id commented 4 years ago

Title says enough: I am floating the idea to support having the header either above, or below, or both above and below the table. In fact, maybe the header could even be repeated within the table. This is especially useful in very long tables where anyone viewing would otherwise need to scroll up rather far.

redbug312 commented 4 years ago

I cannot add this feature since this introduces too much overhead to current implementation, while the usefulness is doubted.

From another aspect, MultiMarkdown requirement 2 suggests a separator dividing headers and contents. Enabling headers at arbitary position surely needs new syntax, but I haven't seen relevant discussions of that in other Markdown derivatives.

I would reconsider this if there are discussions of similar features. Thank you for the suggestion still!

Meteor0id commented 4 years ago

I think headers at the bottom and at arbitrary potions can end up being very useful, as the headers can have different content at different rows. It allows for tables with more complex information in them. Or like in the first post, you can repeat the same header just to make the table easier to read. In the case of repeating the previous header, it might be best to use a symbol to indicate 'same as previous' rather than having to modify the header at different rows. This also saves characters / byte size.

redbug312 commented 4 years ago

Thanks for these interesting ideas. But this plugin aims to follow MultiMarkdown spec as tight as possible. I'm declined to invent new syntax here because I don't want this becoming another one Markdown standard. The options are created since the features (1) have been proposed in other derivatives and (2) are easy to be integrated into. Even with that, they're all disabled by default.

I would suggest these feature requests to be directly sent to MultiMarkdown. I'm willing to add any feature from upstream standard in no case.