-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add column width classes to markdown tables with 2-5 columns
The idea is, for tables with x columns, we add classes to make them equal width: - 2 columns: w-50 - 3 columns: w-33 - 4 columns: w-25 - 5 columns: w-20 Two notable exceptions here: 1. Once your table is more than 6 columns, I am assuming it's too weird and I am not going to add presumptive classnames to your table. 2. If your table is "complex", such that it renders as HTML, this function doesn't work. Seems like an okay assumption, as complex tables are also weird.
- Loading branch information
Showing
3 changed files
with
72 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters