jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
875 stars 160 forks source link

tab in lists items results in invalid list indent itemization #810

Open the42 opened 8 months ago

the42 commented 8 months ago

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