Reader doesn't render nested numbered list with more than 100 items

When tabs are used (1 tab in this case), the reader doesn’t display the nested list correctly.

101. a  
	1. a  
	2. a  
	3. a  

image

1 Like

@WhiteNoise thanks.
This workaround works when files are opened directly. Numbering doesn’t work when note is embedded in another note. See screenshot attached.

It works, just padding-left should be wider :slight_smile:

It was:

.markdown-rendered ul,
.markdown-rendered ol {
  padding-inline-start: var(--list-indent);
}
/*
--list-indent = 2em
*/

Should be:

.markdown-rendered ul,
.markdown-rendered ol {
  padding-inline-start: 3em;
}

The workaround (pressing tab 2 times) is also not ideal, as it leads to inconsistency.

Note that items numbered less than 99 use only one tab for the indentation of their sublists. Imagine a sublist under item 100 is indented with two tabs. If you then delete items 50 to 99, item 100 becomes item 50. However, the sublist under the new item 50 would be indented with two tabs, instead of the expected one-tab indentation for items below 99.