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

tab in lists items results in invalid list indent itemization

Open the42 opened this issue 2 years ago • 0 comments

Expected Behavior

Using tabs in list items should ident by default in a way that is compatible with most markdown tools. Markdown mode inserts two spaces while most tools expect four spaces (or a tab).

Actual Behavior

pressing tab on a list item to indent to the next deeper nested indentation level inserts two spaces instead of four

It is worth noting, that structure editing commands like C-right IMHO correctly work, as by default? shift by multiples of four. However, C-c > or C-c < also incorrectly? shift by mulitples of two.

Steps to Reproduce

open a markdown buffer and write

* Hello World<M-RET>

next line, write

Hi there<TAB>

You end up with

* Hello world
  * Hi there

Software Versions

Emacs 29.1, markdown 2.7-alpha

the42 avatar Nov 09 '23 07:11 the42