Ordered lists starting from 3 digits do not render sub-lists correctly in read mode

Steps to reproduce

  1. Write an ordered list starting with a number of 3 digits or more (for example 152).
  2. Use a line break and tab to start a sub-list.
  3. Change to read mode or split to right and put the read mode.

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

The sub-list should be rendered starting with number 1 as in the live preview.

Actual result

The next number is rendered at the same level instead of starting a sub-list

Environment

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.5
Operating system: Windows 11 Home Single Language 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Bad cases

With 1 o 2 digits works fine

This is not a bug. According to GitHub Flavoured Markdown Spec list marker width will affect the recognition of subitems. So in your case you need to use two tabs or tab and a space to indicate subitems. Is your example theoretical? If not then you might want to provide more details in Help section since writing 1 tab and sometimes 2 tabs is quite tedious.


https://github.github.com/gfm/#list-items

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.