markdown-mode icon indicating copy to clipboard operation
markdown-mode copied to clipboard

Table centering does not center the cell

Open doomchild opened this issue 3 years ago • 0 comments

When writing a table using a column that should be centered (with the header ":-:"), pressing TAB does not center cells under this heading. Left and right justification work as expected.

Expected Behavior

Cells under a center justification header should have their contents centered.

Actual Behavior

Cells under a center justification remain left-justified.

Steps to Reproduce

  1. Open a new buffer set to markdown-mode.
  2. Paste the following text into the buffer:
|Left|Right|Center|Default|
|:-|-:|:-:|-|
|1|2|3|4|
  1. Put the cursor anywhere in the table and press Tab.

Software Versions

  • Markdown Mode: 2.5 dev
  • Emacs: 26.1
  • OS: Windows 10 and Mac OS

doomchild avatar Mar 11 '21 21:03 doomchild