Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdown-it-multimd-table, resolves #113 #114

Merged
merged 5 commits into from
Feb 25, 2020
Merged

Conversation

oplik0
Copy link
Contributor

@oplik0 oplik0 commented Feb 21, 2020

resolves #113
Added markdown-it-multimd-table to package.json, and created a setting to enable or disable it (multimdTables). I also had to add colspan and rowspan as attributes to th and td in sanitizer config, because otherwise they were filtered out.
A checkbox to toggle this setting was also added to ACP - the decision to add it to the first of the two available columns was one of aesthetics since the other way seems a bit... unbalanced:
Unbalanced columns
The way it looks now:
More balanced columns

Also, I decided against separate settings for options included in markdown-it-multimd-table, that is:

  • multiline
  • rowspan
  • headerless tables

And set them all to true to simplify the configuration. If you believe it to be a bad idea, I'll add these settings separately :)

Quick test using examples from multimd-table readme and the multiline table from the community post confirms that the plugin works as intended:
working advanced tables

@oplik0 oplik0 requested a review from julianlam February 21, 2020 23:53
@julianlam julianlam merged commit 25c2753 into NodeBB:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multiline tables
2 participants