Vscode-markdown: `orderedList.autoRenumber` setting is ignored when adding items

Created on 5 Sep 2020  ·  5Comments  ·  Source: yzhang-gh/vscode-markdown

What is the problem?

markdown.extension.orderedList.autoRenumber setting is ignored.

Numbers still increase when pressing enter and going to the next item.

In this example, I had a list with 1. a and 1. b (which renders with correct ordering).
When pressing enter after b, it increases the next line by 1, ending up in broken list ordering 1 -> 1 -> 2:

image

How can I reproduce it?

  1. Set markdown.extension.orderedList.autoRenumber to false
  2. Reload Window (just to be safe)
  3. Go to settings and check that it is actually set to false
  4. Edit an ordered list and see: numbers still going up when pressing enter and going to the next item
list continuation Question Answered

Most helpful comment

marker

All 5 comments

Thanks. You are looking for another configuration orderedList.marker, which controls what marker to add, while orderedList.autoRenumber means renumbering all list items below it.

Hi @yzhang-gh, and thank you for your speedy reply!

What marker do I want? I want 1, and it already is 1 isn't it?

Note: It gives me 2, but I want 1.

marker

That fixes it! Thanks!
感謝你唷~

😉

Was this page helpful?
0 / 5 - 0 ratings