Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds support for pipe tables of the following form: | Right | Left | Center | Default | |------:|:-----|:------:|---------| | 12 | 12 | 12 | 12 | | 123 | 123 | 123 | 123 | | 1 | 1 | 1 | 1 | Several functions related to such tables are included: - Pipe table recognition, insertion, and editing functions. - Functions for navigating within table cells. - Functions for moving, killing, and inserting rows and columns. - Functions for re-aligning, sorting, and transposing tables. The above features are the work by Dmitry Safronov, who adapted the table editing functions from org-mode to work with Markdown pipe tables in GH-266. This code was modified for inclusion in markdown-mode and committed by Jason Blevins with the following changes: - Incorporate the documentation from comments into the main markdown-mode documentation and README.md. - Use markdown-table prefix for all table editing functions. - Mark some helper functions as internal. - Remove autoload tokens and don't require cl-lib. - Incorporate keybindings into markdown-mode keymaps. - Note that table functions are based on org-table.el - Fix some checkdoc warnings (unused variables, docstrings, etc.). - Add a condition to markdown-do for table re-alignment with C-c C-d. Closes GH-171 and GH-266.
- Loading branch information