Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup-list-numbers doesn't work when there's leading space #392

Closed
legends2k opened this issue May 1, 2019 · 1 comment
Closed

cleanup-list-numbers doesn't work when there's leading space #392

legends2k opened this issue May 1, 2019 · 1 comment

Comments

@legends2k
Copy link

legends2k commented May 1, 2019

When there're leading spaces in a numbered lists' numbers, markdown-cleanup-list-numbers renumbers the items incorrectly.

Steps to Reproduce

Have a buffer in markdown-mode and the following text

Shortcuts
---------
  2. Horizontal rule: `C-c C-s -`
  3. Underlined header `C-c C-s !`
 10. Convert to HTML: `C-c C-c m`

Press C-c C-c n to reorder numbers.

Expected Output

  1. Horizontal rule: `C-c C-s -`
  2. Underlined header `C-c C-s !`
  3. Convert to HTML: `C-c C-c m`

Actual Output

Shortcuts
---------
  1. Horizontal rule: `C-c C-s -`
  2. Underlined header `C-c C-s !`
 1. Convert to HTML: `C-c C-c m`

Software Versions

  • Markdown Mode: markdown-mode, version 2.4-dev
  • Emacs: 26.2
  • OS: Archlinux
@syohex
Copy link
Collaborator

syohex commented Apr 29, 2020

Thanks for reporting issue. I have merged #459. Please check latest version.

@syohex syohex closed this as completed Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants